2006-11-17 09:43 PM
-★nga.
部份 Q O O Z A語法**
板框虛線
<style>
table{style;border:1px dashed; border-color:顏色色碼}
</style>
四色外框
<script language="JavaScript1.2">
if (document.all)document.body.style.cssText="border:10 double; border-color:上方色碼 右方色碼 下方色碼 左方色碼"</script>
捲動文字
<marquee scrollamount="1" direction="up" width="268" height="86" ">
</marquee>
<p><font color="#CC6699"></font></p>
<p><font color="#CC6699">我是第一行的文字</font></p>
<p><font color="#CC6699">我是第二行的文字</font></p>
<p><font color="#CC6699">我是第三行的文字</font></p>
<p><font color="#CC6699">我是第四行的文字</font></p>
</td></table>
底色捲軸
<style type=text/css>
<!--
BODY{
SCROLLBAR-FACE-COLOR: #ffffff; /*捲軸顏色*/
SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; /*捲軸左與上內邊框*/
SCROLLBAR-SHADOW-COLOR: #ffffff;/*捲軸右與下內邊框*/
SCROLLBAR-3DLIGHT-COLOR: #ffffff; /*捲軸左與上外邊框*/
SCROLLBAR-DARKSHADOW-COLOR: #ffffff;/*捲軸右與下外邊框*/
SCROLLBAR-ARROW-COLOR: #000000; /*捲軸箭頭*/
SCROLLBAR-TRACK-COLOR: #000000; /*捲軸底色*/
}
-->
</style>
中空捲軸
<style type=text/css>
<!--
BODY{
SCROLLBAR-FACE-COLOR: #ffffff; /*捲軸顏色*/
SCROLLBAR-HIGHLIGHT-COLOR: #ffFFFF; /*捲軸左與上內邊框*/
SCROLLBAR-SHADOW-COLOR: #000000;/*捲軸右與下內邊框*/
SCROLLBAR-3DLIGHT-COLOR: #000000; /*捲軸左與上外邊框*/
SCROLLBAR-DARKSHADOW-COLOR: #ffFFFF;/*捲軸右與下外邊框*/
SCROLLBAR-ARROW-COLOR: #000000; /*捲軸箭頭*/
SCROLLBAR-TRACK-COLOR: #ffffff; /*捲軸底色*/
}
-->
</style>
封鎖右鍵
<body ONDRAGSTART="window.event.returnValue=false" ONCONTEXTMENU="window.event.returnValue=false" >
封鎖反白
<body ONDRAGSTART="window.event.returnValue=false" onSelectStart="event.returnValue=false">
日記透明
<STYLE>
table{filter:Alpha(Opacity=透明度)}
</STYLE>
板面淡化
<STYLE>
table{filter:Alpha(Opacity=60)}
</STYLE>
背景圖淡化
<style>
body{
background-image : url(背景圖網址);filter:Alpha(Opacity=40);
background-repeat : repeat;
background-attachment : fixed;}
</style>
板面x光效果
<style>
body{Filter:Xray}
</style>
板面灰階
<style>
body{filter:gray}
</style>
背景圖語法
<BODY bgcolor="cccccc" background="圖片網址" bgproperties="fixed">
板面糢糊
<style>
body{filter:Blur(Direction=45,Strength=5)}
</style>
背景向下滑
<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 LANGUAGE="JavaScript">
if (document.all) {
message = "歡迎光臨*雄之網頁*";
Font = "細明體";
Color = "white";
Width = 90;
Height = 30;
step = 0.04;
message = message.split(\);
L = message.length;
TrigSplit = 360 / L;
Sz = new Array()
ypos = 0;
xpos = 0;
currStep = 0;
document.write(<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">);for (i = 0; i < L; i++) {
document.write(<div id="ie" style="position:absolute;top:0px;left:0px;
+width:10px;height:10px;font-family:+Font+;font-size:12px;
+color:+Color+;text-align:center">+message+</div>);}
document.write(</div></div>);
function Mouse() {
ypos = event.y;
xpos = event.x - 5;}
document.onmousemove=Mouse;
function animate() {
outer.style.pixelTop = document.body.scrollTop;
for (i = 0; i < L; i++) {
ie.style.top = ypos + Height * Math.sin(currStep + i * TrigSplit * Math.PI / 180);
ie.style.left = xpos + Width * Math.cos(currStep + i * TrigSplit * Math.PI / 180);
Sz = ie.style.pixelTop - ypos;
if (Sz < 5) Sz = 5;
ie.style.fontSize = Sz / 1.7;}
currStep -= step;
setTimeout(animate(), 20);}
window.onload = animate;}
</script>
滑鼠變十字線
<script language="JavaScript1.2">
if (document.all&&!window.print){leftright.style.width=document.body.clientWidth-2
topdown.style.height=document.body.clientHeight-2
}else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}function followmouse1(){//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientX<document.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
}function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
}if (document.all)document.onmousemove=followmouse1
else if (document.layers){window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2}function regenerate(){window.location.reload()}function regenerate2(){setTimeout("window.onresize=regenerate",400)}if ((document.all&&!window.print)||document.layers)//if the user is using IE 4 or NS 4, both NOT IE 5+
window.onload=regenerate2
</script><style>#leftright, #topdown{position:absolute;
left:0;top:0;width:1px;height:1px;layer-background-color:no;
background-color:white;
z-index:100;font-size:1px;}</style><div id="leftright" style="width:expression(document.body.clientWidth-2)"></div><div id="topdown" style="height:expression(document.body.clientHeight-2)"></div>
滑鼠指選擇及連結變十字
<STYLE>A {CURSOR:crosshair; TEXT-DECORATION: none}</STYLE>
震動圖片
<style>.shakeimage{position:relative}</style>
<script language="JavaScript1.2">
var rector=2
var stopit=0
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0}function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)return
if (a==1){shake.style.top=parseInt(shake.style.top)+rector
}else if (a==2){shake.style.left=parseInt(shake.style.left)+rector}else if (a==3){shake.style.top=parseInt(shake.style.top)-rector}else{shake.style.left=parseInt(shake.style.left)-rector
}if (a<4)a++
else
a=1
setTimeout("rattleimage()",50)}function stoprattle(which){stopit=1
which.style.left=0
which.style.top=0
}</script>
<img src="圖片網址" class="shakeimage"
onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this)">
滑鼠指、圖片由淡化變清晰
<script language="JavaScript1.2">
function high(which2){theobject=which2
highlighting=setInterval("highlightit(theobject)",30)}function low(which2){clearInterval(highlighting)
which2.filters.alpha.opacity=50}function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)clearInterval(highlighting)}</script>
<img src="圖片網址" border="0" onMouseover="high(this)" onMouseout="low(this)" style="filter: alpha(opacity=50)">
透明圖片
<img src="圖片網址" border="0" style=" background-color:shadowcolor; filter:alpha(opacity=40);">
放大漸淡
<script language="JavaScript">
if (document.all){
kg=new Image();
kg.src="pic";
document.write(<span id="rings" style="position:absolute;top:0px;left:0px">
+<img src="圖片網址" name="kg" style="position:relative"></span>);
var TimeLinethree = 20;
var TimeLineTwo = 10;
var TimeLineOne = 10;
var ThreeStep = 2.1;
var TwoStep = 5.5;
var OneStep = 2.5;
var xp = 100;
var yp = 100;
function SmokeRing(){
document.all.rings.document.images["kg"].style.filter=alpha(opacity=+TimeLinethree+);
document.all.rings.document.images["kg"].style.top=yp + (-TimeLineOne);
document.all.rings.document.images["kg"].style.left=xp + (-TimeLineOne);
document.all.rings.document.images["kg"].width=TimeLineTwo;
document.all.rings.document.images["kg"].height=TimeLineTwo;
TimeLinethree-=ThreeStep;
TimeLineTwo+=TwoStep;
TimeLineOne+=OneStep;
setTimeout(SmokeRing(),10);
if ((TimeLineTwo > 380) || (TimeLineOne > 380) || (TimeLinethree < 0))
{TimeLineTwo=0;TimeLineOne=0;TimeLinethree=85;
stop=window.document.body.clientHeight-280;
sleft=window.document.body.clientWidth/2.5;//?
yp=Math.round(Math.random()*stop);
xp=Math.round(Math.random()*sleft);
document.all.rings.style.top=yp+document.body.scrollTop;
document.all.rings.style.left=xp+document.body.scrollLeft;}
if ((yp < 80) || (xp < 80)){
yp+=80;
xp+=80;
} }}if (document.all)SmokeRing();
</script>
飄雪較果
<SCRIPT language=JavaScript1.2>
var dollarsrc="圖片網址"
var no = 15;
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 400, doc_height = 200;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
dx = 0; // set coordinate variables
xp = Math.random()*(doc_width-50);
yp = Math.random()*doc_height;
am = Math.random()*20;
stx = 0.04 + Math.random()/15;
sty = 0.9 + Math.random();
if (ns4up) {
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src="+dollarsrc+" border=\"0\"></a></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src="+dollarsrc+" border=\"0\"></layer>");}} else if (ie4up) {if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 30px; LEFT: 15px;\"><img src="+dollarsrc+" border=\"0\"></a></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 30px; LEFT: 15px;\"><img src="+dollarsrc+" border=\"0\"></div>");
}}}function snowNS() {
for (i = 0; i < no; ++ i) {
yp += sty;
if (yp > doc_height+100) {
xp = Math.random()*(doc_width-am-30);
yp = 0;
stx = 0.04 + Math.random()/20;
sty = 0.9 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;}
dx += stx;
document.layers["dot"+i].top = yp;
document.layers["dot"+i].left = xp + am*Math.sin(dx);
}setTimeout("snowNS()", 20);}function snowIE() {
for (i = 0; i < no; ++ i) {
yp += sty;
if (yp > doc_height+100) {
xp = Math.random()*(doc_width-am-30);
yp = 0;
stx = 0.04 + Math.random()/20;
sty = 0.8 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}dx += stx;document.all["dot"+i].style.pixelTop = yp;
document.all["dot"+i].style.pixelLeft = xp + am*Math.sin(dx);}setTimeout("snowIE()", 20);}if (ns4up) {
snowNS();} else if (ie4up) {snowIE();}</SCRIPT>
[color=#ff003f]多人回再 +多d @@[/color]
[[i] 本帖最後由 nga 於 2006-11-17 09:44 PM 編輯 [/i]]
2006-11-17 09:45 PM
-★nga.
滑鼠時鐘 1
<SCRIPT language=javascript>
dCol=555555; // 外圍旋轉日期顏色
fCol=lue; // 十二小時顏色
sCol=
ed; // 秒針顏色
mCol=00000; // 分針顏色
hCol=0ff00; // 時針顏色
ClockHeight=50;
ClockWidth=50;
ClockFromMouseY=80;
ClockFromMouseX=80;
d=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
m=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");
date=new Date();
day=date.getDate();
year=date.getYear();
if (year < 2000) year=year+1900;
TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
D=TodaysDate.split(\);
H=...;
H=H.split(\);
M=....;
M=M.split(\);
S=.....;
S=S.split(\);
Face=1 2 3 4 5 6 7 8 9 10 11 12;
font=verdana; // 字型
size=2;
speed=0.6;
ns=(document.layers);
ie=(document.all);
Face=Face.split( );
n=Face.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font style=font-family:"+font+";size:"+size+";color:"+fCol+">";
props2="<font style=font-family:"+font+";size:"+size+";color:"+dCol+">";
Split=360/n;
Dsplit=360/D.length;
HandHeight=ClockHeight/4.5
HandWidth=ClockWidth/4.5
HandY=-7;
HandX=-2.5;
scrll=0;
step=0.02; // 外圍旋轉速度
currStep=0;
y=new Array();x=new Array();Y=new Array();X=new Array();
for (i=0; i < n; i++){y=0;x=0;Y=0;X=0}
Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
for (i=0; i < D.length; i++){Dy=0;Dx=0;DY=0;DX=0}
if (ns){for (i=0; i < D.length; i++)
document.write(<layer name="nsDate+i+\" top=0 left=0 height=+a+ width=+a+><center>+props2+D+</font></center></layer>);
for (i=0; i < n; i++)
document.write(<layer name="nsFace+i+\" top=0 left=0 height=+a+ width=+a+><center>+props+Face+</font></center></layer>);
for (i=0; i < S.length; i++)
document.write(<layer name=nsSeconds+i+ top=0 left=0 width=15 height=15><font face=Arial size=3 color=+sCol+><center><b>+S+</b></center></font></layer>);
for (i=0; i < M.length; i++)
document.write(<layer name=nsMinutes+i+ top=0 left=0 width=15 height=15><font face=Arial size=3 color=+mCol+><center><b>+M+</b></center></font></layer>);
for (i=0; i < H.length; i++)
document.write(<layer name=nsHours+i+ top=0 left=0 width=15 height=15><font face=Arial size=3 color=+hCol+><center><b>+H+</b></center></font></layer>);
}if (ie){
document.write(<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">);
for (i=0; i < D.length; i++)
document.write(<div id="ieDate" style="position:absolute;top:0px;left:0;height:+a+;width:+a+;text-align:center">+props2+D+</B></font></div>);
document.write(</div></div>);
document.write(<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">);
for (i=0; i < n; i++)
document.write(<div id="ieFace" style="position:absolute;top:0px;left:0;height:+a+;width:+a+;text-align:center">+props+Face+</B></font></div>);
document.write(</div></div>);
document.write(<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">);
for (i=0; i < H.length; i++)
document.write(<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:+hCol+;text-align:center;font-weight:bold">+H+</div>);
document.write(</div></div>);
document.write(<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">);
for (i=0; i < M.length; i++)
document.write(<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:+mCol+;text-align:center;font-weight:bold">+M+</div>);
document.write(</div></div>)
document.write(<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">);
for (i=0; i < S.length; i++)
document.write(<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:+sCol+;text-align:center;font-weight:bold">+S+</div>);
document.write(</div></div>)}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;}
(ns)?window.onmouseMove=Mouse:document.onmousemove=Mouse;
function ClockAndAssign(){
time = new Date ();
secs = time.getSeconds();
sec = -1.57 + Math.PI * secs/30;
mins = time.getMinutes();
min = -1.57 + Math.PI * mins/30;
hr = time.getHours();
hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
if (ie){
Od.style.top=window.document.body.scrollTop;
Of.style.top=window.document.body.scrollTop;
Oh.style.top=window.document.body.scrollTop;
Om.style.top=window.document.body.scrollTop;
Os.style.top=window.document.body.scrollTop;
}for (i=0; i < n; i++){
var F=(ns)?document.layers[
sFace+i]:ieFace.style;
F.top=y + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
F.left=x + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
}for (i=0; i < H.length; i++){
var HL=(ns)?document.layers[
sHours+i]:ieHours.style;
HL.top=y+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
HL.left=x+HandX+(i*HandWidth)*Math.cos(hrs);
}for (i=0; i < M.length; i++){
var ML=(ns)?document.layers[
sMinutes+i]:ieMinutes.style;
ML.top=y+HandY+(i*HandHeight)*Math.sin(min)+scrll;
ML.left=x+HandX+(i*HandWidth)*Math.cos(min);
}for (i=0; i < S.length; i++){
var SL=(ns)?document.layers[
sSeconds+i]:ieSeconds.style;
SL.top=y+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
SL.left=x+HandX+(i*HandWidth)*Math.cos(sec);
}for (i=0; i < D.length; i++){
var DL=(ns)?document.layers[
sDate+i]:ieDate.style;
DL.top=Dy + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
DL.left=Dx + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
}currStep-=step;
}function Delay(){
scrll=(ns)?window.pageYOffset:0;
Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
for (i=1; i < D.length; i++){
Dy=Math.round(DY+=(Dy[i-1]-DY)*speed);
Dx=Math.round(DX+=(Dx[i-1]-DX)*speed);
}y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
for (i=1; i < n; i++){
y=Math.round(Y+=(y[i-1]-Y)*speed);
x=Math.round(X+=(x[i-1]-X)*speed);
}ClockAndAssign();
setTimeout(Delay(),20);
}if (ns||ie)window.onload=Delay;
</SCRIPT>
滑鼠飄圖
<script language="JavaScript">
Image0=new Image();
Image0.src="圖片網址";
Amount=10;
Ymouse=-50;
Xmouse=-50;
Ypos=new Array();
Xpos=new Array();
Speed=new Array();
rate=new Array();
grow=new Array();
Step=new Array();
Cstep=new Array();
nsSize=new Array();
ns=(document.layers)?1:0;
(document.layers)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
Ymouse=(document.layers)?evnt.pageY-20:event.y-20;
Xmouse=(document.layers)?evnt.pageX:event.x;}
(document.layers)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
for (i=0; i < Amount; i++){
Ypos=Ymouse;
Xpos=Xmouse;
Speed=Math.random()*4+1;
Cstep=0;
Step=Math.random()*0.1+0.05;
grow=8;
nsSize=Math.random()*15+5;
rate=Math.random()*0.5+0.1;}
if (ns){
for (i = 0; i < Amount; i++){
document.write("<LAYER NAME=sn"+i+" LEFT=0 TOP=0><img src="+Image0.src+" name=N width="+nsSize+" height="+nsSize+"></LAYER>");}}
else{
document.write(<div style="position:absolute;top:0px;left:0px"><div style="position:relative">);
for (i = 0; i < Amount; i++){
document.write(<img id="si" src="+Image0.src+\" style="position:absolute;top:0px;left:0px;filter:alpha(opacity=90)">);}
document.write(</div></div>);}
function MouseBubbles(){
var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop;
var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < Amount; i++){
sy = Speed*Math.sin(270*Math.PI/200);
sx = Speed*Math.cos(Cstep*4);
Ypos+=sy;
Xpos+=sx;
if (Ypos < -40){
Ypos=Ymouse;
Xpos=Xmouse;
Speed=Math.random()*6+4;
grow=8;
nsSize=Math.random()*15+5;}
if (ns){
document.layers[sn+i].left=Xpos+wscrll;
document.layers[sn+i].top=Ypos+hscrll;}
else{
si.style.pixelLeft=Xpos+wscrll;
si.style.pixelTop=Ypos+hscrll;
si.style.width=grow;
si.style.height=grow; }
grow+=rate;
Cstep+=Step;
if (grow >24) grow=24;}
setTimeout(MouseBubbles(),10);}
MouseBubbles();
</script>
歡迎方塊
<SCRIPT>
window.alert("改寫你喜歡的字句")
</SCRIPT>
2006-11-17 09:45 PM
-★nga.
飄雪效果
<script language="JavaScript">
N = 200;
Y = new Array();
X = new Array();
S = new Array();
A = new Array();
B = new Array();
M = new Array();
V = (document.layers)?1:0;
iH=(document.layers)?window.innerHeight:window.document.body.clientHeight;
iW=(document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i=0; i < N; i++){
Y=Math.round(Math.random()*iH);
X=Math.round(Math.random()*iW);
S=Math.round(Math.random()*5+2);
A=0;
B=Math.random()*0.1+0.1;
M=Math.round(Math.random()*1+1);
}if (V){for (i = 0; i < N; i++)
{document.write("<LAYER NAME=sn"+i+" LEFT=0 TOP=0 BGCOLOR=#fffff0 CLIP=,0,"+M+","+M+"></LAYER>")}
}else{document.write(<div style="position:absolute;top:0px;left:0px">);
document.write(<div style="position:relative">);
for (i = 0; i < N; i++)
{document.write(<div id="si" style="position:absolute;top:0;left:0;width:+M+;height:+M+;background:#fffff0;font-size:+M+\"></div>)}
document.write(</div></div>);}
function snow(){var H=(document.layers)?window.innerHeight:window.document.body.clientHeight;
var W=(document.layers)?window.innerWidth:window.document.body.clientWidth;
var T=(document.layers)?window.pageYOffset:document.body.scrollTop;
var L=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < N; i++){sy=S*Math.sin(90*Math.PI/180);
sx=S*Math.cos(A);
Y+=sy;
X+=sx;
if (Y > H){Y=-10;
X=Math.round(Math.random()*W);
M=Math.round(Math.random()*1+1);
S=Math.round(Math.random()*5+2);}
if (V){document.layers[sn+i].left=X;document.layers[sn+i].top=Y+T}
else{si.style.pixelLeft=X;si.style.pixelTop=Y+T}
A+=B;}setTimeout(snow(),10);}window.onLoad=snow()
</script>
飄圖橫向
<SCRIPT language=JavaScript1.2>
var no = 10;
var speed = 200;
balloon = new Array();
balloon[0] = "圖片網址"
var maxballoon = 0;
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dy, xp, yp;
var am, stx, sty;
var i, doc_width = 500, doc_height = 600;
if (ns4up) {doc_width = self.innerWidth;
doc_height = self.innerHeight - 50;
} else if (ie4up) {doc_width = document.bo
2006-11-17 09:46 PM
-★nga.
走馬燈照片
<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>
----------------------------------------------------------------------------------------------------------
2006-11-18 09:00 PM
Ying`
WOW~
THZZZZ
十卜
2006-11-18 10:23 PM
nasuke
好強呀~
仲有冇多d@o@?
2006-12-13 10:07 PM
Ca`
THx牙
我要左飄雪效果同除廣告
2006-12-15 09:53 PM
VanessaXTabo
哇 ! 唔 該 晒 你 呀 -3333-
好 多 語 法 都 好 有 用 呀 !!
T H Z Z Z !
2006-12-16 06:00 PM
莎嘉
唔該晒ar∼好有用ar!
2006-12-21 06:25 PM
冰..xD
你Post既語法好有用..
謝..
2006-12-23 08:07 AM
joey827
我POST既野都唔錯NA`
2006-12-30 10:51 PM
細蚊蚊
多謝晒樓主-0-
thx-v-V
2007-1-6 08:46 PM
師奶仔
有冇語法係正到個板面好細
用圍係黑色
2007-1-7 10:28 AM
★...小丸...★
選單式音樂播放
<script language="javascript">
function songstop(){
if (document.layers) {document.ram.document.write(" "); document.lthhung.document.close()}
if (document.all) lthhung.netinnerHTML=" "}
function songplay(){
if (document.layers) {
document.lthhung.document.write("<embed src='+sound+' autostart='true' loop='true' width='0' height='0'>"); document.ram.document.close()}
if (document.all) lthhung.innerHTML="<embed src='"+sound+"' autostart='true' loop='true' width='0' height='0'>"}
function getNewSound(){
sound=document.hung.music.options[document.hung.music.selectedIndex].value;
songstop()
songplay()}
</script>
<a id="lthhung"></a>
<form name="hung">
<select onchange="getNewSound()" size="1" name="music">
<option style="BACKGROUND-COLOR:purple;color:pink" >*選首您喜歡的音樂*</option>
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
</select>
</form>
[[i] 本帖最後由 ★...小丸...★ 於 2007-1-7 10:32 AM 編輯 [/i]]
2007-1-10 12:59 PM
笨[DING]!._.`
有D幾有用`@@
2007-2-3 03:09 PM
christy0318
good!!!! but I cannot use 泡泡飄出黎
2007-6-22 08:13 PM
Jo-yce#
THX......................................
頁:
[1]
Powered by Discuz! Archiver 5.5.0
© 2001-2006 Comsenz Inc.