首页

【选项卡jquery代码】jquery常用代码总结

其他工作总结范文 |

时间:

2019-05-02

|

推荐访问

jquery常用方法

【www.stokuaidi.com--其他工作总结范文】

图片预加载:(function($) {  var cache = [];  // Arguments are image paths relative to the current page.  $.preLoadImages = function() {    var args_len = arguments.length;    for (var i = args_len; i--;) {      var cacheImage = document.createElement("img");      cacheImage.src = arguments[i];      cache.push(cacheImage);    }  }jQuery.preLoadImages("image1.gif", "/path/to/image2.png");新窗口打开链接$("a[@rel$="external"]").click(function(){     this.target = "_blank";});/*   Usage:   www.is97.com*/平滑滚动$(document).ready(function() {$("a.topLink").click(function() {$("html, body").animate({scrollTop: $($(this).attr("href")).offset().top + "px"}, {duration: 500,easing: "swing"});return false;});});鼠标划入时渐入渐出$(document).ready(function(){    $(".thumbs img").fadeTo("slow", 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads    $(".thumbs img").hover(function(){        $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover    },function(){        $(this).fadeTo("slow", 0.6); // This should set the opacity back to 60% on mouseout    });});等高的列var max_height = 0;$("div.col").each(function(){    if ($(this).height() > max_height) { max_height = $(this).height(); }});$("div.col").height(max_height);老版本浏览器html5支持(function(){    if(!/*@[email protected]*/0)        return;    var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(","),i=e.length;while(i--){document.createElement(e[i])}})()//然后在head中引入该js测试浏览器是否支持css3var supports = (function() {   var div = document.createElement("div"),      vendors = "Khtml Ms O Moz Webkit".split(" "),      len = vendors.length;   return function(prop) {      if ( prop in div.style ) return true;      prop = prop.replace(/^[a-z]/, function(val) {         return val.toUpperCase();      });      while(len--) {         if ( vendors[len] + prop in div.style ) {            // browser supports box-shadow. Do what you need.            // Or use a bang (!) to test if the browser doesn"t.            return true;         }      }      return false;   };})();if ( supports("textShadow") ) {   document.documentElement.className += " textShadow";取得url中的参数$.urlParam = function(name){var results = new RegExp("[\\?&]" + name + "=([^&#]*)").exec(window.location.href);if (!results) { return 0; }return results[1] || 0;}禁用回车提交表单$("#form").keypress(function(e) {  if (e.which == 13) {    return false;  }});
延伸阅读
考核是一个汉语词汇,拼音是kǎohé,意思是考试,考定核查。语出《颜氏家训·省事》“有一礼官,耻为此让,苦欲留连,强加考覈。以下是小编为大家收集的关于司机年度考[db:tag]
2024-01-04
安全生产是保护劳动者的安全、健康和国家财产,促进社会生产力发展的基本保证,也是保证社会主义经济发展,进一步实行改革开放的基本条件。因此,做好安全生产工作具有重要[db:tag]
2024-01-04
策划书即对某个未来的活动或者事件进行策划,并展现给读者的文本;策划书是目标规划的文字书,是实现目标的指路灯。以下是小编整理的2023美食社活动总结范文(通用6篇[db:tag]
2024-01-04
党章中明确指出:“中国共产党是中国工人阶级的先锋队,是中国各族人民利益的忠实代表,是中国社会主义事业的领导核心。下面是小编为大家整理的公务员党建个人季度总结集合[db:tag]
2024-01-04
工作总结(JobSummary WorkSummary),以年终总结、半年总结和季度总结最为常见和多用。就其内容而言,工作总结就是把一个时间段的工作进行一次全面[db:tag]
2024-01-03
党委中心组是党的一个组织机构。是领导班子和领导干部学习理论、加强思想政治建设的重要形式,是运用理论指导实践、提高科学决策水平的有效途径,是发挥领导干部带头作用,[db:tag]
2024-01-03
工作总结,以年终总结、半年总结和季度总结最为常见和多用。下面是小编精心整理的高三语文教师学期工作总结范文(精选3篇),仅供参考,大家一起来看看吧。高三语文教师[db:tag]
2024-01-03
销售是一个汉语词语,拼音是xiāoshòu,是指以出售、租赁或其他任何方式向第三方提供产品的行为,包括为促进该行为进行的有关辅助活动,例如广告、促销、展览、服务[db:tag]
2024-01-03
总结是对过去一定时期的工作、学习或思想情况进行回顾、分析,并做出客观评价的书面材料。下面是小编为大家整理的学校应急演练工作总结【十四篇】,欢迎大家借鉴与参考,希[db:tag]
2024-01-03
学会总结不仅是对工作的责任,也是对自己的责任。这是对过去一个时期工作和研究的回顾、分析和评价。寻找典型和有价值的经验,并找到可供参考的东西。所以今天,小编在这里[db:tag]
2024-01-03
  • 推荐访问

Warning: Invalid argument supplied for foreach() in /www/wwwroot/stokuaidi.com/www/caches/caches_template/default_lx/content/show.php on line 278