/    Sign up×
Community /Pin to ProfileBookmark

JS Tooltip help

Im am looking for help with a script found here:

[url]http://javascript.internet.com/generators/dhtml-tooltip-generator.html[/url]

The script is fantastic, does exactly what I need, but it doesn’t work in firefox. Can anyone help out a novice?

Much apprech
Mark

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@mcchalauthorJul 07.2005 — Thanks, how do I combine this in my code?

Mark
Copy linkTweet thisAlerts:
@WebnerdJul 07.2005 — Save that code as tooltip.js and use this HTML page


<i>
</i>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;

&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;script type="text/javascript" src="tooltip.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
var HelpContext = new Array();
HelpContext[0] = "Link 1 Text";
HelpContext[1] = "Link 2 Text";
&lt;/script&gt;
&lt;style type="text/css"&gt;
#divTooltip { position:absolute; top:0px; width:300px; visibility:hidden; z-index:200; background-color:#99CCFF; layer-background-color:#99CCFF;}
.normalStyle {padding:2px; text-align:center; width:300px; color:#000000; top:100px; font-family:arial,helvetica; font-size:9pt; background-color:#99CCFF; layer-background-color:#99CCFF; border-width:1px; border-style:solid; border-color:#000000; cursor:default; }
.netscape4Style {padding:0px; width:300px; color:#000000; top:100px; font-family:arial,helvetica; font-size:9pt; background-color:#99CCFF; layer-background-color:#99CCFF; border:1px solid #000000;} <br/>
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;
&lt;a href="" onmouseout="popOut()" onmouseover="popUp(event,0)"&gt;link here&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="" onmouseout="popOut()" onmouseover="popUp(event,1)"&gt;link here&lt;/a&gt;
&lt;/p&gt;
&lt;div id="divTooltip"&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@mcchalauthorJul 08.2005 — Thanks, this is much better. It doesn't appear to work when I link to this code in a .js file. Do you know why this is?

Thks
Copy linkTweet thisAlerts:
@WebnerdJul 08.2005 — Which code are you referring to?
Copy linkTweet thisAlerts:
@bathurst_guyJul 08.2005 — You know that you should put a brief description of the image / link in the alt tag, and then if req an extended definition in the longdesc tag... http://www.w3.org/TR/REC-html40/struct/objects.html#adef-longdesc-IMG
×

Success!

Help @mcchal spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...