jquery 提示外掛程式 cluetip

來源:互聯網
上載者:User

標籤:style   color   width   cti   io   line   

 jquery的 外掛程式cluetip,

地址下載是:plugins.learningjquery.com/cluetip/demo/

 

 下面簡單講解下用法:

 

1 首先當然要放JQUERY的基本JS,和這個外掛程式的JS了,如:

 

   <a class="title" href="#" title="This is the title|The first set of contents comes after the first delimiter.....

 

   $(‘a.title‘).cluetip({splitTitle: ‘|‘});

 

  這樣就會在該串連被點時,彈出一個框,標題是this is the title,內容是|號後面的內容了

 

2 也可以彈出的內容是個串連,比如
   <a class="basic" href="ajax.htm" rel="ajax.htm">

 

  $(‘a.basic‘).cluetip();

 

3 定義彈出框的高度大小等:

 

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

 

$(‘a.custom-width‘).cluetip({width: ‘200px‘, showTitle: false});

 

 

 

4 當滑鼠移動到某串連時彈出:

 

  <h4 title="Fancy Title!" id="ajax3.htm">Hover over me</h4>

 

$(‘h4‘).cluetip({attribute: ‘id‘, hoverClass: ‘highlight‘});

 

 

 

5 當使用者主動點這個串連時,才彈出提示
   <a href="ajaxclick.htm" rel="ajax5.htm" title="active ingredients">

 

$(‘#clickme‘).cluetip({activation: ‘click‘, width: 650});

 

6 圓角的
  <a href="ajax4.htm" title="|first line body|second line body">

 

$(‘ol.rounded a:eq(0)‘).cluetip({splitTitle: ‘|‘, dropShadow: false, cluetipClass: ‘rounded‘, showTitle: false});

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.