
JS
oXiaoRenWu001
这个作者很懒,什么都没留下…
展开
-
JS 操作COOKIE
function addCookie(objName,objValue,objHours){ var str = objName + "=" + decodeURI(objValue); if(objHours > 0){ var date = new Date(); var ms = objHours*3600*1000; date.setTime(date.getTime()转载 2015-09-23 11:03:26 · 567 阅读 · 0 评论 -
jQuery Lazy Load 图片延迟加载
code.ciaoca.com/jquery/lazyload/翻译 2015-08-18 15:56:51 · 532 阅读 · 0 评论 -
JQuery动画效果
#img1{ width: 500px; height: 400px; border: solid 1px #ccc; } $(document).ready(function () { $('#Button1').click(function () { $('#img1').show(2000); }); $('#Button2').click(fu原创 2014-01-16 16:00:21 · 1186 阅读 · 1 评论 -
鼠标点击,在点击的地方出现提示框
鼠标点击,在点击的地方出现提示框$(document).ready(function(){ //触发class = c 的点击事件 $(".c").click(function(){ checkDiv($(this)); }); //给DOM绑定点击事件 $(document).bind('click',function(e){ //获取当前点击元素的class原创 2014-01-16 10:34:15 · 4607 阅读 · 0 评论 -
ckeditor提交时判断是否为空
ckeditor提交时 不能及时抓取到相应的值。是因为 ckeditor会在 点击提交后才会把隐藏内容设置到ckeditor值中解决办法:HTML 中<% using (Html.BeginForm("PhotoSetItemAdd", "PhotoSet", FormMethod.Post, new { enctype = "multipart/form-data", nam原创 2013-02-26 11:14:49 · 1565 阅读 · 0 评论 -
jquery cookie的用法
jQuery cookie是个很好的cookie插件,大概的使用方法如下example $.cookie(’name’, ‘value’);设置cookie的值,把name变量的值设为valueexample $.cookie(’name’, ‘value’, {expires: 7, path: ‘/’, domain: ‘jquery.com’, secure: true});转载 2013-02-26 11:13:29 · 733 阅读 · 0 评论 -
JS 百度分享 自定义分享的地址
分享到:这里改成自己申请的ID" >document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)原创 2013-02-26 11:08:41 · 739 阅读 · 0 评论 -
JS 有时间间隔的文字滚动
*{margin:0;padding:0;}ul,li{list-style-type:none;}body{font:12px/180% Arial, Helvetica, sans-serif;}a{color:#333;text-decoration:none;}a:hover{color:#3366cc;text-decoration:underline;}.demop原创 2013-02-26 11:06:29 · 962 阅读 · 0 评论