免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
Board logo

標題: [已回答] 更換美化主題圖標遇到問題 [打印本頁]

作者: azukki    時間: 2015-8-22 11:45     標題: 更換美化主題圖標遇到問題

本帖最後由 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>
複製代碼

作者: 繽紛色彩    時間: 2015-8-22 12:57

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

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

感謝答覆,馬上就來試試看!
作者: azukki    時間: 2015-8-22 15:29

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

圖片附件: capture-20150822-152822.png (2015-8-22 15:28, 27.85 KB) / 下載次數 1387
http://www.weclub.info/discuz/attachment.php?aid=66689&k=89f62181371d465c9bce86e6c81d9433&t=1730417838&sid=ahA8RB


作者: bossll    時間: 2015-8-24 12:50

回復 1# azukki


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




歡迎光臨 SCLUB免費論壇申請-使用者論壇 (http://www.weclub.info/discuz/) Powered by Discuz! 7.2