源码论坛新源代

 找回密码
 立即加入

QQ登录

只需一步,快速开始

香港云VPS只要28/月新源代香港VPS 站长建站必备
文字广告50/月 Q 380559645
楼主: 小黄牛
收起左侧

来自孤单老家的建站公司,模板很漂亮【已测试】

  [复制链接]

该用户从未签到

hunyuan 发表于 2011-6-27 17:08:19 | 显示全部楼层
{:05:}{:05:}{:05:}

该用户从未签到

liaoying 发表于 2011-7-6 17:02:16 | 显示全部楼层
{:soso_e100:} 这个要谢谢了

该用户从未签到

westboy 发表于 2011-7-6 17:52:02 | 显示全部楼层
<SCRIPT language=JavaScript>
<!-- Original:  Altan (snow@altan.hr) -->
<!-- Web Site:  http://www.altan.hr/snow -->
<!-- Smaller flakes, subtle snowfall variables, code beautifcation and makeSnow function by NoSLZZP -->

var no = 6; // snow number
var speed = 12; // smaller number moves the snow faster
var snowflake = "http://www.jscode.cn/Uploadfile/2006819224938886.GIF";

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 400, doc_height = 500;
if (ns4up) {
  doc_width = self.innerWidth;
  doc_height = self.innerHeight;
} else if (ie4up) {
  doc_width = 500;
  doc_height = 500;
}
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);  // set position variables
  yp = Math.random()*doc_height;
  am = Math.random()*20;         // set amplitude variables
  stx = 0.02 + Math.random()/10; // set step variables
  sty = 0.7 + Math.random();     // set step variables
  if (ns4up) {                      // set layers
    if (i == 0) {
      document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
      document.write("top=\"15\" visibility=\"show\"><img src=\"");
      document.write(snowflake + "\" border=\"0\"></layer>");
    } else {
      document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
      document.write("top=\"15\" visibility=\"show\"><img src=\"");
      document.write(snowflake + "\" border=\"0\"></layer>");
    }
  } else if (ie4up) {
    if (i == 0) {
      document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
      document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
      document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
      document.write(snowflake + "\" border=\"0\"></div>");
    } else {
      document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
      document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
      document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
      document.write(snowflake + "\" border=\"0\"></div>");
    }
  }
}
function snowNS() {  // Netscape main animation function
  for (i = 0; i < no; ++ i) {  // iterate for every dot
    yp += sty;
    if (yp > doc_height-50) {
      xp = Math.random()*(doc_width-am-30);
      yp = 0;
      stx = 0.02 + Math.random()/10;
      sty = 0.7 + 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()", speed);
}

function snowIE() {  // IE main animation function
  for (i = 0; i < no; ++ i) {  // iterate for every dot
    yp += sty;
    if (yp > doc_height-50) {
      xp = Math.random()*(doc_width-am-30);
      yp = 0;
      stx = 0.02 + Math.random()/10;
      sty = 0.7 + 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()", speed);
}

if (ns4up) {
  snowNS();
} else if (ie4up) {
  snowIE();
}
</SCRIPT>

本文来自: 171站长论坛(http://www.171zz.com/) 详细文章参考:http://www.171zz.com/thread-352243-1-1.html

该用户从未签到

307906982 发表于 2011-7-6 18:43:08 | 显示全部楼层
感觉也不错,下来玩玩!!{:soso_e191:}

该用户从未签到

2362339 发表于 2011-7-30 21:43:53 | 显示全部楼层
来自孤单老家的建站公司,模板很漂亮

该用户从未签到

qqlongxing 发表于 2011-8-10 11:23:43 | 显示全部楼层
{:soso_e146:}

该用户从未签到

lzlovejie 发表于 2011-11-17 15:59:01 | 显示全部楼层
{:29:}{:29:}

该用户从未签到

GasPard 发表于 2012-2-10 15:29:28 | 显示全部楼层
{:07:}{:07:}{:07:}{:07:}

该用户从未签到

craigxue 发表于 2012-4-7 21:07:20 | 显示全部楼层
测试源码完整

该用户从未签到

hhjjss 发表于 2012-4-15 00:57:53 | 显示全部楼层
这个是后台功能很强悍的网络公司,测试源码完整!

该用户从未签到

qihaoxiong 发表于 2012-8-5 11:06:16 | 显示全部楼层
{:soso_e102:}

该用户从未签到

嗨呀 发表于 2012-8-24 13:17:13 | 显示全部楼层
站公司,模板很漂亮
您需要登录后才可以回帖 登录 | 立即加入

本版积分规则

QQ|小黑屋|手机版|注册|源码论坛 |网站地图

GMT+8, 2025-9-10 15:59 , Processed in 0.187500 second(s), 17 queries .

Powered by Discuz!

© 2001-2023 新源代源码论坛 XYDAI.CN

快速回复 返回顶部 返回列表