淘宝全屏轮播代码(淘宝全屏的轮播代码是怎么做的)

中国机械与配件网1780

大家好,今天小编来为大家解答淘宝全屏轮播代码这个问题,淘宝全屏的轮播代码是怎么做的很多人还不知道,现在让我们一起来看看吧!

求淘宝全屏海报轮播html代码

淘宝全屏轮播代码(淘宝全屏的轮播代码是怎么做的)

这是我用JQuery写的,图片自己添加

<!doctype>

<html>

<head>

<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>

<title>图片平滑切换</title>

<styletype="text/css">

/**cssReset**/

body,div,ul,ol,li,h1,h2,h3,h4,h5,h6,form,input,p,th,td{

padding:0;

margin:0;

}

table{

border-collapse:collapse;

border-spacing:0;

}

fieldset,img{

border:0;

}

ul,li{list-style:none;}

h1,h2,h3,h4,h5,h6{

font-weight:normal;

font-size:100%;

}

/**cssResetend**/

/**Page**/

body

{

background-color:#ccc;

margin:0auto;

text-align:center;

}

.main

{

font-size:12px;

margin:80pxauto;

width:900px;

height:600px;

}

#container

{

width:800px;

height:449px;

position:relative;

overflow:hidden;

}

#container.image

{

position:absolute;

height:449px;

width:4800px;

}

#container.imageli

{

float:left;

width:800px;

height:449px;

position:relative;

overflow:hidden;

background:#000;

}

#container.sign

{

bottom:0px;

position:absolute;

background:url("images/bg_tran.png");

width:800px;

padding-left:600px;

}

#container.signli

{

float:left;

color:Gray;

text-align:center;

line-height:16px;

width:16px;

height:16px;

font-family:Arial;

cursor:pointer;

overflow:hidden;

margin:6px8px;

background-color:#fff;

}

#container.signli.on

{

color:White;

background-color:Maroon;

}

/**Pageend**/

</style>

</head>

<body>

<divclass="main">

<divid="container">

<ulclass="image">

<li><imgalt="Bing"src="images/bing-1.jpg"/></li>

<li><imgalt="Bing"src="images/bing-2.jpg"/></li>

<li><imgalt="Bing"src="images/bing-3.jpg"/></li>

<li><imgalt="Bing"src="images/bing-4.jpg"/></li>

<li><imgalt="Bing"src="images/bing-5.jpg"/></li>

<li><imgalt="Bing"src="images/bing-6.jpg"/></li>

</ul>

<ulclass="sign">

<liclass="on">1</li>

<li>2</li>

<li>3</li>

<li>4</li>

<li>5</li>

<li>6</li>

</ul>

</div>

</div>

<scripttype="text/javascript"src="js/jquery-1.4.2.min.js"></script>

<scripttype="text/javascript">

$(function(){

varlen=$(".image>li").length;

vari=0;

functionturn(){

i=$(".sign>li").index($(".on"))

i<len-1?i++:i=0

$(".sign>li").eq(i).addClass("on").siblings("li").removeClass("on");

showImg(i);

}

$(".sign>li").click(function(){

clearInterval(set);

varindex=$(this).index();

$(this).addClass("on").siblings("li").removeClass("on");

showImg(index);

set=setInterval(turn,5000);

});

set=setInterval(turn,5000);

});

functionshowImg(index){

varwidth=$("#container").width();

$(".image").stop(true,false).animate({"left":-index*width},500);

}

</script>

</body>

</html>

希望对你能有所帮助。

淘宝全屏的轮播代码是怎么做的

<divclass="skin-box-bdclear-fix">

<span><DIVclass=J_TWidgetdata-widget-type="Tabs"

data-widget-config="{'effect':'fade','circular':true,'navCls':'toseise','activeTriggerCls':'odslos','contentCls':'piaofu'}">

<DIVstyle="HEIGHT:550px"class=piaofu>

<DIV

style="Z-INDEX:0;PADDING-BOTTOM:0px;MARGIN:0px;PADDING-LEFT:0px;WIDTH:1920px;PADDING-RIGHT:0px;TOP:0px;PADDING-TOP:0px;LEFT:-485px"

class=J_TWidgetdata-widget-type="Carousel"

data-widget-config="{ 'contentCls':'slide-kun1362899830209content', 'triggerCls':'slide-kun1362899830209triggers', 'navCls':'slide-kun1362899830209triggers', 'triggerType':'mouse', 'effect':'scrollx', 'prevBtnCls':'prev', 'nextBtnCls':'next', 'steps':1, 'autoplay':true, 'viewSize':[1920], 'circular':true }">

