« 1 2» Pages: ( 1/2 total )
本页主题: 网页特效个人珍藏代码,分享中 打印 | 加为IE收藏 | 复制链接 | 收藏主题 | 上一主题 | 下一主题

#zenmebuliwo
我也可以签名了,呵呵
级别: 精灵王

 网页特效个人珍藏代码,分享中

2
飘雪特效:
飘雪特效是一个非常酷的特效,加入后在您的网页顶端随机出现飘落的雪花,在冬季时,添加到您的网页上,会给人一种纯洁温馨的印象;秋季,可以飘落果实,会给人一种热情成熟的感觉;夏季,可以飘落绿叶,会给人一种充满生机的喜悦。

<body>
<script language="JavaScript1.2">
var snowsrc="你的地址/images/snow.gif"
  var no = 10;
  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 = 800, doc_height = 600;
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;
xp = Math.random()*(doc_width-50);
yp = Math.random()*doc_height;
am = Math.random()*20;
stx = 0.02 + Math.random()/10;
sty = 0.7 + Math.random();
if (ns4up) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></layer>");
} else if (ie4up) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' 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()", 10);
}
<!-- 此特效使用《网络赚钱,大家一起发》编辑制作-->
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()", 10);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
</script>
</body>

状态栏文字特效:
此特效会在网页状态栏上出现动感十足的文字,对网页会起到很好的点缀效果。文字运动样式有6中,具体效果请浏览
1、  循环滚动方式
<SCRIPT LANGUAGE=JAVASCRIPT>
<!--
var msg = "网络赚钱,大家一起发-http://dajia178.uu1001.com";
var speed = 300;
var msgud = " " + msg;
function statusScroll() {
if (msgud.length <msg.length) msgud += " - " + msg;
msgud = msgud.substring(1, msgud.length);
window.status = msgud.substring(0, msg.length);
window.setTimeout("statusScroll()", speed);
}
<!-- 此特效使用《网络赚钱,大家一起发》编辑制作-->
<!-- 网络赚钱,大家一起发!代码地址:http://dajia178.uu1001.com-->
</SCRIPT>
<BODY onload="window.setTimeout('statusScroll()', 500)">
2、  逐个排队方式
<script language=JavaScript>
var MESSAGE="网络赚钱,大家一起发-http://dajia178.uu1001.com"
var POSITION=100
var DELAY=5
var scroll=new statusMessageObject()
function statusMessageObject(p,d){
this.msg =MESSAGE
this.out =" "
this.pos =POSITION
this.delay=DELAY
this.i=0
this.reset=clearMessage}
function clearMessage(){
this.pos=POSITION}
function scroller(){
for (scroll.i=0;scroll.i<scroll.pos;scroll.i++){
scroll.out += " "}
if (scroll.pos >= 0)
scroll.out += scroll.msg
else scroll.out=scroll.msg.substring(-scroll.pos,scroll.msg.length)
window.status=scroll.out
scroll.out=" "
scroll.pos--
if (scroll.pos < -(scroll.msg.length)) {
scroll.reset()}
setTimeout('scroller()',scroll.delay)}
function snapIn(jumpSpaces,position){
var msg = scroll.msg
var out = ""
for(var i=0; i<position; i++)
{out+= msg.charAt(i)}
for(i=1;i<jumpSpaces;i++)
{out += " "}
out+=msg.charAt(position)
window.status = out
if(jumpSpaces <= 1) {
position++
if(msg.charAt(position) == ' ')
{position++ }
jumpSpaces = 100-position
}else if (jumpSpaces >  3)
{jumpSpaces *= .75}
else
{jumpSpaces--}
if(position != msg.length) {
var cmd = "snapIn(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,scroll.delay);
}else{window.status=""
jumpSpaces=0
position=0
cmd = "snapIn(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,scroll.delay);
return false }
return true}
snapIn(100,0);
<!-- 此特效使用《网络赚钱,大家一起发》编辑制作-->
<!-- 网络赚钱,大家一起发!代码地址:http://dajia178.uu1001.com-->
</script>
3、  依次聚积方式
<SCRIPT LANGUAGE=JAVASCRIPT>
function makeArray(n)
{
this.length = n;
for (i=0; i<n; i++) this="";
}
stcnt = 16;
msg = "网络赚钱,大家一起发-http://dajia178.uu1001.com";
wmsg = new makeArray(32);
wmsg[0]=msg;
blnk ="                    ";
for (i=1; i<32; i++)
{
b = blnk.substring(0,i);
for (j=0; j<msg.length; j++)
wmsg=wmsg+msg.charAt(j)+b;
}
function wiper()
{
if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
if (stcnt-- < -40) stcnt=31;
window.status = str;
timeID = window.setTimeout("wiper()",150);
}
// -->
<!-- 此特效使用《网络赚钱,大家一起发》编辑制作-->
<!-- 网络赚钱,大家一起发!代码地址:http://dajia178.uu1001.com-->
</SCRIPT>
<body ONLOAD="wiper()">
4、  逐个伸缩方式
<script LANGUAGE="JavaScript">
<!--
// Scrolling message settings
var MessageText = "网络赚钱,大家一起发-http://dajia178.uu1001.com"
var DisplayLength = 260
var pos = 1 - DisplayLength;
function ScrollInStatusBar(){
var scroll = "";
pos++;
if (pos == MessageText.length) pos = 1 - DisplayLength;
if (pos<0) {
for (var i=1; i<=Math.abs(pos); i++)
scroll = scroll + "";
scroll = scroll + MessageText.substring(0, DisplayLength - i + 1);
}
else
scroll = scroll + MessageText.substring(pos, pos + DisplayLength);
window.status = scroll;
//Scrolling speed
setTimeout("ScrollInStatusBar()",0);
}
ScrollInStatusBar()
//-->
<!-- 此特效使用《网络赚钱,大家一起发》编辑制作-->
<!-- 网络赚钱,大家一起发!代码地址:http://dajia178.uu1001.com-->
</script>

