[[wiki]wiki[/wiki]][/wiki][code][
//µÚÒ»²½:°ÑÈçÏ´úÂë¼ÓÈë<head></head>ÇøÓòÖÐ
<script language=javascript>
minimizebar="minimize.gif"; //ÊÓ´°ÓÒÉϽÇ×îС»¯¡¸°´Å¥¡¹µÄͼƬ
minimizebar2="minimize2.gif"; //»¬ÊóÐüͣʱ×îС»¯¡¸°´Å¥¡¹µÄͼƬ
closebar="close.gif"; //ÊÓ´°ÓÒÉϽǹرա¸°´Å¥¡¹µÄͼƬ
closebar2="close2.gif"; //»¬ÊóÐüͣʱ¹Ø±Õ¡¸°´Å¥¡¹µÄͼƬ
icon="icon.gif"; //ÊÓ´°×óÉϽǵÄСͼ±ê
function noBorderWin(fileName,w,h,titleBg,moveBg,titleColor,titleWord,scr) //¶¨ÒåÒ»¸öµ¯³öÎÞ±ßÊÓ´°µÄº¯Êý£¬ÄÜÊýÒâÒå¼ûÏÂÃæ¡¸²ÎÊý˵Ã÷¡¹£¬Êµ¼ÊʹÓüû×îááµ[wiki]ÄÊ[/wiki]µÀý¡£
/*
------------------²ÎÊý˵Ã÷-------------------
fileName £ºÎÞ±ßÊÓ´°ÖÐÏÔʾµÄÎļþ¡£
w¡¡¡¡¡¡¡¡
£ºÊÓ´°µÄ¿í¶È¡£
h¡¡¡¡¡¡¡¡
£ºÊÓ´°µÄ¸ß¶È¡£
titleBg £ºÊÓ´°¡¸±êÌâÀ¸¡¹µÄ±³¾°É«ÒÔ¼°ÊÓ´°±ß¿òÑÕÉ«¡£
moveBg £ºÊÓ´°Í϶¯Ê±¡¸±êÌâÀ¸¡¹µÄ±³¾°É«ÒÔ¼°ÊÓ´°±ß¿òÑÕÉ«¡£
titleColor £ºÊÓ´°¡¸±êÌâÀ¸¡¹ÎÄ×ÖµÄÑÕÉ«¡£
titleWord £ºÊÓ´°¡¸±êÌâÀ¸¡¹µÄÎÄ×Ö¡£
scr £ºÊÇ·ñ³öÏÖ¾íÖᡣȡֵyes/no»òÕß1/0¡£
--------------------------------------------
*/
{
var c+
"<head>"+
"<title>"+titleWord+"</title>"+
"<META http-equiv=\"Content-[wiki]type[/wiki]\" content=\"text/html; charset=gb2312\">"+
"<[wiki]object[/wiki] id=hhctrl type='application/x-oleobject' classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'><param name='Command' val[wiki]UE[/wiki]='minimize'></object>"+
"</head>"+
"<body topmargin=0 leftmargin=0 scroll=no onselectstart='return false' ondragstart='return false'>"+
" <table height=100% width=100% cellpadding=0 cellspacing=1 bgcolor="+titleBg+" id=mainTab>"+
" <tr height=18 style=cursor:default; onmousedown='x=event.x;y=event.y;setCapture();mainTab.bgColor=\""+moveBg+"\";' onmouseup='releaseCapture();mainTab.bgColor=\""+titleBg+"\";' onmousemove='if(event.button==1)self.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>"+
" <td width=18 align=center><img height=12 width=12 border=0 src="+icon+"></td>"+
" <td width="+w+"><span style=font-size:12px;color:"+titleColor+";font-family:ËÎÌå;[wiki]POS[/wiki]ition:relative;top:1px;>"+titleWord+"</span></td>"+
" <td width=14><img border=0 width=12 height=12 alt=×îС»¯ src="+minimizebar+" onmousedown=hhctrl.Click(); onmou[wiki]SEO[/wiki]ver=this.src='"+minimizebar2+"' onmouseout=this.src='"+minimizebar+"'></td>"+
" <td width=13><img border=0 width=12 height=12 alt=¹Ø±Õ src="+closebar+" onmousedown=self.close(); onmouseover=this.src='"+closebar2+"' onmouseout=this.src='"+closebar+"'></td>"+
" </tr>"+
" <tr height=*>"+
" <td colspan=4>"+
" <iframe name=nbw_v6_iframe src="+fileName+" scrolling="+scr+" width=100% height=100% frameborder=0></iframe>"+
" </td>"+
" </tr>"+
" </table>"+
"</body>"+
"</html>";
pop=window.open("","_blank","fullscreen=yes");
pop.resizeTo(w,h);
pop.moveTo((screen.width-w)/2,(screen.height-h)/2);
pop.document.writeln(contents);
if(pop.document.body.clientWidth!=w||pop.document.body.clientHeight!=h) //Èç¹ûÎÞ±ßÊÓ´°²»ÊdzöÏÖÔÚ´¿´âµÄIEÊÓ´°ÖÐ
{
temp=window.open("","nbw_v6");
temp.close();
window.showModalDialog("about:<"+"script language=javascript>window.open('','nbw_v6','fullscreen=yes');window.close();"+"</"+"script>","","dialogWidth:0px;dialogHeight:0px");
pop2=window.open("","nbw_v6");
pop2.resizeTo(w,h);
pop2.moveTo((screen.width-w)/2,(screen.height-h)/2);
pop2.document.writeln(contents);
pop.close();
}
}
</script>
//µÚ¶þ²½:°ÑÈçÏ´úÂë¼ÓÈë<body></body>ÇøÓòÖÐ
<a href=#none onclick=noBorderWin('rate.htm','400','240','#000000','#333333','#CCCCCC','Ò»¸öÎÞ±ßÊÓ´°µÄ[wiki]²âÊÔ[/wiki]Àý×Ó','yes');>open¡´/a¡µ
ÈÃд°¿Ú×ÜÔÚÒ»¸ö´°¿Úµ¯³ö
пªÒ»¸öµÄ´°¿Ú£¨name=screen£©
ÔÙÔÚÕâ¸ö´°¿ÚÄÚ´ò¿ªÁ´½Ó£¨target=screen£©
/code]