随笔分类 -  JS & Javascript

摘要:1. 如果自动滚动到页面中的某区域jQuery.fn.autoscroll = function(selector) { $('html,body').animate( {scrollTop: $(selector).offset().top}, 500 }; } //然后像这样来滚动到你希望去到的class/area上。 $('.area_name').autoscroll(); 2. Until<ul> <li>苹果</li> <li>香蕉</li> <li>葡萄</li> 阅读全文
posted @ 2013-02-10 13:31 tinaleft 阅读(155) 评论(0) 推荐(0)
摘要:1 <script language="javascript" type="text/javascript"> 2 $(function () { 3 var guid = '<%=Request["guid"] %>'; 4 var type = '<%=Request["type"] %>'; 5 if (guid == null || guid == "") { 6 guid = newGuid(); 7 } 8 if . 阅读全文
posted @ 2013-02-08 14:17 tinaleft 阅读(362) 评论(0) 推荐(0)
摘要://获得属性var autoOpen = $('.selector').dialog('option', 'autoOpen');//设置属性$('.selector').dialog('option', 'autoOpen', false);jquery.bgiframe使用方法$("#bg").bgiframe();//#bg是遮罩层,即设置半透明的那个DIV,其他都没用 阅读全文
posted @ 2012-07-24 15:25 tinaleft 阅读(156) 评论(0) 推荐(0)