Javascript教程_解决如何设置链接批量用open方式打开源码教程
function Aclick(arrobj) {
for(var i=0; i<arrobj.length; i++){
arrobj[i].onclick=Function("show1(this)");
}}
function show1(obj){
window.open(obj.href, "newwindow", "width=700,height=600,status=1,resizable=0,scrollbars=1,toolbar=0,menubar=0,titlebar=0,directories=0");
}
解决方案
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>弹出视频窗口</title>
</head>
<script language="javascript">
function newvediowindow(theobj) {
window.open(theobj.title, "newwindow", "width=700,height=600,status=0,resizable=0,scrollbars=0,toolbar=0,menubar=0,titlebar=0,directories=0",false);
}
</script>
<body>
<a href="javascript:" title="http://player.youku.com/player.php/sid/XMTMzNTI5OTYw/v.swf" onclick="newvediowindow(this)"><img src="https://dl.dropbox.com/u/4042262/code/html/basicimg/photo3.JPG" /></a>
</body>
</html>
兼容IE8、FF3.6
Word教程网 | Excel教程网 | Dreamweaver教程网 | Fireworks教程网 | PPT教程网 | FLASH教程网 | PS教程网 |
HTML教程网 | DIV CSS教程网 | FLASH AS教程网 | ACCESS教程网 | SQL SERVER教程网 | C语言教程网 | JAVASCRIPT教程网 |
ASP教程网 | ASP.NET教程网 | CorelDraw教程网 |