<DIVstyle="DISPLAY:none"class=J_TWidgetdata-widget-type="Popup"

data-widget-config="{'trigger':'.first-trigger2','align':{'node':'.first-trigger2','offset':[0,0],'points':['cc','cc']}}">

<DIVstyle="WIDTH:90px;FLOAT:left;HEIGHT:90px"class=prev><IMG

src="左点击"></DIV>

<DIVstyle="WIDTH:90px;HEIGHT:90px;MARGIN-LEFT:950px"class=next><IMG

src="右点击"></DIV></DIV>

<DIV

style="PADDING-BOTTOM:0px;MARGIN:0px;PADDING-LEFT:0px;WIDTH:1920px;PADDING-RIGHT:0px;HEIGHT:570px;OVERFLOW:hidden;PADDING-TOP:0px"

class=first-trigger2>

<UL

style="PADDING-BOTTOM:0px;MARGIN:0px;PADDING-LEFT:0px;WIDTH:1920px;PADDING-RIGHT:0px;HEIGHT:570px;PADDING-TOP:0px"

class=slide-kun1362899830209content>

<LI

style="PADDING-BOTTOM:0px;LIST-STYLE-TYPE:none;MARGIN:0px;PADDING-LEFT:0px;WIDTH:1920px;PADDING-RIGHT:0px;HEIGHT:570px;PADDING-TOP:0px"><A

style="PADDING-BOTTOM:0px;MARGIN:0px;PADDING-LEFT:0px;PADDING-RIGHT:0px;PADDING-TOP:0px"

href="链接网站地址"target=_blank><IMGborder=0

src="大图链接地址"width=1920

height=570></A></LI>

<LI

style="PADDING-BOTTOM:0px;LIST-STYLE-TYPE:none;MARGIN:0px;PADDING-LEFT:0px;WIDTH:1920px;PADDING-RIGHT:0px;HEIGHT:570px;PADDING-TOP:0px"><A

style="PADDING-BOTTOM:0px;MARGIN:0px;PADDING-LEFT:0px;PADDING-RIGHT:0px;PADDING-TOP:0px"

href="链接网站地址"target=_blank><IMGborder=0

src="大图链接地址"width=1920

height=570></A></LI>

<LI

style="PADDING-BOTTOM:0px;LIST-STYLE-TYPE:none;MARGIN:0px;PADDING-LEFT:0px;WIDTH:1920px;PADDING-RIGHT:0px;HEIGHT:570px;PADDING-TOP:0px"><A

style="PADDING-BOTTOM:0px;MARGIN:0px;PADDING-LEFT:0px;PADDING-RIGHT:0px;PADDING-TOP:0px"

href="链接网站地址"target=_blank><IMGborder=0

src="大图链接地址"width=1920

height=570></A></LI>

<LI

style="PADDING-BOTTOM:0px;LIST-STYLE-TYPE:none;MARGIN:0px;PADDING-LEFT:0px;WIDTH:1920px;PADDING-RIGHT:0px;HEIGHT:570px;PADDING-TOP:0px"><A

style="PADDING-BOTTOM:0px;MARGIN:0px;PADDING-LEFT:0px;PADDING-RIGHT:0px;PADDING-TOP:0px"

href="链接网站地址"target=_blank><IMGborder=0

src="大图链接地址"width=1920

height=570></A></LI>

<LI

style="PADDING-BOTTOM:0px;LIST-STYLE-TYPE:none;MARGIN:0px;PADDING-LEFT:0px;WIDTH:1920px;PADDING-RIGHT:0px;HEIGHT:570px;PADDING-TOP:0px"><A

style="PADDING-BOTTOM:0px;MARGIN:0px;PADDING-LEFT:0px;PADDING-RIGHT:0px;PADDING-TOP:0px"

href="链接网站地址"target=_blank><IMGborder=0

src="大图链接地址"width=1920

height=570></A></LI>

</UL></DIV>

</DIV></DIV></DIV>

</span>

</div>

淘宝首页全屏代码下如何插入轮播图片代码

直接用全屏轮播代码。

天猫店:

<divclass="MaGong"style="height:0px;">

<divclass="sn-simple-logo"style="left:auto;right:auto;width:990px;height:0px;top:auto;padding:0;border:none;z-index:1;background:none;">

<divclass="sn-simple-logo"style="left:-465px;top:0px;height:轮播图片高度px;width:1920px;border:none;padding:0;background:none;">

<divdata-widget-config="{'contentCls':'macontent','navCls':'ma_na','duration':1,'interval':4,'autoplay':true,'triggerType':'mouse','circular':true,'effect':'scrollx','easing':'easeOutStrong','prevBtnCls':'Mprev','nextBtnCls':'Mnext','autoplay':true,'viewSize':[1920],'activeTriggerCls':'hidden'}"data-widget-type="Carousel"class="J_TWidget">

<divclass="J_TWidgetMprev"data-widget-config="{'trigger':'.IX','align':{'node':'.IX','offset':[-510,0],'points':['cc','cc']}}"data-widget-type="Popup"style="display:none;">

<divclass="Mprev"style="font-size:100px;cursor:pointer;"><imgsrc="http://img04.taobaocdn.com/imgextra/i4/126112166/TB2EaKBaXXXXXXxXXXXXXXXXXXX-126112166.png"></div>

</div>

<divclass="J_TWidgetMnext"data-widget-config="{'trigger':'.IX','align':{'node':'.IX','offset':[510,0],'points':['cc','cc']}}"data-widget-type="Popup"style="display:none;">

<divclass="Mnext"style="font-size:100px;cursor:pointer;"><imgsrc="http://img02.taobaocdn.com/imgextra/i2/126112166/TB2s_WAaXXXXXXQXXXXXXXXXXXX-126112166.png"></div>

</div>

<divclass="IX"style="height:轮播图片高度px;width:1920px;overflow:hidden;padding:0px;margin:0px;border:0;background:none;">

<ulclass="macontent"style="height:轮播图片高度px;width:1920px;padding:0px;margin:0px;">

<liclass="item"><atarget="_blank"href="图片1商品链接"><imgsrc="图片1"></a></li><liclass="item"><atarget="_blank"href="图片2商品链接"><imgsrc="图片2"></a></li>

</ul>

</div>

<divclass="sn-simple-logo"style="width:1920px;height:45px;left:auto;top:auto;bottom:0;padding:0px;border:none;background:none;display:block;">

<divclass="sn-simple-logo"style="z-index:99;width:1920px;height:45px;padding:0px;border:none;left:auto;top:auto;background:none;">

<ulclass="ma_na"style="width:1920px;height:45px;margin:0auto;text-align:center;border:none;color:#fff;">

<liclass="hidden"style="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li><listyle="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li>

</ul>

</div>

<divclass="sn-simple-logo"style="z-index:98;width:1920px;height:45px;padding:0px;border:none;left:auto;top:auto;background:none;background:none;">

<ulclass="ma_nb"style="width:1920px;height:45px;margin:0auto;text-align:center;border:none;color:#333333;">

<listyle="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li><listyle="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li></ul></div></div></div></div></div></div>

淘宝店专业版:

<divclass="MaGong"style="height:0px;">

<divclass="footer-morefooter-more-trigger"style="left:auto;right:auto;width:950px;height:0px;top:auto;padding:0;border:none;z-index:1;background:none;">

<divclass="footer-morefooter-more-trigger"style="left:-485px;top:0px;height:轮播图片高度px;width:1920px;border:none;padding:0;background:none;">

<divdata-widget-config="{'contentCls':'macontent','navCls':'ma_na','duration':1,'interval':4,'autoplay':true,'triggerType':'mouse','circular':true,'effect':'scrollx','easing':'easeOutStrong','prevBtnCls':'Mprev','nextBtnCls':'Mnext','autoplay':true,'viewSize':[1920],'activeTriggerCls':'hidden'}"data-widget-type="Carousel"class="J_TWidget">

<divclass="J_TWidgetMprev"data-widget-config="{'trigger':'.WN','align':{'node':'.WN','offset':[-510,0],'points':['cc','cc']}}"data-widget-type="Popup"style="display:none;">

<divclass="Mprev"style="font-size:100px;cursor:pointer;"><imgsrc="http://img04.taobaocdn.com/imgextra/i4/126112166/TB2EaKBaXXXXXXxXXXXXXXXXXXX-126112166.png"></div></div>

<divclass="J_TWidgetMnext"data-widget-config="{'trigger':'.WN','align':{'node':'.WN','offset':[510,0],'points':['cc','cc']}}"data-widget-type="Popup"style="display:none;">

<divclass="Mnext"style="font-size:100px;cursor:pointer;"><imgsrc="http://img02.taobaocdn.com/imgextra/i2/126112166/TB2s_WAaXXXXXXQXXXXXXXXXXXX-126112166.png"></div></div>

<divclass="WN"style="height:轮播图片高度px;width:1920px;overflow:hidden;padding:0px;margin:0px;border:0;background:none;">

<ulclass="macontent"style="height:轮播图片高度px;width:1920px;padding:0px;margin:0px;">

