1 頁 (共 1 頁)

[問題] 請問縮圖與BBCode並存的問題

發表於 : 2005-02-17 03:36
sdlla
像我的論壇有使用以下的縮圖程式碼\r

<img src="{URL}" border="0" onload="if(this.width>screen.width-400) {this.resized=true; this.width=screen.width-400; this.alt='Click here to open new window';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="window.open(this.src);">

那便成說我現在要使用BBCode來這樣連結

[img]圖片網址[/img]

的話,會同時把url跟img同時開新視窗,實際狀況如下

<a href="http://www.unethost.com/~psobb/photo/001/001.gif" target="_blank" class="postlink"><img src="http://www.unethost.com/~psobb/photo/001/001s.gif" border="0" onload="if(this.width>screen.width-400) {this.resized=true; this.width=screen.width-400; this.alt='Click here to open new window';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="window.open(this.src);"></a>

除了開啟HTML語法以外,請問要怎麼辦?謝謝

發表於 : 2005-02-17 13:10
幻狼神威
http://phpbb-tw.net/phpbb/viewtopic.php?p=36694#36694
將圖片改為右鍵開啟,已幫原作者測過,無相容性問題.......

發表於 : 2005-02-17 15:08
sdlla
那除了改為右鍵外,還有其他的辦法嗎?

(說起來有點不想改成右鍵開起...感覺怪怪的)

謝謝

發表於 : 2005-02-17 15:57
友誼第一
叫他們不要同時用兩組

發表於 : 2005-02-17 16:29
sdlla
友誼第一 寫:叫他們不要同時用兩組
我想,這樣因該不是最好的方法吧...

畢竟我也要用,不過也很謝謝你的意見.