G'day
The following website uses a Javascript function and a target layer to
display a new image every time the page refreshes.
http://www.theleadsgroup.co.uk/
This works fine in IE browsers and in Firefox/Mozilla browsers it seems to
not display the images at all?
Anything I am doing wrong or any advice?
You're using MS proprietary Javascript (namely innerHTML).
Either use the DOM or simplify things by putting a placeholder image
(1x1 transparent gif stretched to desired dimensions?) into the html and
changing its src attribute in your javascript.
e.g. document.getElementById("randomimage").src=imageArray[picknum];
(and just put the file names and paths into the array)
Note: I haven't tested it, but it should work in theory (except in very
old, pre DOM browsers)
Regards
--
Bert Doorn, Web Developer
Better Web Design
http://www.betterwebdesign.com.au
Regards
--
Bert Doorn, Better Web Design
http://www.betterwebdesign.com.au/
Fast-loading, user-friendly websites
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************