Introducing a good jquery plug-in-cluetip

Source: Internet
Author: User

SometimesArticleFor example, when you move the mouse over the keyword, a text or image is displayed.

Use a jquery plug-in cluetip,

Download address:Plugins.learningjquery.com/cluetip/demo/

The following describes the usage:

1 first of all, of course, we need to put the basic Js of jquery and the Js of this plug-in, such:

<A class = "title" href = "#" Title = "this is the title | the first set of contents comes after the first delimiter .....

$ ('A. title'). cluetip ({splittitle: '| '});

This will pop up a box with the title "this is the title, the content is |"

2. the pop-up content is a connection, for example
<A class = "Basic" href = "ajax.htm" rel = "ajax.htm">

$ ('A. Basic '). cluetip ();

3. Define the height of the pop-up box:

<A class = "custom-width" href = "ajax3.htm" rel = "ajax3.htm">

$ ('A. Custom-width'). cluetip ({width: '200px ', showtitle: false });

 

4 when the mouse moves to a connection, the following pop-up occurs:

<H4 Title = "fancy title! "Id =" ajax3.htm "> hover over me </H4>

$('H4 '). cluetip ({attribute: 'id', hoverclass: 'highlight '});

 

5. A prompt is displayed only when the user actively clicks the connection.
<A href = "ajaxclick.htm" rel = "ajax5.htm" Title = "active ingredients">

$ ('# Clickme'). cluetip ({activation: 'click', width: 650 });

6 rounded corners
<A href = "ajax4.htm" Title = "| First line body | second line body">

$ ('Ol. rounded a: eq (0) '). cluetip ({splittitle:' | ', dropshadow: false, cluetipclass: 'rounded', showtitle: false });

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.