Jump to content

Couple of questions on tipTip jquery tooltip


downah

Recommended Posts

Hi guys, I have a few little problems with the tipTip jquery tooltip, it seems to work pretty well and I am using it on my website, but I can't find a way to insert an image in there, or to style it (neither with the included style from the tooltip itself)

 

This is what I am using

    <script language="javascript">
$(function(){
$(".someClass").tipTip();
});
</script>

 

and this is how I implement it into the html

echo '<a href="profile.php?username=';

echo $row['username'];

echo '" class="someClass" title="';
echo $row['username'];
echo ' ';
echo $row['gender'];
echo ' ';
print yearsSince($dob);
echo '">';

echo ucfirst($row['username']);

echo "</a></td>";

 

I tried styling the class someClass but that styles the whole url, as I only want the title basically.

 

any suggestions?

 

Sorry in advance if this might be very basic, but I have not used javascript and or jqeury a lot at all.

 

I have done indeed, I have looked at the content option but I couldnt get it to work..I tried it like this:

  <script language="javascript">
$(function(){
$(".someClass").tipTip({content: "testcontent";});
});
</script>

 

any suggestions on the styling maybe?

I have done indeed, I have looked at the content option but I couldnt get it to work..I tried it like this:

  <script language="javascript">
$(function(){
$(".someClass").tipTip({content: "testcontent";});
});
</script>

 

any suggestions on the styling maybe?

 

You're syntax is wrong, remove the semi-colon in the options object. Should be:

 

{content: "testcontent"}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.