随笔分类 - jquery
摘要:$('.del').click(function(){ $("input[name='write']").val("").focus(); })
阅读全文
摘要:<! 左侧楼层 ><div class="FloorsDiv" style="display: block;"><div class="smwrap" style="display:inline-block"> <span class="floor">1F</span> <span class="h
阅读全文
摘要:<style type="text/css">.pop {display:none;width: 200px;height: 130px;background: #080;}</style><script type="text/javascript" src="http://ajax.googlea
阅读全文
摘要:script: <script src="js/lubotu.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $(".lubo").lubo({ }); }) </script>
阅读全文
摘要:1.样式 .cover{ height: 100%; width: 100%; position: fixed; bottom: 0px; left: 0px; top: 0px; z-index: 9998; background-color: rgb(0, 0, 0); filter:alpha
阅读全文
摘要:1.切换图片 $(".tip").hover( function () { $(this).attr("src","images/four2.gif"); }, function () { $(this).attr("src","images/four1.gif"); } ); 2.添加样式 $("
阅读全文
摘要:<!DOCTYPE=html> <html> <head> <script src="js/jquery-1.8.3.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(
阅读全文
摘要://返回顶部 window.onscroll = function(){ var t = document.documentElement.scrollTop || document.body.scrollTop; var top_div = document.getElementById( "t...
阅读全文
摘要:限时秒杀倒计时剩余时间: 00天 00小时 00分钟 00秒 jsfunction show_time(){ ...
阅读全文
摘要:var topOffset = ($(window).height() - 175) / 2,var leftOffset = ($(window).width() - $('loading').width()) / 2 - 60; $('.loading').css({ top: t...
阅读全文
摘要:收起 $(function() { $('.toggle').click(function() { $('.headerwrap').slideToggle(function() { var res = $(this).is(':visible'); if (res) { ...
阅读全文
摘要:1.单一样式 $('.list li').css( "float", "none"); 2. 多个样式 $('.list li').css( { "float": "none", "color": "red" });
阅读全文
摘要:$(function(){$(window).scroll(function () { if ($(window).scrollTop() > 253) { $(".pagetab").css("position","fixed"); $(".pagetab").css("top",...
阅读全文
摘要:$(".slow").click(function() { $(".test").eq(0).slow('slow', function() { $(".test").eq(1).slow('slow', function() { $(".test").eq(2).slow('fast'); ...
阅读全文
摘要:布局 title1 title2 title3 content111。。。 content222。。。 content333。。。
阅读全文
摘要:1.滚动条到某一位置时,该div固定在页面头部2.切换按钮文字与边框颜色$('.yiqiyong').click(function() { $(this).toggleClass('yiqiyong'); $(this).toggleClass('yijinyong');});
阅读全文
浙公网安备 33010602011771号