Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
My lack of script knowledge...
Old 04-15-2008, 09:42 AM My lack of script knowledge...
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
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?
__________________
.
Village Idiot

Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
 
Register now for full access!
Old 04-15-2008, 11:14 AM Re: My lack of script knowledge...
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Haven't tried it but are you formatting as

Code:
<div id=\'foo\'>
Any quotes would have to be escaped with a \
joder is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 11:22 AM Re: My lack of script knowledge...
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
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!
__________________
.
Village Idiot

Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Old 04-15-2008, 11:28 AM Re: My lack of script knowledge...
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Glad you got it working
joder is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 12:36 PM Re: My lack of script knowledge...
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
Sigh... Now, if I could only get it to validate!
__________________
.
Village Idiot

Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Old 04-17-2008, 12:21 PM Re: My lack of script knowledge...
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
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
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 04-17-2008, 05:16 PM Re: My lack of script knowledge...
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
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
__________________
.
Village Idiot


Last edited by Sydpix; 04-17-2008 at 05:21 PM..
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Reply     « Reply to My lack of script knowledge...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.24797 seconds with 12 queries