可以了,你犯了两个错误
1、DoFun()定义你少了i,即DoFun(i)
2、DoFun中引用到了doc和obj,所以doc和obj不能定义在 Setting() 里面,而是放在函数之外作为全局变量,这样 Setting() 和do
Fun()都能够引用了
<HTML>
<HEAD>
<TITLE>幻灯片播放</TITLE>
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html;
charset=gb2312">
<link href="style.css"
type="text/css"
rel="stylesheet">
</HEAD>
<SCRIPT language="VBScript">
Dim FileList,FileListArr
FileList = "./照片/何小菱.jpg,./照片/me2.jpg,./照片/照片12.jpg,./照片/喜乐 33.jpg,./照片/喜乐 37.jpg,./照片/me.jpg,./照片/照片002.jpg,./照片/照片21.jpg,./照片/喜乐 50.jpg,./照片/喜乐 61.jpg,./照片/喜乐 68.jpg,./照片/喜乐 70.jpg,./照片/喜乐 81.jpg,./照片/照片57.jpg,./照片/照片96.jpg,./照片/照片99.jpg,./照片/照片111.jpg,./照片/照片212.jpg,./照片/照片222.jpg"
FileListArr = Split(FileList,","
Dim CanPlay
CanPlay = CInt(Split(Split(navigator.appVersion,";"
(1),"
"
(2))>5
Dim FilterStr
FilterStr = "RevealTrans(duration=2,transition=23)"
FilterStr = FilterStr + ";BlendTrans(duration=2)"
If CanPlay then
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Pixelate(,enabled=false,duration=2,maxSquare=25)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Fade(duration=2,overlap=0)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.GradientWipe(duration=2,gradientSize=0.25,motion=forward )"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Stretch(duration=2,stretchStyle=PUSH)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Wheel(duration=2,spokes=16)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.RandomDissolve(duration=2)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Spiral(duration=2,gridSizeX=50,gridSizeY=50)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Slide(duration=2,bands=1,slideStyle=SWAP)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.RadialWipe(duration=2,wipeStyle=CLOCK)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Wipe(duration=3,gradientsize=0.25,motion=reverse)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Zigzag(GridSizeX=16,GridSizeY=16)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Barn( motion=out,orientation=vertical)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Blinds( Bands=10,direction=up)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Checkerboard( Direction=right,SquaresX=2,SquaresY=2)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Iris(irisstyle=PLUS,motion=out)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Stretch(stretchstyle=PUSH)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Strips(motion=rightdown)"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.RandomBars()"
FilterStr = FilterStr + ";progid
XImageTransform.Microsoft.Inset()"
else
Msgbox "幻灯片播放具有多种动态图片切换效果,但此功能需要您的浏览器为IE5.5或以上版本,否则您将只能看到部分的切换效果。",64
End If
Dim FilterArr
FilterArr = Split(FilterStr,";"
Dim PlayImg_M
PlayImg_M = 6 * 1000 '切换时间(毫秒)
Dim J
J = 1
Sub ChangeImg
Do While FileListArr(J)=""
J = J + 1
If J>UBound(FileListArr) then
J = 0
Loop
Dim K
If J>UBound(FileListArr) then
J = 0
Randomize
K = Int(Rnd * (UBound(FilterArr)+1))
Img.style.filter = FilterArr(K)
Img.filters(0).Apply
Img.Src = FileListArr(J)
Img.filters(0).play
J = J + 1
If J>UBound(FileListArr) then
J = 0
TempImg.Src = FileListArr(J)
SetTimeout "ChangeImg",PlayImg_M,"VBScript"
End Sub
</SCRIPT>
<BODY BGCOLOR="#000000"
onload=Setting() >
<SPAN id=Set
style="FONT: bold 24pt arial;
POSITION: relative;
VISIBILITY: hidden">
<P style="margin-top: 0;
margin-bottom: 0"><font color="#FFFF00">Welcome to I - TIME !</font></P>
</SPAN>
<DIV id=Text1
style="COLOR: white;
FONT: bold 16pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><font color="#FF00FF">欢迎来到</font></P></DIV>
<DIV id=Text2
style="COLOR: red;
FONT: bold 20pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P> </P></DIV>
<DIV id=Text3
style="color: blue;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 26pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 13;
top: 322;
width: 916;
height: 62">
<P><BIG>Only For You</BIG></P></DIV>
<DIV id=Text4
style="color: black;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 16pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 6;
top: 421;
width: 916;
height: 19"></DIV>
<DIV id=Title2
style="color: gray;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 24pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 7;
top: 422;
width: 916;
height: 58">
<P><font color="#008000">小菱主页 生活点滴</font></P></DIV>
<DIV id=Title1
style="color: white;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 24pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 4;
top: 519;
width: 700;
height: 93">
<P><font color="#00FF00">小菱主页 生活点滴</font></P></DIV>
<DIV id=Circle0
style="COLOR:green;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT size=4>欢</FONT></P></DIV>
<DIV id=Circle1
style="COLOR:green;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT size=4>迎</FONT></P></DIV>
<DIV id=Circle2
style="COLOR: green;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT size=4>小</FONT></P></DIV>
<DIV id=Circle3
style="COLOR: green;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT size=4>菱</FONT></P></DIV>
<DIV id=Circle4
style="color: steelblue;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 334;
width: 916;
height: 58">
<P><FONT color=#ffff00 size=6>*</FONT></P></DIV>
<DIV id=Circle5
style="COLOR: steelblue;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=#ff0000 size=4>淡</FONT></P></DIV>
<DIV id=Circle6
style="COLOR: steelblue;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=#ff0000 size=4>淡</FONT></P></DIV>
<DIV id=Circle7
style="COLOR: orange;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=#ff0000 size=4>烟</FONT></P></DIV>
<DIV id=Circle8
style="COLOR: pink;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=#ff0000 size=4>雨</FONT></P></DIV>
<DIV id=Circle9
style="COLOR: pink;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=#ff0000 size=4>淡</FONT></P></DIV>
<DIV id=Circle10
style="COLOR: red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT size=4>淡</FONT></P></DIV>
<DIV id=Circle11
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>愁</FONT></P></DIV>
<DIV id=Circle12
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>,</FONT></P></DIV>
<DIV id=Circle13
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>淡</FONT></P></DIV>
<DIV id=Circle14
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>淡</FONT></P></DIV>
<DIV id=Circle15
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>明</FONT></P></DIV>
<DIV id=Circle16
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>月</FONT></P></DIV>
<DIV id=Circle17
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>上</FONT></P></DIV>
<DIV id=Circle18
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>西</FONT></P></DIV>
<DIV id=Circle19
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>楼</FONT></P></DIV>
<DIV id=Circle20
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>。</FONT></P></DIV>
<DIV id=Circle21
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>淡</FONT></P></DIV>
<DIV id=Circle22
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>淡</FONT></P></DIV>
<DIV id=Circle23
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>流</FONT></P></DIV>
<DIV id=Circle24
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>水</FONT></P></DIV>
<DIV id=Circle25
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>溪</FONT></P></DIV>
<DIV id=Circle26
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>中</FONT></P></DIV>
<DIV id=Circle27
style="COLOR:red;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=red size=4>过</FONT></P></DIV>
<DIV id=Circle28
style="color: yellow;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 344;
width: 916;
height: 58">
<P><FONT color=yellow size=6>*</FONT></P></DIV>
<DIV id=Circle29
style="COLOR: lightseagreen;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=#8080ff size=4>淡</FONT></P></DIV>
<DIV id=Circle30
style="COLOR: lightseagreen;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=#8080ff size=4>淡</FONT></P></DIV>
<DIV id=Circle31
style="COLOR: lightseagreen;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=#8080ff size=4>鱼</FONT></P></DIV>
<DIV id=Circle32
style="COLOR: orange;
FONT: bold 11pt arial;
POSITION: absolute;
VISIBILITY: hidden">
<P><FONT color=#8080ff size=4>儿</FONT></P></DIV>
<DIV id=Circle33
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 12;
top: 408;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>水</FONT></P></DIV>
<DIV id=Circle34
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 11;
top: 431;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>中</FONT></P></DIV>
<DIV id=Circle35
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>游</FONT></P></DIV>
<DIV id=Circle36
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>。</FONT></P></DIV>
<DIV id=Circle37
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>淡</FONT></P></DIV>
<DIV id=Circle38
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>淡</FONT></P></DIV>
<DIV id=Circle39
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>清</FONT></P></DIV>
<DIV id=Circle40
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>香</FONT></P></DIV>
<DIV id=Circle41
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>香</FONT></P></DIV>
<DIV id=Circle42
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>盈</FONT></P></DIV>
<DIV id=Circle43
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>袖</FONT></P></DIV>
<DIV id=Circle44
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>,</FONT></P></DIV>
<DIV id=Circle45
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>淡</FONT></P></DIV>
<DIV id=Circle46
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>淡</FONT></P></DIV>
<DIV id=Circle47
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>蝴</FONT></P></DIV>
<DIV id=Circle48
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>蝶</FONT></P></DIV>
<DIV id=Circle49
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>落</FONT></P></DIV>
<DIV id=Circle50
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>绣</FONT></P></DIV>
<DIV id=Circle51
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 9;
top: 436;
width: 916;
height: 42">
<P><FONT color=#8080ff size=4>球</FONT></P></DIV>
<DIV id=Circle52
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 10;
top: 423;
width: 916;
height: 56">
<P><FONT color=#ff80c0 size=6>*</FONT></P></DIV>
<DIV id=Circle53
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 14;
top: 420;
width: 916;
height: 56">
<P><FONT color=#ff80c0 size=6>*</FONT></P></DIV>
<DIV id=Circle54
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 13;
top: 347;
width: 916;
height: 42">
<P><FONT color=#ff0000 size=4>感</FONT></P></DIV>
<DIV id=Circle55
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 13;
top: 330;
width: 916;
height: 42">
<P><FONT color=#ff0000 size=4>谢</FONT></P></DIV>
<DIV id=Circle56
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 12;
top: 437;
width: 916;
height: 42">
<P><FONT color=#ff0000 size=4>上</FONT></P></DIV>
<DIV id=Circle57
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 12;
top: 416;
width: 916;
height: 42">
<P><FONT color=#ff0000 size=4>帝</FONT></P></DIV>
<DIV id=Circle58
style="color: lemonchiffon;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 11pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 13;
top: 339;
width: 916;
height: 41">
<P><FONT color=#ff80c0 size=4>*</FONT></P></DIV>
<DIV id=Now
style="color: orange;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 24pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 5;
top: 402;
width: 916;
height: 19"></DIV>
<DIV id=Title3
style="color: orange;
font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 24pt;
font-family: arial;
position: absolute;
visibility: hidden;
left: 13;
top: 357;
width: 916;
height: 19"></DIV>
<DIV id=Add
style="font-style: normal;
font-variant: normal;
font-weight: bold;
font-size: 24pt;
font-family: arial;
position: absolute;
text-align: right;
visibility: hidden;
width: 250;
left: 17;
top: 348;
height: 19"></DIV>
<DIV id=Entry
style="FONT: bold 24pt arial;
POSITION: absolute;
TEXT-ALIGN: right;
VISIBILITY: hidden;
WIDTH: 250px">
<P> </P></DIV>
<TABLE WIDTH="100%"
height="100%"
BORDER="0"
CELLSPACING="0"
CELLPADDING="0">
<TR ID="NoScript">
<TD Align="Center"
Style="Color:White">对不起,图片浏览功能需脚本支持,但您的浏览器已经设置了禁止脚本运行。请您在浏览器设置中调整有关安全选项。</TD>
</TR>
<TR Style="Display:none"
ID="CanRunScript">
<TD HEIGHT="100%"
Align="Center"
vAlign="Center">
<CENTER><Img style="right: 521px;
height="400"
ID="Img"
width="400"
Border="0"
></CENTER>
</TD>
</TR>
<TR Style="Display:none">
<TD><Img ID="TempImg"
Border="0"></TD>
</TR>
</TABLE>
<SCRIPT language="JavaScript">
var IsIE4 = (navigator.appVersion.charAt(0) >= 4 &&
navigator.appName == "Microsoft Internet Explorer"
;
var IsNN4 = (navigator.appVersion.charAt(0) >= 4 &&
navigator.appName == "Netscape"
;
var Title1,Title2,Title3,Text1,Text2,Text3,Text4,Now,Add,Entry;
var CenterX,CenterY,Pi,Inc;
var Circle = new Array();
var Pos = new Array();
var NowLeft,NowTop;
var Count = 0;
var Bright = 0;
var Brightfold = true;
var ColorIndex = "0123456789ABCDEFFF";
vardo
c = (IsNN4)? "document."
: "document.all.";
var obj = (IsNN4)? ""
: ".style";
if(!(IsIE4||IsNN4))
top.location="building.html";
function SetCenter()
{
this.left = (innerWidth - this.clip.width) / 2;
this.top = (innerHeight - this.clip.height) / 2;
}
function Setting()
{
Title1 = eval(doc+"Title1"+obj);
Title2 = eval(doc+"Title2"+obj);
Title3 = eval(doc+"Title3"+obj);
Text1 = eval(doc+"Text1"+obj);
Text2 = eval(doc+"Text2"+obj);
Text3 = eval(doc+"Text3"+obj);
Text4 = eval(doc+"Text4"+obj);
Now = eval(doc+"Now"+obj);
Add = eval(doc+"Add"+obj);
Entry = eval(doc+"Entry"+obj);
do
Fun(0)
if(IsNN4)
{
Layer.prototype.setCenter = SetCenter;
LayerWidth =do
cument.Set.clip.width;
LayerHeight =do
cument.Set.clip.height;
BodyWidth = innerWidth;
BodyHeight = innerHeight;
Title1.setCenter();
Title2.setCenter();
Title3.setCenter();
Entry.setCenter();
Now.setCenter();
Title1.top = Title1.top - 24;
Title2.top = Title2.top - 24;
Title3.top = Title3.top - 24;
Now.top = Entry.top - 90;
Now.left = Entry.left - 110;
Entry.top = Entry.top + 30;
Entry.left = Entry.left + 35;
}
else
{
BodyWidth =do
cument.body.offsetWidth;
BodyHeight =do
cument.body.offsetHeight;
LayerWidth =do
cument.all.Set.offsetWidth;
LayerHeight =do
cument.all.Set.offsetHeight;
SetLeft = (BodyWidth - LayerWidth) / 2;
SetTop = (BodyHeight - LayerHeight) / 2;
Title1.left = SetLeft;
Title1.top = SetTop - 24;
Title2.left = SetLeft;
Title2.top = SetTop - 24;
Title3.left = SetLeft;
Title3.top = SetTop - 24;
Now.left = SetLeft - 55;
Now.top = SetTop - 65;
Add.left = SetLeft + 85;
Add.top = SetTop + 55;
Entry.left = SetLeft + 85;
Entry.top = SetTop + 75;
}
CenterX = BodyWidth / 2-20 ;
CenterY = BodyHeight / 2+25 ;
Radius = 260;
Pi = Math.PI;
Inc = Pi/180;
Pos[0] = 0;
for(i=1;i<Circle.length;i++) Pos
= parseFloat(Pos[i-1] + ((2*Pi)/Circle.length));
for(i=0;i<Pos.length;i++)
{
Pos = Pos + Inc;
Circle.left = Radius*Math.cos(Pos) + CenterX - 5;
Circle.top = Radius*Math.sin(Pos) + CenterY - 5;
}
NowLeft = (BodyWidth - LayerWidth) / 2 - 100;
NowTop = (BodyHeight - LayerHeight) / 2 - 115;
MoveText1();
}
functiondo
Fun(i)
{
Circle = eval(doc+"Circle"+i+obj);
i=i+1
if (i<=58) {
setTimeout("DoFun("+i+"",100);
//延迟1秒
}
}
function MoveText1()
{
Text1.visibility = "visible";
Text1.left = NowLeft;
Text1.top = NowTop;
NowLeft = NowLeft + 10;
NowTop = NowTop + 5;
if(NowLeft < (BodyWidth - LayerWidth) / 2 - 10 )
MoveText1ID = setTimeout("MoveText1()",50);
else
{
clearTimeout(MoveText1ID);
NowLeft = (BodyWidth - LayerWidth) / 2 + 200;
NowTop = (BodyHeight - LayerHeight) / 2 - 115;
MoveText2();
}
}
function MoveText2()
{
Text2.visibility = "visible";
Text2.left = NowLeft;
Text2.top = NowTop;
NowLeft = NowLeft - 8;
NowTop = NowTop + 5;
if(NowLeft > (BodyWidth - LayerWidth) / 2 + 90 )
MoveText2ID = setTimeout("MoveText2()",50);
else
{
clearTimeout(MoveText2ID);
NowLeft = (BodyWidth - LayerWidth) / 2 - 50;
NowTop = (BodyHeight - LayerHeight) / 2 + 115;
MoveText3();
}
}
function MoveText3()
{
Text3.visibility = "visible";
Text3.left = NowLeft;
Text3.top = NowTop;
NowLeft = NowLeft + 10;
NowTop = NowTop - 5;
if(NowLeft < (BodyWidth - LayerWidth) / 2 + 50 )
MoveText3ID = setTimeout("MoveText3()",50);
else
{
clearTimeout(MoveText3ID);
NowLeft = (BodyWidth - LayerWidth) / 2 + 200;
NowTop = (BodyHeight - LayerHeight) / 2 + 115;
MoveText4();
}
}
function MoveText4()
{
Text4.visibility = "visible";
Text4.left = NowLeft;
Text4.top = NowTop;
NowLeft = NowLeft - 5;
NowTop = NowTop - 2;
if(NowLeft > (BodyWidth - LayerWidth) / 2 + 150 )
MoveText4ID = setTimeout("MoveText4()",50);
else
{
clearTimeout(MoveText4ID);
Fade();
}
}
function Fade()
{
var BackX = Math.random()*10;
var BackY = Math.random()*5;
if(Count<=50)
{
if(Math.random()<0.5)
{
BackX = -BackX;
BackY = -BackY;
}
Title1.visibility = "visible";
Title2.visibility = "visible";
Title2.left = parseInt(Title1.left) + BackX;
Title2.top = parseInt(Title1.top) + BackY;
FadeID = setTimeout("Fade()",50);
Count++;
}
else
{
Text1.visibility = "hidden";
Text2.visibility = "hidden";
Text3.visibility = "hidden";
Text4.visibility = "hidden";
Title1.visibility = "hidden";
Title2.visibility = "hidden";
clearTimeout(FadeID);
setInterval("Last()",10);
}
}
function Last()
{
var ColorHex = ColorIndex.charAt(Bright);
ColorHex = ColorHex + ColorHex + ColorHex + ColorHex + ColorHex + ColorHex;
if(IsIE4)
Add.visibility = "visible";
Now.visibility = "visible";
Entry.visibility = "visible";
for (i=0;i<Pos.length;i++) Circle.visibility = "visible";
Title3.visibility = "visible";
if(IsIE4)
{
Title3.color = ColorHex;
if(Bright >= 17) Brightfold = false;
if(Bright <= 0) Brightfold = true;
if(Brightfold)
Bright++;
else
Bright--;
}
for(i=0;i<Pos.length;i++)
{
Pos = Pos - Inc;
Circle.left = Radius*Math.cos(Pos) + CenterX - 5;
Circle.top = Radius*Math.sin(Pos) + CenterY - 5;
}
}
</SCRIPT>
<Script Language="VBScript">
NoScript.Style.Display = "none"
CanRunScript.Style.Display = ""
Img.Src = FileListArr(0)
SetTimeout "ChangeImg", PlayImg_M
</Script>
<SCRIPT language=JavaScript>
<!--
file://锁鼠标右键和键盘CONTEXTMENU键
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) { alert("不好意思,朋友,我可不希望我所喜欢的人的照片被拷贝,谢谢合作-_^"
oncontextmenu='return false';
}
}
if (document.layers) {
if (e.which == 3) {
oncontextmenu='return false';
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;"
// -->
</SCRIPT>
<script language="JavaScript">
<!--
function window:nresize()
{
location.reload();
}
// -->
</script>