免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 發帖

[已回答] 更換美化主題圖標遇到問題

本帖最後由 azukki 於 2015-8-22 11:48 編輯

爬文找到了這一篇文章更換:美化你的主題圖標代碼7.0-7.2通用
--------------------------------
覺得實用,於是就決定來試一下
但是,全部按照代碼來做修正之後,
主題圖標卻沒有任何動靜,
求解!!
--------------------------------
(PS:是不是我代碼放置格式錯誤?)
我修改過的代碼
  1. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon2.gif"){yPic
  2. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/1508221017a19f790213cc3f18.gif"}};</script>

  3. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon3.gif"){yPic
  4. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/1508221017e651a4bb6384d72c.png"}};</script>

  5. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon4.gif"){yPic
  6. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/15082210175c59a962ffdacbf9.gif"}};</script>

  7. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon5.gif"){yPic
  8. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/15082210172d873cff87f1ff7b.gif"}};</script>

  9. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon6.gif"){yPic
  10. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/1508221017845caee7631eff09.gif"}};</script>

  11. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon7.gif"){yPic
  12. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/150822101753d0a2147a18f6a9.gif"}};</script>

  13. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon8.gif"){yPic
  14. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/1508221017823942419e38c7e8.gif"}};</script>

  15. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon9.gif"){yPic
  16. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/1508221017a81ed89bf3829d31.gif"}};</script>

  17. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon10.gif"){yPic
  18. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/1508221017e3e7257185f50114.gif"}};</script>

  19. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon11.gif"){yPic
  20. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/15082210177c60a5aebe6e97f7.gif"}};</script>

  21. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon12.gif"){yPic
  22. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/1508221017b96dac1413f4b1a1.gif"}};</script>

  23. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon13.gif"){yPic
  24. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/150822101744d9dacab37d97d3.gif"}};</script>

  25. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon14.gif"){yPic
  26. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/1508221017c89eee68f8ddfd8b.gif"}};</script>

  27. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon15.gif"){yPic
  28. [sp].src="http://mengworkshop.imotor.com/attachments/month_1508/1508221017c21410481629c895.gif"}};</script>

  29. <script>var yPic=document.getElementsByTagName("img");for(sp=0;sp<yPic.length;sp++){if(yPic[sp].src=="http://mengworkshop.imotor.com//images/icons/icon16.gif"){yPic
  30. [sp].src="http://sclub.com.tw/discuz/attachments/month_1206/1206260813fc4fd7072c474665.gif"}};</script>
複製代碼
1

評分人數

回復 1# azukki


    你好!
會員你出圖標無法顯示問題,由於如下原因:
1你要更換幾個圖標網址不正確,或是太長關係
2你需要代碼放錯位置
3該主題以經告知你答案,在第三方框框位置.請認真在查看一下
若還有疑問在發問
謝謝

TOP

capture-20150822-152822.png
但這個真的不知道該怎麼弄了 = =

TOP

感謝答覆,馬上就來試試看!

TOP

http://tlb.258club.com/thread-3741-1-1.html
看看我的这个帖子,是修改模板的。无延迟,只要把代码中图标的链接替换掉即可。
1

評分人數

  • bossll

TOP

有關主題發佈於發表於 2012-6-26 08:20
代碼內的圖片鏈結早已斷鏈
既然圖片鏈結已斷(可能該論壇已不存在)
又怎可能顯示圖片
建議你將有關圖片
另存網上空間
再貼上吧
p.s.:這可能是其中一個原因
有沒有其他因素
還待其他對代碼有認識的會員回答
2

評分人數

TOP

返回列表