I wonder if any Javascript experts can help me. I have the following code on my site which create a rotating graphic in the header every time the page loads. This works great.
However what I want to do is to change the way it works slightly so that I do not have to update the code in the future.
I would like to be able to put all the image address into a text file and then for the javascript to read them from there rather than hard codeing into the web page
or
for the javascript to read all the filenames from a directory of another server?
background:#476 url("http://www.blogblog.com/rounders4/bg_hdr_bot.jpg") no-repeat left bottom;
margin:000;
padding:00 8px;
color:#fff;
}
Basically my script works by overwriting the 'background' definition at the <body> part of the template. I wrote the following right after the <body> tag:
That'll only work in Internet Explorer surely? Do Netscape have an XMLDOM object equivalent? I know you can use a XMLHTTP transaction in Windows AND Netscape... but that's possibly overkill.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline:Javascript printing