View Full Version : Cool DHTML Tooltip - Fixed Position onClick

03-09-2007, 08:40 AM
1) Script Title: Cool DHTML Tooltip

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm

3) Describe problem:

I'd like to have the tooltip convert to a fixed window onClick. That way, the user could click on a link that's inside the tooltip. Obviously, this would require custom coding, which I'm willing to do. I'm just kind of scratching my head trying to figure out the method I need to use to make it work. Does anyone have a suggestion?

Ideally, though not necessarily, I'd also like to have the content of the tooltip change onClick, to offer more information as well as a "close me" button.

03-09-2007, 11:46 AM
Ok, I've figured out how to make the toolbar static onClick. Here's what I did:

- In the ddrivetip function, after enabletip=true I wrote statictip=false

- I then copied the positiontip function and renamed the duplicate as the fixtip function.

- In fixtip, after if(enabletip){ I put:


- Then in the hidedrivetip function, I replaced if (ns6||ie){ with if (!(statictip) && (ns6||ie)){

That's it!

I haven't created a "close me" button yet, so the tooltip stays put until you mouseover another active section.

What I'm still trying to figure out:

- How to add a "close me" button (not hard, I just haven't done it yet)


- How to make the content of the tooltip change onClick (when it becomes static) -- I could still use some advice on this part.