Reply
My lack of script knowledge...
Old 04-15-2008, 08:42 AM My lack of script knowledge...
Sydpix's Avatar
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()">
And how would I relace the <table><\/table> with a working <div id="foo"> </div>

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**
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Sponsored Links (We share ad revenue):
 
Old 04-15-2008, 10:14 AM Re: My lack of script knowledge...
joder's Avatar
Flipotron

Posts: 5,195
Name: James
Location: In the ocean.
Haven't tried it but are you formatting as

Code:
<div id=\'foo\'>
Any quotes would have to be escaped with a \
joder is online now
Reply With Quote
View Public Profile
 
Old 04-15-2008, 10:22 AM Re: My lack of script knowledge...
Sydpix's Avatar
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**
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Old 04-15-2008, 10:28 AM Re: My lack of script knowledge...
joder's Avatar
Flipotron

Posts: 5,195
Name: James
Location: In the ocean.
Glad you got it working
joder is online now
Reply With Quote
View Public Profile
 
Old 04-15-2008, 11:36 AM Re: My lack of script knowledge...
Sydpix's Avatar
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**
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Old 04-17-2008, 11:21 AM Re: My lack of script knowledge...
willcode4beer's Avatar
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
__________________
Paul Davis
willCode4Beer.com (coding for all the right reasons)
willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 04-17-2008, 04:16 PM Re: My lack of script knowledge...
Sydpix's Avatar
Ultra Talker

Posts: 327
Name: Denny
Location: In a can...
Quote:
I kind of wonder why you are using a table to hold the image though....
I didn't want to. I wanted to covert it to div's that was the whole question.

Quote:
And how would I replace the <table><\/table> with a working <div id="foo"> </div>
Here's a closer look.

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.
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to My lack of script knowledge...
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.37997 seconds with 14 queries