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

12-08-2010, 04:57 AM

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(function() {
jQuery('#tooltip').tipsy({gravity: 's'});

Here is the part of the template that is affected:

<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>

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.