window.open ('xhlv.htm','', 'height=100, width=100, top=100, left=100, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=yes')
而flash中同樣可以通過類似的方法來實現(xiàn),
雖然在flash中也可以直接使用window.open()來彈出窗口,
getURL("javascript:window.open('pic_big.php','','toolbar=no,scrollbars=yes,resizable=yes')");
但是主窗口會有一個object小錯誤。
最合適的方法是flash與html代碼相結(jié)合:
1.在網(wǎng)頁中加入JS
function openWindow(theURL,winName,features) { //v2.0
?window.open(theURL,winName,features);}
?window.open(theURL,winName,features);}
2.在flash中調(diào)用已定義的openWindow(),注意不是window.open()
getURL("javascript:openWindow('pic_big.php','','toolbar=no,scrollbars=yes,resizable=yes')");