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请求处理和内容提取
版权声明:本文为博主原创文章,未经博主允许不得转载. 系列教程: 手把手教你写电商爬虫-第一课 找个软柿子捏捏 手把手教你写电商爬虫-第二课 实战尚妆网分页商品采集爬虫 看完两篇,相信大家已经从开始的 ...
随机推荐
- python: "TypeError: 'type' object is not subscriptable"
目前stackoverflow找到两种情况的解决办法: 1.TypeError: 'type' object is not subscriptable when indexing in to a di ...
- Delphi XE2有什么新功能
具体内容见PDF Delphi XE2有什么新功能Delphi XE2提供(offers)了令人兴奋(exciting)的新功能,让您能够建立高度可视化的,在Windows,Mac和iOS上的业务应用 ...
- Homestead 修改 Homestead.yaml 文件后 vagrant up 报错的问题
一般情况是 TAB 和空格的问题. 虽然表面看来,缩进是一致的. 但是 TAB 没能替换为空格,从而导致问题. 解决: $ sudo vim /etc/vim/vimrc.local syntax o ...
- CentOS 7安装配置Samba服务器(挂载共享文件夹)
CentOS 7安装配置Samba服务器 CentOS 7下Samba服务器安装配置过程笔记. 假设我们有这样一个场景 共享名 路径 权限 SHAREDOC /smb/docs 所有人员包括来宾均可以 ...
- Linq去重 不用实现IEqualityComparer接口的方法超级简单
RskFactorRelation.Instance.GetCache<RskFactorRelation>(true).Where(x => !string.IsNullOrEmp ...
- windows一键配置 php mysql apache 记录
记录下 方便查找(最近机器老重装 资料丢失严重) wamp http://www.wampserver.com/en/#download-wrapper https://sourceforge.net ...
- InputMethodManagerService处理输入法——监听APK变动
android\frameworks\base\services\java\com\android\server\InputMethodManagerService.java public Input ...
- AnsiToUtf8 和 Utf8ToAnsi
在服务端数据库的处理当中,涉及中文字符的结构体字段,需要转为Utf8后再存储到表项中.从数据库中取出包含中文字符的字段后,如果需要保存到char *类型的结构体成员中,需要转为Ansi后再保存.从数据 ...
- 【算法】DP解决旅行路径问题
问题描述 : After coding so many days,Mr Acmer wants to have a good rest.So travelling is the best choice ...
- 【搜索】Fliptile
#include<stdio.h> #include<stdlib.h> #include<string.h> ; ; typedef long long ll; ...