I was wondering if anyone can describe how to use Cluetip. All I am trying to do is add it to 1 line of text and for some reason I cant get it to work.
Here is what my markup would look like:
<head>
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.dimensions.js" type="text/javascript"></script>
<script src="jquery.hoverIntent.js" type="text/javascript"</script>
<script src="jquery.cluetip.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$('a.jt:eq(3)').cluetip({local: true, hideLocal: false});
</script>
</head>
<body>
<a class="jt" href="#" rel="p.localvisible">here is where I want my text to be</a>
</body>
Update:that's just what I got from jQuery's site and it's not working.
http://plugins.learningjquery.com/cluetip/demo/
thanks for your response. How would i rewrite the jQuery code: $('a.jt:eq(3)').cluetip({local: true, hideLocal: false});
so that I can apply it to a single text (ie Yahoo). Thanks it advance!
Copyright © 2024 Q2A.ES - All rights reserved.
Answers & Comments
Verified answer
Is that all of your markup? There's a couple of things wrong.
First, you're telling jQuery to activate cluetip on the third a element with class jt. However, there's only one a element in the document.
Secondly, you're telling cluetip to take its text from the first p element with class localvisible. However, there aren't any p elements in your document.