朋友们帮我分析一下这段代码,在线等!50分! 我不懂javascript,我在网页中发现这段代码,不清楚是做什么的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script language="JavaScript" type="text/JavaScript"><!--function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) { newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop); newWindow.document.open(); newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); newWindow.document.write('</body></html>'); newWindow.document.close(); newWindow.focus();}//--></script><body onload=openPictureWindow_Fever("killerj",200,200,"http://www.killerj.tk",100,100)> <body onload=openPictureWindow_Fever("killerj",200,200,"http://www.killerj.tk",100,100)>加一句这个就可以了~! 定义了function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) 这个函数打开新窗口imageName新窗口中的图片imageWidth,imageHeight图片的宽度和高度posLeft,posTop新窗口的坐标 跟这个网站有啥关系?http://www.killerj.tk <script language="JavaScript" type="text/JavaScript"><!--function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) { newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop); newWindow.document.open(); newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); newWindow.document.write('</body></html>'); newWindow.document.close(); newWindow.focus();}//这个函数,就是打开一个窗口,这个窗口用来显示图片文件的.//有imageName,imageWidth,imageHeight,alt,posLeft,posTop这些参数得设置//图片文件名,图像宽,图像高,提示信息,打开窗口的左位置,顶位置.openPictureWindow_Fever('csdn.gif','100','50','alt','50','50')//--></script> extjs获取第一列的el 怎么判断传入的页面? 浏览器如何传递特殊参数#、+、%等字符????????? 如何判断上传文件的大小? 请高手帮解决一下有点难的javascript,谢谢,分有点少,请大家帮助! 谁能解决函数内知晓何人调用自己的问题? confirm的默认按钮是确认,能改为取消吗? 怎样让一个组件失去焦点?(急) 如何遍历一个[object]的所有属性? 我想要几个javascript炸弹 请问如何使<img 不能拖放? [求助]关于登录窗口的问题??
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
newWindow.document.open();
newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>');
newWindow.document.write('</body></html>');
newWindow.document.close();
newWindow.focus();
}
//-->
</script>
<body onload=openPictureWindow_Fever("killerj",200,200,"http://www.killerj.tk",100,100)>
这个函数打开新窗口
imageName新窗口中的图片
imageWidth,imageHeight图片的宽度和高度
posLeft,posTop新窗口的坐标
http://www.killerj.tk
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
newWindow.document.open();
newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>');
newWindow.document.write('</body></html>');
newWindow.document.close();
newWindow.focus();
}//这个函数,就是打开一个窗口,这个窗口用来显示图片文件的.
//有imageName,imageWidth,imageHeight,alt,posLeft,posTop这些参数得设置
//图片文件名,图像宽,图像高,提示信息,打开窗口的左位置,顶位置.
openPictureWindow_Fever('csdn.gif','100','50','alt','50','50')
//-->
</script>