5、  不停闪烁方式
<script language="">
<!--
var yourwords = "网络赚钱,大家一起发-http://dajia178.uu1001.com";
var speed = 700;
var control = 1;
function flash()
{
  if (control == 1)
    {
      window.status=yourwords;
      control=0;
    } 
  else
    {
      window.status="  ";
      control=1;
    }
  setTimeout("flash()",speed);
}
window.onload=flash
<!-- 此特效使用《网络赚钱,大家一起发》编辑制作-->
<!-- 网络赚钱,大家一起发!代码地址:http://dajia178.uu1001.com-->
// -->
</script>
6、  打印效果方式
<SCRIPT LANGUAGE="JavaScript">
var msg = "网络赚钱,大家一起发-http://dajia178.uu1001.com";
var chars = msg.length + 1;
var updateStatus = "";
var i = 0;
function statusMessage() {
if (i < chars) setTimeout("nextLetter()", 300);
}
<!-- 此特效使用《网络赚钱,大家一起发》编辑制作-->
<!-- 网络赚钱,大家一起发!代码地址:http://dajia178.uu1001.com-->
function nextLetter() {
updateStatus = msg.substring(0,i) + '_';
window.status = updateStatus;
i++;
statusMessage();
}
</script>
<body onLoad="statusMessage()">

本帖最近评分记录:
  • 威望:+5(avml13) 优秀文章
  • 搜索更多相关文章:论坛 免费资源网 垮台 Home首页 网络
    顶端 Posted: 2007-11-22 15:15 | [楼 主]
    #zenmebuliwo
    我也可以签名了,呵呵
    级别: 精灵王

     

    有需要的,去我站查看详细目录,在我站或者在此跟贴留言,我会很快给你传去你所需要的代码
    顶端 Posted: 2007-11-22 15:23 | 1 楼
    光辉
    级别: 骑士

     

    先顶一下..辛苦了


    顶端 Posted: 2007-11-22 15:37 | 2 楼
    mnfac
    繁忙,请假状态
    十佳会员
    级别: 荣誉会员

     

    繁忙,请假状态
    友情广告位:
    1.免费500Mphp空间
    2.打工赚U豆,1天10U豆
    有兴趣者短消息我http://bbs.uu1001.com/message.php?action-write-touid-27810.html
    顶端 Posted: 2007-11-22 15:45 | 3 楼
    #zenmebuliwo
    我也可以签名了,呵呵
    级别: 精灵王

     

    详细目录在 这里http://dajia178.uu1001.com
    顶端 Posted: 2007-11-22 17:23 | 4 楼
    #zenmebuliwo
    我也可以签名了,呵呵
    级别: 精灵王

     

    谢谢加分
    顶端 Posted: 2007-11-22 17:39 | 5 楼
    #jsjb062
    级别: 注册会员

     

    支持
    顶端 Posted: 2007-11-22 17:41 | 6 楼
    #zenmebuliwo
    我也可以签名了,呵呵
    级别: 精灵王

     

    Quote:
    引用第6楼#jsjb062于2007-11-22 17:41发表的  :
    支持

    需要就留言,谢谢
    顶端 Posted: 2007-11-22 21:47 | 7 楼
    #shuishuowole
    级别: 骑士

     

    不错,顶起来
    顶端 Posted: 2007-11-23 12:57 | 8 楼
    #zenmebuliwo
    我也可以签名了,呵呵
    级别: 精灵王

     

    顶起来先!!!
    顶端 Posted: 2007-11-29 12:28 | 9 楼
    « 1 2» Pages: ( 1/2 total )
    帖子浏览记录 版块浏览记录
    Uu1001免费论坛官方站 » 站长交流


    Time now is:08-31 00:40, Gzip enabled 浙ICP备06052510号
    Powered by PHPWind & Uu1001 v2.0 Certificate Code © 2003-08 PHPWind.com Corporation