...

View Full Version : jQuery tooltip only runs once in forum...



Kravitz
12-08-2010, 03:57 AM
Hello,

I'm attempting to use a jQuery tooltip (Tipsy, located here (http://onehackoranother.com/projects/jquery/tipsy/)) in the index of a forum. What I'd like to do is remove the forum's description and place it in a pop-up when you hover over the forum name.

I've managed to get it to work, but only on the very first forum name. After that, they simply display the default browser tooltip.

Here is the script code that goes in the header:


<script type='text/javascript'>
jQuery.noConflict();
jQuery(function() {
jQuery('#tooltip').tipsy({gravity: 's'});
});
</script>

Here is the part of the template that is affected:


<h4>
<a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" id='tooltip' title='{$forum_data['description']}'>{$forum_data['name']}</a>
</h4>

And the Tipsy library can be viewed here: http://www.xasper.net/jquery.tipsy.js

Does anyone know what could get this to work?

I appreciate any assistance. Thank you.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum