网页特效:漂亮的导航页面
考试大计算机软考站整理:http://www.exmada.com/soft
本特效共分3步:
1.在
中加入:<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="
" + percent.toString(10) + " %
"if (pgb.pixelWidth >= 230) {
clearTimeout(timeoutID);
window.navigate("http://www.softii.com/");
return;
}
}
</script>
2.将 onload=skipmain() 插入到
中例如:
3.在
中间加入:
style="BACKGROUND-COLOR: #65a1ca; HEIGHT: 10px; MARGIN: 0px; TEXT-ALIGN: center; WIDTH: 0px" border="0"> |
style="MARGIN-BOTTOM: 0px; MARGIN-: 0px">0 %
位律师回复
0条评论