Forum Moderators: phranque
onload="preloadImages();">
...onto the page somehow. Can I put it anywhere else besides in the < body > tag? I just need to get that loaded to have the imagemap working, but this is driving me nuts since I can't get into the body tags.
m19
img to see if that works. However, if you're talking about preloading a few images, have you tried using standard img links to each image, but with the width and height set to "1", placed somewhere unobtrusive (or in a div pushed off-screen with CSS)?
That should get the images downloaded and ready for your rollover, even if it is not a particularly elegant solution.
If not that, do you know of any way to unlock an area originally created with a locked area of a DW template...?
Or maybe some other bit of code that'll preload? Dunno, just seems like it's not working. :(
m19
And just to be sure, I tried it on the actual page as well as the imagemap HTML file (that just has the working imagemap). As soon as the onLoad is removed from the <body> tag, no matter what I've put elsewhere, the rollovers then don't work.
In case seeing the working imagemap.html file'll help, here it is:
<snip>
So that's the one that *does* work. This page is the one that I need to get the onLoad (or equivalent) working:
<snip>
Also, because of the "locked" areas, I've had to put the JS right after the opening <head> and title tag rather than after all the meta bits. Would that make a difference? (I thought I'd narrowed it down to the onLoad bit because the imagemap.html works fine until I removed the onLoad tag. And I've got everything else from the imagemap.html file in the index.html, except for the onLoad tag. o_O)
m19
[edited by: trillianjedi at 8:27 am (utc) on Dec. 3, 2004]
[edit reason] TOS - no URL's please [/edit]
It sounds stupid, but instead of trying to get around the tempate, I just hunted through our archives... This site was originally created three or four years ago, but I eventually found the original template files, created a new one without the locked regions, and then was able to add the onLoad to the body tag. I'm testing now. :)
/crosses fingers
m19