jQueryNotes仿QQ空間委任標記

來源:互聯網
上載者:User

標籤:and   not   media   寬度   val   lsp   空間   lte   jpg   

jquery-notes有以下特點:

 

  • 支援添加備忘映像
  • 豐富的API
  • 支援標記伸縮
  • 支援更改主題
  • 支援圖片標記添加連結
  • 不需要資料庫

 

HTML

首先在頁面上放置一張添加標誌的圖片

<div class="samples-box clearfix"> 
    <img src="samples/sample_1.jpg  width="333" height="500" class="jquery-note_1-2" 
    /> 
</div>
引入jquery和jquery-notes相關組件
<link rel="stylesheet" title="Standard" href="jquery-notes_css/style.css" 
type="text/css" media="all" /> 
<!--[if lte IE 8]> 
    <link rel="stylesheet" title="Standard" href="jquery-notes_css/lteIE8.css" 
    type="text/css" media="all" /> 
<![endif]--> 
<script type="text/javascript" src="jquery-notes_js/jquery.js"> 
</script> 
<script type="text/javascript" src="jquery-notes_js/jquery-ui.js"> 
</script> 
<script type="text/javascript" src="jquery-notes_js/jquery-notes_1.0.8.js"> 
</script>
調用jquery-notes外掛程式
$(function() { 
    $(‘.jquery-note_1-2‘).jQueryNotes({ 
        minWidth: ‘10%‘, 
        minHeight: 20, 
        aspectRatio: true, 
        helper: ‘helper-class‘, 
        allowLink: false, 
        dateFormat: ‘D.M.Y‘, 
        operator: ‘jquery-notes_php/notes.php‘ 
    }); 
});
參數 描述 預設值
operator 遠程載入列表url -
maxNotes 最大標記數量 -
minWidth 最小標記寬度 -
minHeight 最小標記高度 -
allowAdd 是否允許委任標記 -
allowEdit 是否允許編輯標記 -
allowDelete 是否允許刪除標記 -
allowHide 是否允許隱藏標記 -
allowLink 是否允許添加連結 -
loadNotes 是否載入標記 -

jQueryNotes仿QQ空間委任標記

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.