摘要: 用法: 设置 cookie: 注:如果 $.cookie 没有第三个参数,那么当浏览器关闭时,该 cookie 将会自动删除。 设置一个有效期为 7 天的 cookie: 注:$.cookie 第三个参数是一个对象,除了可以设置有效期(expires: 7),还可以设置有效路径(path: '/') 阅读全文
posted @ 2016-08-23 10:07 hjr_rong 阅读(250) 评论(0) 推荐(0) 编辑
摘要: <div id="tupian"></div><script>var jpg =new Array();jpg[0]="url(c.jpg)";jpg[1]="url(d.jpg)";jpg[2]="url(x.jpg)";jpg[3]="url(z.jpg)";var tjimg = docume 阅读全文
posted @ 2016-08-19 17:47 hjr_rong 阅读(193) 评论(0) 推荐(0) 编辑
摘要: <div class="box"> <div class="box1"></div> <div class="box2" id="box2"> <ul class="list"> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> <li>6 阅读全文
posted @ 2016-08-19 17:44 hjr_rong 阅读(231) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head> <meta charset="utf-8"> <title>图片轮播-v2</title> <style> ul{ margin: 0; padding: 0; list-style: none; } .sliderWrap{ width: 2 阅读全文
posted @ 2016-08-19 17:42 hjr_rong 阅读(118) 评论(0) 推荐(0) 编辑
摘要: function shareys(type, url, title, img, content) { switch (type) { case "sina": url = "http://service.weibo.com/share/share.php?title=" + encodeURICom 阅读全文
posted @ 2016-08-04 14:00 hjr_rong 阅读(322) 评论(0) 推荐(0) 编辑
摘要: <input type="text" name="score" id="score" value="" /><div id="star" class="clearfix"> <div class="star"> <span> 请打分 <em class="red">*</em></span> <ul 阅读全文
posted @ 2016-07-25 15:46 hjr_rong 阅读(129) 评论(0) 推荐(0) 编辑