|
Dreamwaver 常见问答解答(7)
ONCLICK="window.open('test.htm','Sample', 'toolbar=yes,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no, copyhistory=yes,width=300,height=200,left=100,top=100')"
〈/script〉
window各项属性说明:
toolbar=yes, 显示工具条
location=yes,显示网址栏
directories=no,导航条
status=no,状态条
menubar=yes,菜单
scrollbars=yes,滚动条
resizable=no,是否可以改变大小
copyhistory=yes,历史按钮
width=300,宽
height=200'高
left=100,距离左边100
top=100,距离顶端100
怎样定位新弹出窗口的位置?
在〈body〉〈/body〉之间加入以下代码即可:
〈script language="javascript"〉
var popup=window.open("aaa.htm","","width=* height=*");
popup.moveTo(*,*);
〈/script〉
*为数字,打开的文件要用相对路径。
在DW中如何使插入的FLASH透明?
|