- Create Account

fadeeffect+dhtml scroller

Forums > Combining Scripts > fadeeffect+dhtml scroller
Author
Message

1) Tom Group: Guests
IP: 193.158.--.--
Hi Angus,

I'm trying to combine your H1 fadeeffect script and the dhtml scroller.

I just took your demo divscroll.zip and I tried to:
paste the fadeeffect code in ds_readme.html-> the H1 line does not appear when used in the divsroll.html but OK with ds_readme.html alone.
paste the fadeeffect code in divscroll.html -> the H1 line does not appear
paste the fadeeffect code in divscroll.js -> still not working


Can  you help me?

thanks for your great scriptsssssssss,
Tom


2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 210.54.--.--
Hmm, that could be tricky. You'll want to paste it into DIVSCROLL.HTML, and run it from the content.onload function rather than the default window.onload. This is because when the DIVSCROLL window.onload event fires, the scroller begins to initialise itself and load the external document; you need to run the fade effect *after* the external document has loaded.

So, cut and paste the h1Setup() call from the window.onload in the fade effect, and put it in the scroller's own onload, and it should go. I haven't tested this, btw :).

-  Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.