joseph Posted May 14, 2007 Share Posted May 14, 2007 I have a javascript that will display a tooltip whenever it finds a link (e.g. <a href="...">...</a>) in a page. But I want to disable it on some parts of the <a href=""> ... </a> tags. Any suggestions? Quote Link to comment Share on other sites More sharing options...
emehrkay Posted May 14, 2007 Share Posted May 14, 2007 use the rel attribute <a href="" rel="tooltip"></a> in your js, check the a for rel == "tooltip" befoe you display the tool tip or you can give you links a certain class <a href="" class="tooltip"></a> then check for class, etc Quote Link to comment Share on other sites More sharing options...
joseph Posted May 15, 2007 Author Share Posted May 15, 2007 Thanks I used the window.onload function so that I can use the tooltips inside the div tags window.onload=function(){activateTooltips("ToolTips")}; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.