随笔分类 -  jQuery

摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2012-12-27 22:13 tinyphp 阅读(576) 评论(0) 推荐(0)
摘要:1 <h5 endtime="11/12/2012 16:00:00"></h5> 2 <input type="hidden" value="" id="servertime"/> 3 <script type="text/javascript" language="javascript"> 4 window.onload=function (){ 5 stime(); 6 } 7 var c=0; 8 <? date_ 阅读全文
posted @ 2012-11-07 11:11 tinyphp 阅读(379) 评论(0) 推荐(0)
摘要:点击此处下载整个演示(包含html的演示与php的演示)默认效果:鼠标移上:点击后,状态不变:核心代码: 1 <script type="text/javascript"> 2 $(function(){ 3 $('.open').click(function(){if($(this).attr('class')=='open'){$('#b'+$(this).attr("id").replace('a_','')).animate({height 阅读全文
posted @ 2012-10-22 11:23 tinyphp 阅读(3661) 评论(0) 推荐(0)
摘要:1 function change(Obj){ //改变菜单,改变内容 pub2 $(".mallmenu li a").removeClass("onmallmenu");3 $(Obj).addClass("onmallmenu");4 5 var changeid = $(Obj).attr("changeid");6 $("#"+changeid).siblings(".m").hide().end().show();7 }1 <div class=" 阅读全文
posted @ 2012-10-05 15:27 tinyphp 阅读(361) 评论(0) 推荐(0)
摘要:有的浏览器并不支持js收藏网站,这时候还是需要用户手动ctrl+D收藏。 看图分析: 1、点击“加入收藏夹”,支持js收藏的直接收藏,不支持的提示用户按ctrl+D收藏。 2、点击“x关闭按钮”和“不再提醒”,利用cookie,即使刷新也不再弹出来。 预览效果: 下载地址: http://downl 阅读全文
posted @ 2012-10-04 17:53 tinyphp 阅读(3593) 评论(0) 推荐(0)
摘要:模仿对象效果预览: 1、右栏:点击查看 2、点击后效果:一般有关闭和跳转到其他详细教程的按钮 3、分析效果: 点击出现透明遮挡新图层和图片新图层,图片新图层有两个关闭按钮,点击可关闭图解教程 源码下载:http://download.csdn.net/detail/roro5119/4596918 阅读全文
posted @ 2012-09-25 15:44 tinyphp 阅读(369) 评论(0) 推荐(0)