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 TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 210.54.--.--
Posted:
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 :).