漂亮的等待页面导航
本特效共分3步: 1.在<head></head>中加入: <STYLE type=text/css>TD { FONT-SIZE: 9pt } .come { BACKGROUND-COLOR: #eff7d4; BORDER-BOTTOM: #c07a0b 1px dashed; BORDER-LEFT: #c07a0b 1px dashed; BORDER-RIGHT: #c07a0b 1px dashed; BORDER-TOP: #c07a0b 1px dashed; COLOR: #000000; FONT-SIZE: 9pt; HEIGHT: 18px } </style> <SCRIPT language=javascript> var percent = new Number(0); function skipmain() { dopgb(); } function dopgb() { var pgb = document.all.pgbdiv.style; var timeoutID = setTimeout("dopgb()",100); if (pgb.pixelWidth < 230) pgb.pixelWidth += 5; percent = parseInt(100 * (pgb.pixelWidth / 230) + 1) + 1; if (percent > 100) percent = 100; document.all.perdiv.innerHTML="<p align='center' style='margin-top:0;margin-bottom:0'>" + percent.toString(10) + " %</p>" if (pgb.pixelWidth >= 230) { clearTimeout(timeoutID); window.navigate("http://www.2259.com/"); return; } } </SCRIPT> 2.将 οnlοad=skipmain() 插入到<body>中 例如:<body οnlοad=skipmain()> 3.在<body></body>中间加入: <TABLE align=center border=1 borderColor=#000000 cellPadding=0 cellSpacing=0 height=10 style="BORDER-COLLAPSE: collapse; MARGIN: 10px 0px 0px" width=230 name="pgb_container1"> <TBODY> <TR> <TD class=newfont3> <DIV id=pgbdiv style="BACKGROUND-COLOR: #65a1ca; HEIGHT: 10px; MARGIN: 0px; TEXT-ALIGN: center; WIDTH: 0px" border="0"></DIV></TD></TR></TBODY></TABLE> <P align=center style="MARGIN-TOP: 5px"> <DIV align=center id=perdiv style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px"> <P align=center class=newfont3 style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px">0 %</P></DIV> <P align=center style="MARGIN: 10px"><INPUT align=center class=come οnclick="window.navigate('http://www.2259.com/')" style="cursor: hand; width: 140; height: 22" title=我不想等了,直接进入 type=button value=直接进入> </P>