Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.