MozTW 討論區
https://forum.moztw.org/

這個給blogger用的smilie script有什麼問題?
https://forum.moztw.org/viewtopic.php?f=18&t=29455
1 頁 (共 1 頁)

發表人:  siuming [ 2010-02-06, 19:59 ]
文章主題 :  這個給blogger用的smilie script有什麼問題?

從網上找到這個script, 可以在blogger的文章加入smileys, 當然可以自訂其他的啦! :P

Use Yahoo smileys in Blogger posts (需要greasemonkey)
http://www.techknowl.com/2008/09/use-yahoo-smileys-in-blogger-posts.html
DOWNLOAD
https://addons.mozilla.org/en-US/firefox/downloads/file/30326/greasemonkey-0.8.20080609.0-fx.xpi

安裝後不知道為什麼會變成這個樣子, 重複了3次 :oops:
圖檔

若加入其他smilie, 版面就有太多重複的了, 怎麼辦呢?

另外我想在插入圖片時, 可以由
代碼:
<img src=http://lh5.ggpht.com/gagan.exe/SLFfLZammsI/AAAAAAAAAc0/Nk2svBAxF24/s144/1.png>

加入
代碼:
style="border: 0pt none;"

變成這個沒有border的嗎?
代碼:
<img src=http://lh5.ggpht.com/gagan.exe/SLFfLZammsI/AAAAAAAAAc0/Nk2svBAxF24/s144/1.png style="border: 0pt none;">


thx.

發表人:  gandalf_Zoro [ 2010-02-08, 10:55 ]
文章主題 :  Re: 這個給blogger用的smilie script有什麼問題?

消除border, code 可以這樣改

代碼:
   getTextArea(this.getAttribute("gult")).value += "<img src="+image+">";


代碼:
      getTextArea(this.getAttribute("gult")).value += "<img src="+image+" style=border: 0px none;"+">";


沒有看到重複的問題, 也不知道怎麼改

註: border 用 px 不是用 pt

發表人:  siuming [ 2010-02-09, 13:35 ]
文章主題 :  Re: 這個給blogger用的smilie script有什麼問題?

blogger很怪耶~~
我平時在html code輸入
代碼:
style=border: 0"

按一按"撰寫"的版面, 再按回html code就變成這樣
代碼:
style=border: 0pt none;"


試了你的那個用px的
代碼:
getTextArea(this.getAttribute("gult")).value += "<img src="+image+" style=border:0px none;"+">";

按過"撰寫"就會變成這樣
代碼:
<img 0px="" none;="" src="http://xxx.gif" />


再試試, 原來用pt也不行
代碼:
getTextArea(this.getAttribute("gult")).value += "<img src="+image+" style=border:0pt none;"+">";

代碼:
<img none;="" src="http://xxx.gif" style="border: 0pt none;" />


最後用回border:0才正常
代碼:
getTextArea(this.getAttribute("gult")).value += "<img src="+image+" style=border:0;"+">";

代碼:
<img src="http://xxx.gif" style="border: 0pt none;" />


至於重複的問題, 不知是blogger的問題還是我的問題呢?
也不要緊吧, 處理了沒border的就行了

謝謝你的幫忙. :D

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/