Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grabbing Text From a Text File

Status
Not open for further replies.
May 21, 2002
19
0
0
US
Is it possible to grab text from a text file?

Example, I have a javascript that displays a photo and text below. I need to be able to change the text below say ever 2 hours. Since the Javascript displays this on 10 websites it would be impractical to go to every site to change the text.

<script language=&quot;javascript&quot; src=&quot;myfile.js&quot;></script>

Myfile.js currently looks like this:

document.writeln(&quot;<table><tr><td>&quot;)
document.writeln(&quot;<center>&quot;)
document.writeln(&quot;<font face='arial' size=1><b><a href=' to my link.com/'><img src=' to my image/images/myimage.jpg' border=0><br>Enlarge</a></font><br>&quot;)
document.writeln(&quot;<font face='arial' size=1>This is the text that I would like to have in a text file and it will be updated by me often.<br>&quot;)
document.writeln(&quot;</B></FONT></center>&quot;)
document.writeln(&quot;</td></tr></table>&quot;)
 
not using javascript. u can try XML...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top