Re: [請益] 類似網路相簿功能
我之前的寫法是
<script>
~~
pic_url ='picture_a.jpg';
function popup(){
picture = new Image();
picture.src = pic_url;
_width = picture.width+20;
_height = picture.height+20;
eval ("window.open('"+picture.src+"','',
'width="+_width+",height="+_height+"')");
~~~
</script>
然後在onmouseover的動作時,一併指定pic_url
這樣一來跳出的視窗也能隨著圖片的尺寸變動
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.104.204.13
推
11/10 00:42, , 1F
11/10 00:42, 1F
推
11/10 00:50, , 2F
11/10 00:50, 2F
推
11/10 01:11, , 3F
11/10 01:11, 3F
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):
請益
3
8