TheJoshMan
01-22-2006, 08:27 AM
Hey,
I was just wondering if it's possible to add mouseover and onclick functions to a dingbat image i put inside of the dhtml floatie tooltip found here...
http://www.dynamicdrive.com/dynamicindex5/linkfloaties.htm
Wanting to use an image i created to close the floatie instead of "Hide Box" and thought it would be nice to add rollover effects.
floattext[0]='<b><font size="-1" color="#FF6600">Mailing Address:</b> PO Box 666 Some Town, BS 42069<br><b>Location:</b> 420 North Bud St. Some Town, BS</br><b>Telephone:</b> 1-555-420-6969</br><b>Fax:</b> 1-555-420-0123</br><b>E-mail:</b> emailthingy@myserver.com</br></br><div align="right"><a href="javascript:hidefloatie()"><img src="closeXoff.gif" srcover="closeXover.gif" srcdown="closeXclick.gif" border="0" alt="Closes this box."></a></div>'
I have tried it every way that I can imagine only to either get javascript errors or the effect just doesn't work. Here is where you can find the rollover script that I have tried to use...
http://www.dynamicdrive.com/dynamicindex15/domroll2.htm
other than the script I have also just tried adding a "onMouseOver" function to the <a href="javascript:hidefloatie()"> but that doesn't work, I have also tried just adding it into the <img> tag... once again, no success...
Now, I am using the floatie script itself as an external script in my page, but I have tried putting it back into the head of the document and still get the same lack of results. Any help would be greatly appreciated.
***Forgot to specify I'm hoping to get a "mouseover" AND "onClick" function***
Thanks...
I was just wondering if it's possible to add mouseover and onclick functions to a dingbat image i put inside of the dhtml floatie tooltip found here...
http://www.dynamicdrive.com/dynamicindex5/linkfloaties.htm
Wanting to use an image i created to close the floatie instead of "Hide Box" and thought it would be nice to add rollover effects.
floattext[0]='<b><font size="-1" color="#FF6600">Mailing Address:</b> PO Box 666 Some Town, BS 42069<br><b>Location:</b> 420 North Bud St. Some Town, BS</br><b>Telephone:</b> 1-555-420-6969</br><b>Fax:</b> 1-555-420-0123</br><b>E-mail:</b> emailthingy@myserver.com</br></br><div align="right"><a href="javascript:hidefloatie()"><img src="closeXoff.gif" srcover="closeXover.gif" srcdown="closeXclick.gif" border="0" alt="Closes this box."></a></div>'
I have tried it every way that I can imagine only to either get javascript errors or the effect just doesn't work. Here is where you can find the rollover script that I have tried to use...
http://www.dynamicdrive.com/dynamicindex15/domroll2.htm
other than the script I have also just tried adding a "onMouseOver" function to the <a href="javascript:hidefloatie()"> but that doesn't work, I have also tried just adding it into the <img> tag... once again, no success...
Now, I am using the floatie script itself as an external script in my page, but I have tried putting it back into the head of the document and still get the same lack of results. Any help would be greatly appreciated.
***Forgot to specify I'm hoping to get a "mouseover" AND "onClick" function***
Thanks...