随笔分类 -  jquery

摘要:$('.del').click(function(){ $("input[name='write']").val("").focus(); }) 阅读全文
posted @ 2016-06-06 17:00 简单就好zyx 阅读(263) 评论(0) 推荐(0)
摘要:<! 左侧楼层 ><div class="FloorsDiv" style="display: block;"><div class="smwrap" style="display:inline-block"> <span class="floor">1F</span> <span class="h 阅读全文
posted @ 2016-05-19 11:25 简单就好zyx 阅读(256) 评论(0) 推荐(0)
摘要:<style type="text/css">.pop {display:none;width: 200px;height: 130px;background: #080;}</style><script type="text/javascript" src="http://ajax.googlea 阅读全文
posted @ 2016-05-07 15:38 简单就好zyx 阅读(1228) 评论(0) 推荐(0)
摘要:script: <script src="js/lubotu.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $(".lubo").lubo({ }); }) </script> 阅读全文
posted @ 2016-04-06 17:27 简单就好zyx 阅读(323) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-03-11 11:25 简单就好zyx 阅读(286) 评论(0) 推荐(0)
摘要:1.切换图片 $(".tip").hover( function () { $(this).attr("src","images/four2.gif"); }, function () { $(this).attr("src","images/four1.gif"); } ); 2.添加样式 $(" 阅读全文
posted @ 2016-03-04 08:52 简单就好zyx 阅读(233) 评论(0) 推荐(0)
摘要:<!DOCTYPE=html> <html> <head> <script src="js/jquery-1.8.3.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready( 阅读全文
posted @ 2016-03-03 09:05 简单就好zyx 阅读(266) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-01-21 20:23 简单就好zyx 阅读(183) 评论(0) 推荐(0)
摘要://返回顶部 window.onscroll = function(){ var t = document.documentElement.scrollTop || document.body.scrollTop; var top_div = document.getElementById( "t... 阅读全文
posted @ 2015-09-01 13:59 简单就好zyx 阅读(117) 评论(0) 推荐(0)
摘要:限时秒杀倒计时剩余时间: 00天 00小时 00分钟 00秒 jsfunction show_time(){ ... 阅读全文
posted @ 2015-08-26 15:58 简单就好zyx 阅读(177) 评论(0) 推荐(0)
摘要:var topOffset = ($(window).height() - 175) / 2,var leftOffset = ($(window).width() - $('loading').width()) / 2 - 60; $('.loading').css({ top: t... 阅读全文
posted @ 2015-08-17 16:37 简单就好zyx 阅读(142) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-08-14 10:02 简单就好zyx 阅读(107) 评论(0) 推荐(0)
摘要:收起 $(function() { $('.toggle').click(function() { $('.headerwrap').slideToggle(function() { var res = $(this).is(':visible'); if (res) { ... 阅读全文
posted @ 2015-08-02 13:12 简单就好zyx 阅读(288) 评论(0) 推荐(0)
摘要:1.单一样式 $('.list li').css( "float", "none"); 2. 多个样式 $('.list li').css( { "float": "none", "color": "red" }); 阅读全文
posted @ 2015-07-30 10:09 简单就好zyx 阅读(134) 评论(0) 推荐(0)
摘要:表单验证 用户登录 用户名: 密码: 重复密码: 阅读全文
posted @ 2015-07-17 18:34 简单就好zyx 阅读(132) 评论(0) 推荐(0)
摘要:$(function(){$(window).scroll(function () { if ($(window).scrollTop() > 253) { $(".pagetab").css("position","fixed"); $(".pagetab").css("top",... 阅读全文
posted @ 2015-07-07 10:09 简单就好zyx 阅读(932) 评论(0) 推荐(0)
摘要:- + 阅读全文
posted @ 2015-06-18 15:32 简单就好zyx 阅读(783) 评论(0) 推荐(0)
摘要:$(".slow").click(function() { $(".test").eq(0).slow('slow', function() { $(".test").eq(1).slow('slow', function() { $(".test").eq(2).slow('fast'); ... 阅读全文
posted @ 2015-06-18 13:57 简单就好zyx 阅读(136) 评论(0) 推荐(0)
摘要:布局 title1 title2 title3 content111。。。 content222。。。 content333。。。 阅读全文
posted @ 2015-05-27 17:49 简单就好zyx 阅读(136) 评论(0) 推荐(0)
摘要:1.滚动条到某一位置时,该div固定在页面头部2.切换按钮文字与边框颜色$('.yiqiyong').click(function() { $(this).toggleClass('yiqiyong'); $(this).toggleClass('yijinyong');}); 阅读全文
posted @ 2015-05-19 15:33 简单就好zyx 阅读(231) 评论(0) 推荐(0)