![]() |
|
|
My lack of script knowledge... |
|
Ultra Talker
Posts: 327
Name: Denny
Location: In a can...
|
What form of script is written like this? This is a mouse over tool tip script that tips on mouseover. The output for the tip is between the onmouseover and onmouseout.
Code:
onmouseover="Tip ('<table border=\'0\' cellspacing=\'5\'><tr><td style=\'font-size:10pt;background:#ffffff;\'>
<img src=images/foo.gif width=145 height=110 ><\/td><\/table>onmouseout="UnTip()">
Is this just parsing html in javascript? I can't seem to get a <div id="foo"> </div> to work. Any suggestions?
__________________
Man... IE stinks ... and If I get one more contingency offer!!! **Sydpixel**
|
|
|
|
| Sponsored Links (We share ad revenue): |
|
|
Re: My lack of script knowledge... |
|
Ultra Talker
Posts: 327
Name: Denny
Location: In a can...
|
Thanks for that Joder.
Just a few minute ago, I got it to work with exactly what you posted. I wasn't doing that when I added id="foo" originally. Thanks for the help!
__________________
Man... IE stinks ... and If I get one more contingency offer!!! **Sydpixel**
|
|
|
|
|
|
Re: My lack of script knowledge... |
|
Flipotron
Posts: 5,195
Name: James
Location: In the ocean.
|
Glad you got it working
![]() |
|
|
|
|
|
Re: My lack of script knowledge... |
|
Ultra Talker
Posts: 327
Name: Denny
Location: In a can...
|
Sigh... Now, if I could only get it to validate!
__________________
Man... IE stinks ... and If I get one more contingency offer!!! **Sydpixel**
|
|
|
|
|
|
Re: My lack of script knowledge... |
|
Webmaster Talker
Posts: 525
Name: Paul Davis
Location: San Francisco
|
Brackets in the attribute value are definitely going to block validation.
I kind of wonder why you are using a table to hold the image though.... Might try taking a look at this (disclaimer - it is my site) http://willcode4beer.com/tips.jsp?set=bubbleTooltips it uses spans instead of a table but, the code is easy enough to modify. If you don't want the fade effect, just remove those calls in the show/hide functions |
|
|
|
|
|
Re: My lack of script knowledge... | ||
|
Ultra Talker
Posts: 327
Name: Denny
Location: In a can...
|
Quote:
Quote:
http://storagebuildingsunlimited.com/SBU/index.php
__________________
Man... IE stinks ... and If I get one more contingency offer!!! **Sydpixel**
Last edited by Sydpix : 04-17-2008 at 04:21 PM. |
||
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |