FREE GUIDE
Complete Guide to Hiring a Web Developer
JUXTAFLO NEWSLETTER

Receive expert advice and information about web sites.

Thickbox rollover activation

Thickbox rollover activation

Submitted by chad on Thu, 2008-04-24 11:13.
I thought I would post this in case someone else was looking for it. Because I searched for quite a while and never found it.

I was using Thickbox to display some inline hidden content on a page. I wanted to activate Thickbox when a link is rolled over. To do this you must just add this code to your link:
onmouseover="tb_show('', '#TB_inline?height=530&width=
546&inlineId=hiddenModalContent&modal=true', null);"

So a complete link might look like this:

<a id="skip" href="#" class="thickbox" onmouseover=
"tb_show'', '#TB_inline?height=530&width=546&inlineId=
hiddenModalContent&modal=true', null);"></a>

I had to break the code in certain places to make it fit correctly on this page. So just make sure there are no spaces or breaks in your version.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Glossary terms will be automatically marked with links to their descriptions

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.