标签:jquery
具体demo的下载地址:http://download.csdn.net/download/l294333475/7930743
<html> <head> <title></title> <meta http-equiv="charset" content="utf-8"> <link href="seal.css" rel="stylesheet" type="text/css" /> <script src="jquery-seal.js" type="text/javascript"> // ../jquery-2.0.0.js" </script> <script src="seal.js" type="text/javascript"></script> <style type="text/css"> div {position:relative;left:300px;top:100px;width:500px;height:800px}; </style> <script> window.onload=function(){ var a="test.png"; var a = $("body").zSign({ img: a, isPercentage:true,callBack: function (obj) { var html = []; for (var i = 0; i < obj.length; i++) { html.push('<li>img:"' + obj[i].img + '", top:"' + obj[i].top + '", left:"' + obj[i].left + '"</li>'); } $('#msg').html(html.join('')); //alert(html.join('')); $.cookie("listSign", html.join(''),{expires:100000000}); alert($.cookie("listSign")); } }); } </script> </head> <body> <div> </div> <ul id="msg"> </ul> </body> </html>
标签:jquery
原文地址:http://blog.csdn.net/liupeng_family/article/details/39341667