?? ch18-263.html
字號:
<HTML>
<HEAD>
<TITLE>技巧篇--打開頁面</TITLE>
</HEAD>
<BODY bgcolor="#fef4d2" >
<br><br>
<center>
<h2>技巧篇--打開頁面</h2>
<hr width=300>
<br><br>
<!-- 案例代碼開始 -->
<!-- [Step1]: 這里可以更改打開頁面的背景色 -->
<style>
.intro{position:absolute;left:0;top:0;background-color:#00FF99;layer-background-color:red;border:0.1px solid red}
.pt9 { font-family: "宋體"; font-size: 9pt; text-decoration: none}
body { font-family: "宋體"; font-size: 9pt; text-decoration: none ; margin-top: 0px}
</style>
<div id="index1" class="intro"></div>
<div id="index2" class="intro"></div>
<script language=JavaScript>
var temp=new Array()
var temp2=new Array()
if (document.layers){
for (i=1;i<=2;i++){
temp[i]=eval("document.index"+i+".clip")
temp[i].width=window.innerWidth/2
temp[i].height=window.innerHeight
temp2[i]=eval("document.index"+i)
temp2[i].left=(i-1)*temp[i].width } }
else if (document.all){
var clipright=document.body.clientWidth/2,clipleft=0
for (i=1;i<=2;i++){
temp[i]=eval("document.all.index"+i+".style")
temp[i].width=document.body.clientWidth/2
temp[i].height=document.body.offsetHeight
temp[i].left=(i-1)*parseInt(temp[i].width) }
}
function StartOpenPage(){
<!-- [Step2]: 在此能夠設置頁面打開的速度 -->
stopit=setInterval("SetOpenPage()",100)
}
function SetOpenPage(){
window.scrollTo(0,0)
if (document.layers){
temp[1].right-=30
temp[2].left+=30
if (temp[2].left>window.innerWidth/2) clearInterval(stopit) }
else if (document.all){
clipright-=30
temp[1].clip="rect(0 "+clipright+" auto 0)"
clipleft+=30
temp[2].clip="rect(0 auto auto "+clipleft+")"
if (clipright<=0) clearInterval(stopit) }
}
StartOpenPage()
</script>
<!-- 案例代碼結束 -->
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -