淘宝店铺装修"自定义区"代码限制
淘宝自定义区内,可以显示图片,但是无法实现滚动功能!源代码如下:<divid="www_qpsh_com"style="overflow:hidden;height:16...
淘宝自定义区内,可以显示 图片,但是无法实现滚动功能!
源代码如下:
<div id="www_qpsh_com" style="overflow:hidden;height:160px;width:1000px;color:#ff0000">
<table border="0" align="left" cellpadding="0" cellspacing="0" cellspace="0">
<tr>
<td id="www_qpsh_com1" valign="top"><table border="0" align="center" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-db1-ca7fd7dcfcfb61ea5be458d47f043e05.htm"><img src="http://img02.taobaocdn.com/bao/uploaded/i2/T1PFXqXkXwXXXriIIU_014142.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-db1-34dce980363f66137fd41e08b7df2b3c.htm"><img src="http://img05.taobaocdn.com/bao/uploaded/i5/T1FoNpXlJCXXbavIAU_014132.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-0db1-6d04111ebc657ed501a3c05c1bfe2f08.htm"><img src="http://img08.taobaocdn.com/bao/uploaded/i8/T17VpqXmNpXXajlZQU_014153.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-0db1-24a6cf5e8c340604cc0ba3a9cdd692a0.htm"><img src="http://img04.taobaocdn.com/bao/uploaded/i4/T1jGXqXo0aXXcLnsUU_014157.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-0db1-49b4a03b6cec8b34f823cb9cd9d41084.htm"><img src="http://img02.taobaocdn.com/bao/uploaded/i2/T1hohpXk0BXXX0UsUU_014159.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-0db1-01dc597b5c6f14795b7fc9169f89b360.htm"><img src="http://img02.taobaocdn.com/bao/uploaded/i2/T1Xp4qXoxdXXaQ5cEU_014138.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
</tr>
</table></td>
<td id="www_qpsh_com2" valign="top"></td>
</tr>
</table>
</div>
<SCRIPT>
var speed3=15;
var www_qpsh_com1 = document.getElementById("www_qpsh_com1
var www_qpsh_com2 = document.getElementById("www_qpsh_com2
var www_qpsh_com = document.getElementById("www_qpsh_com
www_qpsh_com2.innerHTML=www_qpsh_com1.innerHTML;
function Marquee3(){
if(www_qpsh_com2.offsetWidth-www_qpsh_com.scrollLeft<=0)
www_qpsh_com.scrollLeft-=www_qpsh_com1.offsetWidth;
else{
www_qpsh_com.scrollLeft++;
}
}
var MyMar3=setInterval(Marquee3,speed3)
www_qpsh_com.onmouseover=function() {clearInterval(MyMar3)}
www_qpsh_com.onmouseout=function() {MyMar3=setInterval(Marquee3,speed3)}
</SCRIPT>
复制之后:以下部分被过滤了
怎样修改可以,实现源代码的同样滚动功能 展开
源代码如下:
<div id="www_qpsh_com" style="overflow:hidden;height:160px;width:1000px;color:#ff0000">
<table border="0" align="left" cellpadding="0" cellspacing="0" cellspace="0">
<tr>
<td id="www_qpsh_com1" valign="top"><table border="0" align="center" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-db1-ca7fd7dcfcfb61ea5be458d47f043e05.htm"><img src="http://img02.taobaocdn.com/bao/uploaded/i2/T1PFXqXkXwXXXriIIU_014142.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-db1-34dce980363f66137fd41e08b7df2b3c.htm"><img src="http://img05.taobaocdn.com/bao/uploaded/i5/T1FoNpXlJCXXbavIAU_014132.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-0db1-6d04111ebc657ed501a3c05c1bfe2f08.htm"><img src="http://img08.taobaocdn.com/bao/uploaded/i8/T17VpqXmNpXXajlZQU_014153.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-0db1-24a6cf5e8c340604cc0ba3a9cdd692a0.htm"><img src="http://img04.taobaocdn.com/bao/uploaded/i4/T1jGXqXo0aXXcLnsUU_014157.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-0db1-49b4a03b6cec8b34f823cb9cd9d41084.htm"><img src="http://img02.taobaocdn.com/bao/uploaded/i2/T1hohpXk0BXXX0UsUU_014159.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
<td style="padding-left:1px;"><a href="http://item.taobao.com/auction/item_detail-0db1-01dc597b5c6f14795b7fc9169f89b360.htm"><img src="http://img02.taobaocdn.com/bao/uploaded/i2/T1Xp4qXoxdXXaQ5cEU_014138.jpg_310x310.jpg" alt="" width="160" height="160" border="0" /></td>
</tr>
</table></td>
<td id="www_qpsh_com2" valign="top"></td>
</tr>
</table>
</div>
<SCRIPT>
var speed3=15;
var www_qpsh_com1 = document.getElementById("www_qpsh_com1
var www_qpsh_com2 = document.getElementById("www_qpsh_com2
var www_qpsh_com = document.getElementById("www_qpsh_com
www_qpsh_com2.innerHTML=www_qpsh_com1.innerHTML;
function Marquee3(){
if(www_qpsh_com2.offsetWidth-www_qpsh_com.scrollLeft<=0)
www_qpsh_com.scrollLeft-=www_qpsh_com1.offsetWidth;
else{
www_qpsh_com.scrollLeft++;
}
}
var MyMar3=setInterval(Marquee3,speed3)
www_qpsh_com.onmouseover=function() {clearInterval(MyMar3)}
www_qpsh_com.onmouseout=function() {MyMar3=setInterval(Marquee3,speed3)}
</SCRIPT>
复制之后:以下部分被过滤了
怎样修改可以,实现源代码的同样滚动功能 展开
2个回答
展开全部
哈哈 你的代码不行的 淘宝不支持js代码的
滚动的东西要加在这个代码里
<MARQUEE scrollAmount=9 width=500 height=800 direction=up>滚动的内容</MARQUEE>
其中scrollAmoun表示滚动速度 width表示宽度 height表示高度 direction表示方向(可以填up left right down)
你的店铺应该是旺铺吧 你去鱼摆摆网店装修网看看 那里有很多免费旺铺右侧自定义模板
滚动的东西要加在这个代码里
<MARQUEE scrollAmount=9 width=500 height=800 direction=up>滚动的内容</MARQUEE>
其中scrollAmoun表示滚动速度 width表示宽度 height表示高度 direction表示方向(可以填up left right down)
你的店铺应该是旺铺吧 你去鱼摆摆网店装修网看看 那里有很多免费旺铺右侧自定义模板
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询