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请求处理和内容提取
版权声明:本文为博主原创文章,未经博主允许不得转载. 系列教程: 手把手教你写电商爬虫-第一课 找个软柿子捏捏 手把手教你写电商爬虫-第二课 实战尚妆网分页商品采集爬虫 看完两篇,相信大家已经从开始的 ...
随机推荐
- 如何使用queue_delayed_work函数
本文转自如何使用queue_delayed_work函数 1. delayed_workqueue主要用在需要延迟处理任务的驱动中,这些驱动的特性主要是不能使用中断. delayed_workqueu ...
- [Centos] ERROR: Could not find useradd in chroot, maybe the install failed?
[mockbuild at localhost ~]$ mock -r centos-5-x86_64-testdev.cfg initinitcleanprepThis may take a whi ...
- Python-多进程VS多线程
多进程VS多线程 功能: 进程:能够完成多任务,比如,同时运行多个QQ 线程:能够完成多任务,比如一个QQ中的多个聊天窗口 定义 进程:系统进行资源分配和测试的一个独立单位,线程自己基本上不拥有系统资 ...
- a[i++]
今天才知道,a[i++]到底是什么意思:: 其实也很简单了,就是a[i]的值还是a[i],然后i自增1: 把这篇博客当作平常各种错题博客吧,把各种从网上抄的代码不懂的地方写到这个地方算了 ====== ...
- px转rem
第一步: 第二步:html引入js 第三步:转换单位,100px=0.1rem
- MySQLdb与sqlalchemy的简单封装
一:MySQLdb # !/usr/bin/python # -*- coding: UTF-8 -*- import MySQLdb import MySQLdb.cursors import co ...
- cocos js 3.8.1 clippingNode 不能被 ccui.ScrollView 或者ccui.Layout裁剪的bug
clippingNode不能被ccui.ScrollView.ccui.ListView.ccui.Layout裁剪问题,只需要 设置scrollView ...的裁剪类型 scrollView.se ...
- SpringMVC学习笔记:表单提交 参数的接收
SpringMVC可以接收原生form表单和json格式数据 有一个名为Book的model,其中的属性如下: 字符串类型的name,数字类型的price,数组类型的cover,集合类型的author ...
- SharePoint 开发小结
目标:将sharepoint网站对接Office 365 最直接的API:How to: Add Office 365 APIs to a Visual Studio project http://m ...
- HTML and CSS学习概述-续
1, CSS是层叠样式表(Cascading Style Sheets)的缩写,它用于定义HTML元素的显示形式,是一种格式化网页内容的技术.CSS现在已经被大多数浏览器所支持,成为网页设计者必须 ...