September 6, 200520 yr Hi Guys,i have a wepage that all i want to do is put text over certain parts of it, without having to edit the html every time i open the page.I want this text to be read from a text file (in same dir) .What would be the simplest way???Is it possible to use javascript, or flash or whatThanks Guys
September 6, 200520 yr Hiyou can do that in flash.maybe this will help youhttp://www.actionscript.org/tutorials.shtmlhttp://www.video-animation.com/dbase002.shtmlhttp://www.actionscript.org/forums/archive...php3/t-183.html
September 7, 200520 yr Hiya,The easiest way to do this IMHO is with a javascript document.write in an external ".js" file. A ".js" file is called by a "<script src=yourscript.js>" and closed with "</script>" just like a normal script. The .js file itself is plain text and can be used to simply output text (or html) to be written dynamically to a page when used with the javascript document.write function. You can find this script easily anywhere on the web.A simple .js file to write some plain text to a page:<!-- document.write("Put your text, form, html-markup for image, links, etc. in here, but no matched parentheses! We do NOT want to close our script early...") //-->PLEASE don't use flash unneccessarily, some (the majority, possibly) of users are still on dialup... Edited September 7, 200520 yr by nateklomp
September 7, 200520 yr Hi,As I think the easies way is to create Inline Frame in the page!!...I have tested a lot of ActiveXobjects to read/write file in my localhost (I mean in the hard disk only).But,..I think there is a way in using JavaScript in this position (for that aim)....I will reply to this as soon as I find the answer
September 7, 200520 yr Hiya,The easiest way to do this IMHO is with a javascript document.write in an external ".js" file. A ".js" file is called by a "<script src=yourscript.js>" and closed with "</script>" just like a normal script. The .js file itself is plain text and can be used to simply output text (or html) to be written dynamically to a page when used with the javascript document.write function. You can find this script easily anywhere on the web.A simple .js file to write some plain text to a page:<!-- document.write("Put your text, form, html-markup for image, links, etc. in here, but no matched parentheses! We do NOT want to close our script early...") //-->PLEASE don't use flash unneccessarily, some (the majority, possibly) of users are still on dialup...<{POST_SNAPBACK}>Ohh,..yeahBUT, this should only work with JS files (only)
Create an account or sign in to comment