Topic awaiting preservation: zipplet question |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: |
posted 05-26-2002 17:55
i'm using doc's handy zscrollbars (version 1) scripts. i got it working and all, but i noticed whenever i use an onLoad function call in the body tags, the zscrollbars stops showing up. how do i fix this? code: var imglist = new Array ();
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-26-2002 18:03
That code will work fine, but won't do what you intended. It will make an array of strings, giving them each the pathname of an image. However, it won't preload the image. |
Nervous Wreck (II) Inmate From: |
posted 05-26-2002 18:11
slime, thx for quick response. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-26-2002 18:29
Oh, yeah, the new code you edited in should work fine. |
Nervous Wreck (II) Inmate From: |
posted 05-26-2002 19:01
i made it more compact and combined the two loops. i got the onLoad working. as long as i called the function before the setup for the zscrollbars, it worked =) |
Nervous Wreck (II) Inmate From: |
posted 05-31-2002 05:15
hi i'm having problems again, this time it's a crossbrowser problem. i got everything working fine in IE and finally got a hold of netscape to test (i'm on dialup). when i first ran it in netscape, everything was out of position & the zscrollbars didn't show up, but the rollover images were working. so i fixed my css and got everything lined up and scrollies to show in netscape but now the rollovers aren't working the weird part is i'm not getting any javascript errors. let me extend the code from the earlier post code: if (roll == 'true') {
code: <div id="button1"><a href="about.htm" onMouseOut="msout('button','button.gif');" onMouseOver="msover('button','buttonover.gif');"><img name="button" border="0" src="button.gif"></a></div>
|
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 05-31-2002 06:21
You didn't say which version of Netscape is giving you troubles... |
Nervous Wreck (II) Inmate From: |
posted 05-31-2002 09:27
ah those layers! ok, makes sense now. i was using netscape 4 (oh the headaches). i took your advice on the roll thing too. i also noticed my msover() and msout() were identical...oops. got rid of that redundancy too. i got a lot to learn. you guys have been really helpful. thx again. |