I am using the code from the webpage
http://web-graphics....hive/001717.php
I'm modifying it so that the bubble loads some data from another website.
Now, the original code runs when the page reloads.
I changed it so that it runs when I move my mouse over the link. It worked, except that you had to move the mouse at least twice before you get the bubble (first time to initialize it).
So I wrote another function that would load on page, and would initialize it.
Its as followed:
function initTooltips(toolBar)
{
var numLink,i,nameLink;
numLink = document.getElementById(toolBar).getElementsByTagName("a");
for( i=0;i<numLink.length;i++)
{
nameLink = "catLink"+numLink[i].name;
runTooltips(numLink[i].name,nameLink);
}
}
Now problem is that when I run this, it only initializes the last link! HOWEVER, if I put an alert() function in the for loop, and then press okay the number of times it shows up, THEN all links are initialized!! Why??
Thanks!

New Topic/Question
Reply



MultiQuote




|