03 2012 档案

摘要:在本人最近制作的一个Demo中,需要在页面上实现时间倒计时功能。在参考网上一些现有代码的基础上,形成了一套兼容各种浏览器的时间倒计时代码。代码如下: 1 function DateDiff(startTime,latestTime) { 2 var aDate, oDate1, oDate2; 3 var ihours, imin, isec; 4 5 aDate = latestTime.split("-"); 6 oDate1 = new Date(aDate[1] + '-' + aDat... 阅读全文
posted @ 2012-03-31 21:08 Shapley 阅读(298) 评论(1) 推荐(0) 编辑
摘要:利用jQuery+jQuery UI实现了菜单左右滑动(显示与隐藏)的效果。代码引用:Jquery-latest.jsjquery.effects.core.jsjquery.effects.slide.jsjQuery.fn.extend({ slideRightShow:function(){ returnthis.each(function(){ $(this).show('slide',{direction:'right'},1000); }); }, slideLeftHide:function(){ returnthis.each(function( 阅读全文
posted @ 2012-03-26 11:00 Shapley 阅读(5672) 评论(0) 推荐(0) 编辑