加入我的最愛  |   設定為首頁  |   圖片上載  論壇音樂模式    非音樂模式   
 
I-See 論壇

I-See 論壇 註冊 登錄 會員 勳章中心 MSN宣傳系統 虛擬形象 音樂盒中心 隨機圖片中心 Flash 遊戲 會員相冊 新手手冊 娛樂設施 幫助 簡體中文 界面風格




 發新回覆
發新主題 發新投票
標題: 飄雪效果ar!!
載入中 ...
  所需閱讀權限 1  
XDKAKA
初生嬰兒




會員編號 235150
精華 0
積分 403
帖子 17
威望 0 點
I-See幣 11058 錢
GAME幣 100 個
MSN宣傳 0 次
性別  保密 保密
配偶 未婚
閱讀權限 40
註冊 2006-11-24
註冊天數 6382
狀態 離線
  只顯示 XDKAKA 的帖子
發表於 2006-11-27 05:52 PM  資料  短消息  加為好友 
飄雪效果ar!!

Sample Text<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>

I-See Forum @ All rights reserved.
頂部
載入中 ...
 發新回覆
發新主題 發新投票


載入中 ...


當前時區 GMT+8, 現在時間是 2024-5-15 04:18 PM

  Powered by Discuz!  © Comsenz Inc.
Processed in 0.014269 second(s), 7 queries , Gzip enabled

清除 Cookies - 聯繫我們 - I-See 論壇 - Archiver - WAP