PDA

View Full Version : dhtml scripts help ....


JaeSun
01-29-2003, 11:20 AM
on my home page, i have two DHTML scripts that i got from www.dynamicdrive.com ...

they are:

Scrollable Content (http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm)

and

Textual ToolTip II (http://www.dynamicdrive.com/dynamicindex5/linkinfo2.htm)

on my website its located here:

www.whiteazn.com

the textual tooltip happens and works when you put your mouse over the links at the top and the words fade into view .....

the script that dont work (scrollable content), is the box with the two arrows going up and down .... normally, there should be content in there and be able to use the mouse to scroll up and down ( www.whiteazn.com/test.php ) <-- that has that code by itself, and works ....

i checked for event handlers (read that if there are two seperate event handlers (like body onload= or window.onload.) that it won't work. but only the scrollable content script has a window.onload event handler). is anyone proficient enough to figure out why this wont work together on the same page?

or can it be the script that does the table cell background color changer on mouseover?

JaeSun
01-30-2003, 05:23 PM
I FIXED IT I FIXED IT I FIXED IT!!!!!!!!!!!!!!!!!!!!!!!

i found in my CSS file (i imported some styles from my moveable type weblog that had the CSS ID of content and container (just like in this code)... so i guess the CSS attributes overtook the javascript CSS attributes ....

so i just changed the javascript attributes (so i dont hve to edit my weblog if i were to change my CSS attributes) from id=content and id=container to id=iecontent and id=iecontainer in the code (the NS had its attributes as nscontent and nscontainer, so i named it good i think..lol)

and it works (check it out now) ....

woohoo, i know nothing of javascript except to copy and paste them (i can manipulate VERY little, but i have never debugged a script like i did...) ....