随笔分类 - js
js
摘要:<script type="text/javascript"> var m = /.*?rule\/(.*)/.exec(window.location.href); if (m) { $('#' + m[1]).addClass('title-help') }</script>
阅读全文
摘要:var oDiv = document.getElementById("sunav"); var oLi = oDiv.getElementsByClassName("sunav"); for(i=0; i<oLi.length; i++){ var aLi = oLi[i]; aLi.onmous
阅读全文
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="utf-8"> <style type="text/css"> body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,in
阅读全文
摘要:html: <html><head><style type="text/css">div, ul, li { margin: 0; padding: 0;}ul { list-style-type: none;}body { text-align: center; font: 12px/20px A
阅读全文
摘要:摘自世纪阳光 //case $(".case li a").live('mouseenter',function(){ //alert('enter'); $(this).children().stop(false,true); $(this).children(".pop_tit").slideD
阅读全文
摘要:<script type="text/javascript"> $(function(){ $('.logo_hei45px .ss_btn').click(function(){ var keyword = $('.logo_hei45px .ss_bg input').val(); var se
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1"> <tit
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1"> <tit
阅读全文
摘要:class="bigPic"的div是被显示或隐藏的div,另外.case > ul > li是class="bigPic"的父级元素 $("body").bind("click",function(evt){ if($(evt.target).parents(".case > ul > li").
阅读全文
摘要:<!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.o
阅读全文
摘要:html <a href="javascript:void(0)" title="淄博安泽特气有限公司" onclick="javascript:addToFavorite(this)" >加入收藏</a> js function addToFavorite(obj) { var url = "ht
阅读全文
摘要:html: <div class="mr_frbox"> <div class="showtitle"> <span>产品展示</span> <span class="show-right">News</span> </div> <div class="og_prev prev"></div> <d
阅读全文
摘要:script: $(function () { var sWidth = $("#smfocus").width(); var len = $("#smfocus ul li").length; var index = 0; var picTimer; var btn = "<div class='
阅读全文
摘要:样式: #hotsel{position: relative; width: 100%; overflow: hidden;} #hotselul{width:92%;margin:auto; height: 250px; overflow: hidden;} .rxtj{ margin:20px
阅读全文
摘要://传值$('.choose li').click(function(){ //alert('z'); $("#address").empty().prepend($(this).text());})
阅读全文
摘要:<section id="tixian" class="pop_500" style="display: none"> <section class="modal2"> <em class="close" onClick="hideid('tixian')"><img src="assets/ima
阅读全文
摘要:$(function() { $('.hb_table').live('click', function(e) { e.stopPropagation(); $(this).children('p').hide(); $(this).children('.aa').sh...
阅读全文
摘要:ID排序 ID 姓名 年龄 1 张三 2 李四 3 王五 5 王五 ...
阅读全文
浙公网安备 33010602011771号