<liclass="item"><atarget="_blank"href="图片1商品链接"><imgsrc="图片1"></a></li><liclass="item"><atarget="_blank"href="图片2商品链接"><imgsrc="图片2"></a></li></ul></div>

<divclass="footer-morefooter-more-trigger"style="width:1920px;height:45px;left:auto;top:auto;bottom:0;padding:0px;border:none;background:none;display:block;">

<divclass="footer-morefooter-more-trigger"style="z-index:99;width:1920px;height:45px;padding:0px;border:none;left:auto;top:auto;background:none;">

<ulclass="ma_na"style="width:1920px;height:45px;margin:0auto;text-align:center;border:none;color:#fff;">

<liclass="hidden"style="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li><listyle="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li>

</ul>

</div>

<divclass="footer-morefooter-more-trigger"style="z-index:98;width:1920px;height:45px;padding:0px;border:none;left:auto;top:auto;background:none;background:none;">

<ulclass="ma_nb"style="width:1920px;height:45px;margin:0auto;text-align:center;border:none;color:#333333;">

<listyle="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li><listyle="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li></ul></div></div></div></div></div></div>

淘宝基础版:

<divclass="MaGong"data-title="来自淘宝代码生成网www.001daima.com"data-time="1502845797"style="height:0px;">

<divclass="footer-morefooter-more-trigger"style="left:auto;right:auto;width:950px;height:0px;top:auto;padding:0;border:none;z-index:1;background:none;">

<divclass="footer-morefooter-more-trigger"style="left:-485px;top:0px;height:轮播图片高度px;width:1920px;border:none;padding:0;background:none;">

<divdata-widget-config="{'contentCls':'macontent','navCls':'ma_na','duration':1,'interval':4,'autoplay':true,'triggerType':'mouse','circular':true,'effect':'scrollx','easing':'easeOutStrong','prevBtnCls':'Mprev','nextBtnCls':'Mnext','autoplay':true,'viewSize':[1920],'activeTriggerCls':'hidden'}"data-widget-type="Carousel"class="J_TWidget">

<divclass="J_TWidgetMprev"data-widget-config="{'trigger':'.UF','align':{'node':'.UF','offset':[-510,0],'points':['cc','cc']}}"data-widget-type="Popup"style="display:none;">

<divclass="Mprev"style="font-size:100px;cursor:pointer;"><imgsrc="http://img04.taobaocdn.com/imgextra/i4/126112166/TB2EaKBaXXXXXXxXXXXXXXXXXXX-126112166.png"></div>

</div>

<divclass="J_TWidgetMnext"data-widget-config="{'trigger':'.UF','align':{'node':'.UF','offset':[510,0],'points':['cc','cc']}}"data-widget-type="Popup"style="display:none;">

<divclass="Mnext"style="font-size:100px;cursor:pointer;"><imgsrc="http://img02.taobaocdn.com/imgextra/i2/126112166/TB2s_WAaXXXXXXQXXXXXXXXXXXX-126112166.png"></div>

</div>

<divclass="UF"style="height:轮播图片高度px;width:1920px;overflow:hidden;padding:0px;margin:0px;border:0;background:none;">

<ulclass="macontent"style="height:轮播图片高度px;width:1920px;padding:0px;margin:0px;">

<liclass="item"><atarget="_blank"href="图片1商品链接"><imgsrc="图片1"></a></li><liclass="item"><atarget="_blank"href="图片2商品链接"><imgsrc="图片2"></a></li>

</ul>

</div>

<divclass="footer-morefooter-more-trigger"style="width:1920px;height:45px;left:auto;top:auto;bottom:0;padding:0px;border:none;background:none;display:block;">

<divclass="footer-morefooter-more-trigger"style="z-index:99;width:1920px;height:45px;padding:0px;border:none;left:auto;top:auto;background:none;">

<ulclass="ma_na"style="width:1920px;height:45px;margin:0auto;text-align:center;border:none;color:#fff;">

<liclass="hidden"style="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li><listyle="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li>

</ul>

</div>

<divclass="footer-morefooter-more-trigger"style="z-index:98;width:1920px;height:45px;padding:0px;border:none;left:auto;top:auto;background:none;background:none;">

<ulclass="ma_nb"style="width:1920px;height:45px;margin:0auto;text-align:center;border:none;color:#333333;">

<listyle="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li><listyle="display:inline;background:none;margin:05px;cursor:pointer;padding-top:10px;line-height:1.4;font-size:27px;">●</li></ul></div></div></div></div></div></div>

关于淘宝全屏轮播代码的内容到此结束,希望对大家有所帮助。