100度享乐电商网 jQuery
$(function() {
// x表示不会的需要注意
//新闻走马灯 x
var num = 0
var len = $(".wrap ul li").length
$("#up").click(function() {
num++
if(num > len - 1) {
num = 0
}
$(".wrap ul").stop().animate({
"top": -30 * num
})
})
$("#down").click(function() {
num--
if(num < 0) {
num = len - 1
}
$(".wrap ul").stop().animate({
"top": -30 * num
})
})
//选项卡切换 x
$(".nav li").click(function() {
var index = $(this).index()
$(this).addClass("active").siblings("li").removeClass("active")
//$(".tabs").eq(index).show().siblings(".tabs").hide()
$(this).parents(".options").find(".tabs").eq(index).fadeIn().siblings(".tabs").fadeOut()
})
//日期样式
$(".calendar .time .day li").eq(0).css({"background":"","color":"#cfcfcf"})
$(".calendar .time .day li").eq(1).css({"background":"","color":"#cfcfcf"})
$(".calendar .time .day li:gt(34)").css({"background":"","color":"#cfcfcf"})
//移入24号显示图片
$(".calendar .time .day .prompt").hover(function(){
$(".picture").show()
},function() {
$(".picture").hide()
})
//图片切换 x
$(".recommand .pic .pic-group li").attr("bimg", function(index) {
return "img/pic" + (index + 1) + ".jpg"
})
$(".recommand .pic .pic-group li").mouseover(function() {
var bimg = $(this).attr("bimg")
$("#img").attr("src", bimg)
})
//推荐处的商品列表
$(".recommand .shop-list ul li:even").css("background","url(img/small-icon.png) no-repeat")
$(".recommand .shop-list ul li:odd").css("background","url(img/small-icon.png) no-repeat").css("background-position","0px -25px")
$(".recommand .shop-list ul li span:odd").css("margin-left","29px")
//地铁线名颜色
var arr=["#de0602","#3b61ae","#ffffff","#cc0000","#903077"]
for(var i=0;i<arr.length;i++){
$(".life .tabs .subway-line span em").eq(i).css("color",arr[i])
$(".life .tabs .subway-line span").eq(i).css("border","1px solid"+arr[i])
}
$(".life .tabs .subway-line span").eq(2).css("background","#ff9900")
//bbs论坛移入处图片 x
$(".BBS .BBS-list ul li").hover(function(){
$(this).addClass("active").siblings("li").removeClass("active")
})
//移入美女图出现阴影
$(".red-guest .hot-people .sex-ass").hover(function(){
console.log(1)
$(".red-guest .hot-people .sex-ass img").attr("src","img/sex-show.jpg")
$(".content").show()
},function(){
$(".red-guest .hot-people .sex-ass .sex").attr("src","img/sex.png")
$(".content").hide()
})
//知道分子处切换
$(".question .nav li").click(function() {
var index = $(this).index()
$(this).addClass("active").siblings("li").removeClass("active")
$(this).parents(".know").find(".caption").eq(index).show().siblings(".caption").hide()
})
//抢劵儿处切换
$(".question .nav li").click(function() {
var index = $(this).index()
$(this).addClass("active").siblings("li").removeClass("active")
$(this).parents(".coupons").find(".shop").eq(index).show().siblings(".shop").hide()
})
})
100度享乐电商网 jQuery的更多相关文章
- 100度享乐电商网 html
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title> ...
- 100度享乐电商网 CSS
/*reset begin*/body,div,dl,dt,p,h1,h2,h3,h4,h5,input,form,span,ul{ margin: 0; padding: 0;}a{ text-de ...
- 电商网站jQuery放大镜代码
分享一款电商网站jQuery放大镜代码.这是一款基于jquery.elevatezoom插件实现的类似淘宝放大镜代码,提供40多种参数,可自由配置多种效果,适合电商或图片类网站使用.效果图如下: 在线 ...
- 某电商网站线上drbd+heartbeat+nfs配置
1.环境 nfs1.test.com 10.1.1.1 nfs2.test.com 10.1.1.2 2.drbd配置 安装drbd yum -y install gcc gcc-c++ make g ...
- 某大型跨境电商JVM调优总结
前提:某大型跨境电商业务发展非常快,线上机器扩容也很频繁,但是对于线上机器的运行情况,特别是jvm内存的情况,一直没有一个统一的标准来给到各个应用服务的owner.经过618大促之后,和运维的同学讨论 ...
- SAP CX Upscale Commerce : SAP全新推出的电商云平台
大家好,我是Andy Chen,是SAP成都研究院年轻的SAP CX Upscale Commerce (后面将会以Upscale简称)开发团队的一名产品经理.CX的全称是Customer Exper ...
- 大型跨境电商 JVM 调优经历
前提: 某大型跨境电商业务发展非常快,线上机器扩容也很频繁,但是对于线上机器的运行情况,特别是jvm内存的情况,一直没有一个统一的标准来给到各个应用服务的owner.经过618大促之后,和运维的同学讨 ...
- 利用 jQuery 操作页面元素的方法,实现电商网站购物车页面商品数量的增加和减少操作,要求单项价格和总价随着数量的改变而改变
查看本章节 查看作业目录 需求说明: 利用 jQuery 操作页面元素的方法,实现电商网站购物车页面商品数量的增加和减少操作,要求单项价格和总价随着数量的改变而改变 当用户单击"+" ...
- 手把手教你写电商爬虫-第三课 实战尚妆网AJAX请求处理和内容提取
版权声明:本文为博主原创文章,未经博主允许不得转载. 系列教程: 手把手教你写电商爬虫-第一课 找个软柿子捏捏 手把手教你写电商爬虫-第二课 实战尚妆网分页商品采集爬虫 看完两篇,相信大家已经从开始的 ...
随机推荐
- andorid UI事件
- Mysql 注入load_file常用路径
WINDOWS下: c:/boot.ini //查看系统版本 c:/windows/php.ini //php配置信息 c:/windows/my.ini //MYSQL配置文件,记录管理员登陆过的M ...
- 3DES加密及.NET弱密钥处理
背景 智能pos机开发项目需要指定Key加密某些关键字符串.商定采用3DES加密算法. 实践 网海中很多.NET C#编写3DES加密的函数.采集一段简明.成熟的代码,归置于常用程序集.但当指定Key ...
- python Trie树和双数组TRIE树的实现. 拥有3个功能:插入,删除,给前缀智能找到所有能匹配的单词
#coding=utf- #字典嵌套牛逼,别人写的,这样每一层非常多的东西,搜索就快了,树高26.所以整体搜索一个不关多大的单词表 #还是O(). ''' Python 字典 setdefault() ...
- java 多态的深入理解
简单来说 : 多态 能够很好的解决代码耦合性的问题 考虑这样一个场景 有个人 买了辆捷达汽车 .这个系统应该如何设计呢? public class JettaCar { public void run ...
- CRC-32的原理和实现
/* crc32.c -- compute the CRC-32 of a data stream * Copyright (C) 1995-2002 Mark Adler * For conditi ...
- Rest架构风格的实践(使用通用Mapper技术)
1.根据用户 id 查询用户数据 1.1 controll控制器 @RequestMapping("restful/user") @Controller public class ...
- 686. Repeated String Match
方法一.算是暴力解法吧,拼一段找一下 static int wing=[]() { std::ios::sync_with_stdio(false); cin.tie(NULL); ; }(); cl ...
- jquery中ajax处理跨域的三大方式
一.处理跨域的方式: 1.代理 2.XHR2 HTML5中提供的XMLHTTPREQUEST Level2(及XHR2)已经实现了跨域访问.但ie10以下不支持 只需要在服务端填上响应头: ? 1 2 ...
- js生成条形码插件
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...