Closed Thread Icon

Preserved Topic: java script problem Pages that link to <a href="https://ozoneasylum.com/backlink?for=17720" title="Pages that link to Preserved Topic: java script problem" rel="nofollow" >Preserved Topic: java script problem\

 
Author Thread
aok
Obsessive-Compulsive (I) Inmate

From: seattle,wa,98103
Insane since: Apr 2000

posted posted 05-07-2000 19:04

I am tryin to make buttons that on the mouse over cause a new image to open in a seperate area. I found the script that was designed to work with text but when I added my button images it doesn't work. Can anyone tell me what is going on? The page is http://www.lousblues.com/test.html or I can paste the code here if you'd prefer. I'm driving myself crazy trying to figure this out! Any help you can give me would be really appreciated.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-07-2000 19:31

Yup, right here, in your second script tags:<P><script><P>"
//myimages[0] would refer to "blind1.jpg", myimages[1] would refer to "fictp.jpg",myimages[2] would refer to "com.jpg",
myimages[3] would refer to "home.jpg",myimages[4] would refer to "ab.jpg",myimages[5] would refer to "saul3at.jpg" etc
preloadimages("blind1.jpg","fictp.jpg","com.jpg","home.jpg","ab.jpg","saul3atm.jpg")<P></script><P>the first little " there is confusing it. Delete that. Also, the // comment thing only works for one line, and you have your comment streched across two lines. You need a // before each one.<P>In other words, change it to this:<P><script><P>//myimages[0] would refer to "blind1.jpg", myimages[1] would refer to "fictp.jpg",myimages[2] would refer to "com.jpg",
//myimages[3] would refer to "home.jpg",myimages[4] would refer to "ab.jpg",myimages[5] would refer to "saul3at.jpg" etc
preloadimages("blind1.jpg","fictp.jpg","com.jpg","home.jpg","ab.jpg","saul3atm.jpg")<P></script><P>(poking at Slimy posts, yuck! ;-)
<p>[This message has been edited by DocOzone (edited 05-07-2000).]

aok
Obsessive-Compulsive (I) Inmate

From: seattle,wa,98103
Insane since: Apr 2000

posted posted 05-07-2000 20:45

Worked like a charm-THANK YOU!!!

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 05-08-2000 00:02

Coolness.<P>------------------
<IMG SRC="http://www.ozones.com/forum/siggie.gif">

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-08-2000 03:16

Don't worry about it. All in a days work.<P>*And the caped figure bounced majestically away, off to save another poor soul trapped in the confines of the JavaScript-Bug Demons!*

« BackwardsOnwards »

Show Forum Drop Down Menu