PDA

View Full Version : JS buggers up my DHTML fx



sykes
April 26th, 2003, 04:43 AM
I have a page which has 6 two-line texts that fly in on page load.

This works fine until i decide to add a news-ticker thingy with jscript.

Here's the code:

<a href="http://www.student.city.ac.uk/~et198/news_ticker.txt">News Ticker </a>

The fly-in texts just don't fly in after this addition. This also disables my fly-in texts in dreamweaver..

I have tried making other test pages but no luck.

Thank you to anyone with answers <:}

liam
April 26th, 2003, 11:17 AM
the reasons for two scripts suddenly not working when put on the same page can be many, including duplication in the two scripts' variable names, functions, or access to an event handler (ie: body onload=...). The most common conflict is the last of the three.

Check out this (http://www.wsabstract.com/javatutors/multiplejava.shtml) article, it'll help you out! :)

sykes
April 28th, 2003, 08:02 AM
cheerz for that, i understand what the problem is now... :nerd:

but i've tried rectifying it and i'm not getting the result needed.. I'm not too good with JS.. I tried adding <i>marqueecontent</i> after <i>dynanimation</i> in the body tag, but i'm probably doing it wrong.. :+)

Here's the <a href="http://www.student.city.ac.uk/~et198/boo/proj/FPindex2.htm">original</a> page.

This is the page with the <a href="http://www.student.city.ac.uk/~et198/bpp/proj/FPindex3.htm">JS.</a> The news ticker script is lines 139-220.

Thank you for any help :love:

sykes
April 28th, 2003, 08:06 AM
Sorry, this is the <a href="http://www.student.city.ac.uk/~et198/boo/proj/FPindex3.htm">JS page.</a> The 'problem' script is still lines 139-220.

Thanks :link: