2007-8-1 04:41 PM
h0ney;)
走馬燈照片
走馬燈照片
<Script Language="JavaScript">
var kazugs=3;
var ddhgs=10;
var ddrgs=10;
var xgs=new Array(),ygs=new Array();
xgs[0]=100,ygs[0]=100;
xgs[1]=150,ygs[1]=150;
xgs[2]=200,ygs[2]=200;
xgs[3]=250,ygs[3]=250;
var waitTigs=500;
var speedgs=100;
var xTogs=new Array(),yTogs=new Array();
var hgs=new Array(),dhgs=new Array();
var rgs=new Array(),drgs=new Array(),drrgs=new Array();
var xStOa41,yStOa41,xEnOa41,yEnOa41;
var i,moFlgs=new Array(),tigs=new Array();
for (i=0;i<=kazugs;i++) moFlgs=false,tigs=-1;waitTigs/=speedgs;function setXYgs(name,x,y) {if (document.all) {
document.all(name).style.posLeft=x;
document.all(name).style.posTop=y;
}else if (document.getElementById) {
document.getElementById(name).style.left=x;
document.getElementById(name).style.top=y;
}else if (document.layers) document.layers[name].moveTo(x,y);
}function getWigs() {if (document.all) {
xStgs=document.body.scrollLeft+document.body.clientWidth/4;
yStgs=document.body.scrollTop+document.body.clientHeight/4;
xEngs=xStgs+document.body.clientWidth*2/4;
yEngs=yStgs+document.body.clientHeight*2/4;
}else if (document.getElementById) {
xStgs=window.scrollX+window.innerWidth/4;
yStgs=window.scrollY+window.innerHeight/4;
xEngs=xStgs+window.innerWidth*2/4;
yEngs=yStgs+window.innerHeight*2/4;
}else if (document.layers) {xStgs=window.pageXOffset+window.innerWidth/4;
yStgs=window.pageYOffset+window.innerHeight/4;
xEngs=xStgs+window.innerWidth*2/4;yEngs=yStgs+window.innerHeight*2/4;}}function chaRadgs(r,flag) {if (flag) return (r*3.14159/180);else return (r*180/3.14159);}function setMogs(nu) {xTogs[nu]=Math.floor(Math.random()*(xEngs-xStgs+1))+xStgs;
yTogs[nu]=Math.floor(Math.random()*(yEngs-yStgs+1))+yStgs;
dhgs[nu]=Math.floor(Math.random()*ddhgs)+3;
drgs[nu]=Math.floor(Math.random()*ddrgs)+3;
if ((Math.floor(Math.random()*10)+1)<=5) drgs[nu]=-drgs[nu];
hgs[nu]=Math.sqrt((xTogs[nu]-xgs[nu])*(xTogs[nu]-xgs[nu])+(yTogs[nu]-ygs[nu])*(yTogs[nu]-ygs[nu]));rgs[nu]=0,tigs[nu]=0;drrgs[nu]=chaRadgs(Math.acos((xgs[nu]-xTogs[nu])/hgs[nu]),false);if (ygs[nu]-yTogs[nu]<0) drrgs[nu]=-drrgs[nu];moFlgs[nu]=true;}function movegs9768() {if (document.all || document.getElementById || document.layers) {
var i,x,y;getWigs();for (i=0;i<=kazugs;i++) {
if (tigs==-1) {if (!moFlgs) setMogs(i);
x=hgs*Math.cos(chaRadgs(rgs+drrgs,true));
y=hgs*Math.sin(chaRadgs(rgs+drrgs,true));
rgs-=drgs,hgs-=dhgs;
if (hgs>0) xgs=x+xTogs,ygs=y+yTogs;
else {xgs=xTogs,ygs=yTogs;
moFlgs=false,tigs=0;}setXYgs("img"+i+"gs",xgs,ygs);
}else {tigs++;if (tigs>=waitTigs) tigs=-1;
}}setTimeout("movegs9768()",speedgs);}}</Script>
<SPAN id="img0gs" style="position:absolute; z-index:1">
<IMG SRC="圖片網址"></SPAN>
<SPAN id="img1gs" style="position:absolute; z-index:1">
<IMG SRC="圖片網址"></SPAN>
<SPAN id="img2gs" style="position:absolute; z-index:1">
<IMG SRC="圖片網址"></SPAN>
<SPAN id="img3gs" style="position:absolute; z-index:1">
<IMG SRC="圖片網址"></SPAN>
</SPAN><Script Language="JavaScript">movegs9768();</Script>
泡泡飄出黎
<script>
<!--
var useFlash = navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
if ((navigator.userAgent.indexOf("Win")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1)) {
document.writeln('<SCRIPT LANGUAGE="VBScript">');
document.writeln('On error resume next');
document.writeln('useFlash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))');
document.write('</SCR');
document.writeln('IPT>');
}
browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);
if (browser_name == "Microsoft Internet Explorer" && browser_version == 4.0) {
if (useFlash) {
document.write('<object ID="SWFLASH"');
document.write('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('STYLE="POSITION: absolute; HEIGHT:101%;WIDTH:100%;TOP:0;LEFT:0;VISIBILITY:VISIBLE; ZINDEX:1"');
document.write('width=1 height=1 ALIGN=right>');
document.write('<param name=movie value="http://imgfree.21cn.com/free/flash/2.swf">');
document.write('<param name=wmode value="transparent">');
document.write('</OBJECT>');
}
}
//-->
</script>
</head>
<body oncontextmenu="return false;" onselectstart="return false;" ondragstart="return false;" bgcolor="#ffffff">
<script>
<!--
var useFlash = navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
if ((navigator.userAgent.indexOf("Win")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1)) {
document.writeln('<SCRIPT LANGUAGE="VBScript">');
document.writeln('On error resume next');
document.writeln('useFlash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))');
document.write('</SCR');
document.writeln('IPT>');
}
browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);
if (browser_name == "Microsoft Internet Explorer" && browser_version == 4.0) {
if (useFlash) {
document.write('<object ID="SWFLASH"');
document.write('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('STYLE="POSITION: absolute; HEIGHT:101%;WIDTH:100%;TOP:0;LEFT:0;VISIBILITY:VISIBLE; ZINDEX:1"');
document.write('width=1 height=1 ALIGN=right>');
document.write('<param name=movie value="http://imgfree.21cn.com/free/flash/123.swf">');
document.write('<param name=wmode value="transparent">');
document.write('</OBJECT>');
}
}
//-->
</script>
日記畫面縮小
<style>body{
border-left: 粗度px dotted #顏色;
border-right: 粗度px dotted #顏色;
border-top: 粗度px dotted #顏色;
border-bottom: 粗度px dotted #顏色;
}</style>
MAKE密碼
<script language="JavaScript">
<!--
var keyword = "密碼"
function checkKey(){
var key = prompt("提示問題","打密碼地方")
if(keyword != key)
history.go(0)
}
checkKey()
//-->
</script>
成個日記都有框
<style type="text/css">
.blogheader {
border-right: 粗度px dotted #顏色;
border-bottom: 粗度px dotted #顏色;
border-left: 粗度px dotted #顏色;
border-top: 粗度px dotted #顏色;
}
.blogbody {
border-right: 粗度px dotted #顏色;
border-bottom: 粗度px dotted #顏色;
border-left: 粗度px dotted #顏色;
border-top: 粗度px dotted #顏色;
}
input,select { color:#顏色; font:字形大細pt Verdana; background:#底色; border:粗度px dotted #顏色 }
</style>
除廣告
<SCRIPT LANGUAGE="JavaScript">
<!--
function open () {return true;}
//-->
</SCRIPT>
背景音樂
<bgsound src="音樂網址" loop="-1">
背景向下滑
<script language="VBScript">
dim i, pic
i = -1
pic = document.body.sourceIndex
sub scrollBG
i=i+1
Document.all(pic).style.BackgroundPosition= "0 " & i
id=SetTimeOut("scrollBG", 50, "VBScript")end sub
scrollBG</script>
進入字句
<SCRIPT>
window.alert("改寫你喜歡的字句")
</SCRIPT>
告別視窗
<script language="JavaScript">
function UserExit(){
alert("改寫你喜歡的字句");
}</script>
<body onUnload="UserExit()">