引用 | 編輯
chan15
2005-03-07 11:45 |
樓主
▼ |
||
x0
大家好,我今天有幾個圖片在一個頁面上,我如何按其中一個之後彈出新視窗展示那張圖片,之後按其他的圖片都用同一個視窗展示,多謝。 x0
|
引用 | 編輯
codeboy
2005-03-08 09:07 |
1樓
▲ ▼ |
你需要的是類似這個的功能..
http://dob.tnc.edu.tw/themes/old/showPage.php?s=97&t=6 基本上的做法這範例都有! 自己動手做做看吧! 真做不出來再問問~ x0 |
引用 | 編輯
chan15
2005-03-09 12:19 |
3樓
▲ |
複製程式
<html> <head> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,win_width,win_height) { var PosX = (screen.width-win_width)/2; var PosY = (screen.Height-win_height)/2; features = "width="+win_width+",height="+win_height+",top="+PosY+",left="+PosX; var newwin = window.open(theURL,winName,features); newwin.focus(); } //--> </script> </head> <body> <a href='javascript:;' onClick=MM_openBrWindow(Ƈ.jpg','test',400,300)><img border="0" src="1_small.jpg" width="32" height="21"></a><br> <a href='javascript:;' onClick=MM_openBrWindow(ƈ.jpg','test',400,300)><img border="0" src="2_small.jpg" width="32" height="21"></a> </body> </html> x0 |