JS修改图片地址
<scripttype="text/javascript"><!--varfocus_width=360;varfocus_height=270;vartext_heig...
<script type="text/javascript"><!-- var focus_width=360;var focus_height=270;var text_height=0;var swf_height = focus_height+text_height;var pics = "";var links = "";var texts = "";
pics += "http://icon.nipic.com/view/201311/9234650_1.jpg"; links += "/show/9234650.html"; texts += ""; pics += "|"; links += "|"; texts += "|"; pics += "http://icon.nipic.com/view/201311/9209608_1.jpg"; links += "/show/9209608.html"; texts += ""; pics += "|"; links += "|"; texts += "|"; pics += "http://icon.nipic.com/view/201311/9020642_1.jpg"; links += "/show/9020642.html"; texts += ""; pics += "|"; links += "|"; texts += "|"; pics += "http://icon.nipic.com/view/201311/9169887_1.jpg"; links += "/show/9169887.html"; texts += ""; pics += "|"; links += "|"; texts += "|"; pics += "http://icon.nipic.com/view/201311/9087513_1.jpg"; links += "/show/9087513.html"; texts += ""; pics += "|"; links += "|"; texts += "|"; pics += "http://icon.nipic.com/view/201311/9120195_1.jpg"; links += "/show/9120195.html"; texts += ""; 展开
pics += "http://icon.nipic.com/view/201311/9234650_1.jpg"; links += "/show/9234650.html"; texts += ""; pics += "|"; links += "|"; texts += "|"; pics += "http://icon.nipic.com/view/201311/9209608_1.jpg"; links += "/show/9209608.html"; texts += ""; pics += "|"; links += "|"; texts += "|"; pics += "http://icon.nipic.com/view/201311/9020642_1.jpg"; links += "/show/9020642.html"; texts += ""; pics += "|"; links += "|"; texts += "|"; pics += "http://icon.nipic.com/view/201311/9169887_1.jpg"; links += "/show/9169887.html"; texts += ""; pics += "|"; links += "|"; texts += "|"; pics += "http://icon.nipic.com/view/201311/9087513_1.jpg"; links += "/show/9087513.html"; texts += ""; pics += "|"; links += "|"; texts += "|"; pics += "http://icon.nipic.com/view/201311/9120195_1.jpg"; links += "/show/9120195.html"; texts += ""; 展开
3个回答
展开全部
document.getElementById("img的id").src="";
//注意getElementById的大小写
//注意getElementById的大小写
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2014-01-15
展开全部
能把代码粘全吗?
更多追问追答
追问
上面的和下面的一起看,就是全部了
追答
你只是想改变这6张图片?
pics += "http://icon.nipic.com/view/201311/9234650_1.jpg";
pics += "http://icon.nipic.com/view/201311/9209608_1.jpg";
pics += "http://icon.nipic.com/view/201311/9020642_1.jpg";
pics += "http://icon.nipic.com/view/201311/9169887_1.jpg";
pics += "http://icon.nipic.com/view/201311/9087513_1.jpg";
pics += "http://icon.nipic.com/view/201311/9120195_1.jpg";
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询