上一主题下一主题
«1234»Pages: 1/4     Go
主题 : 网页中象鬼影一样飞舞的图片,有阴影效果,用在特殊的网站 代码
盗墓者〓伯爵
级别: 初三
0  发表于: 2006-02-06 14:35

网页中象鬼影一样飞舞的图片,有阴影效果,用在特殊的网站 代码

<SCRIPT LANGUAGE="JavaScript">
if(!window.JSFX)
JSFX=new Object();
JSFX.layerNo=0;
/**********************************************************************************/
JSFX.createElem = function(htmlStr)
{
var elem = null;


if(document.layers)
{
elem=new Layer(2000);
elem.document.open();
elem.document.write(htmlStr);
elem.document.close();
elem.innerHTML = htmlStr;
}
else
if(document.all)
{
var xName = "xLayer" + JSFX.layerNo++;
var txt = "<DIV ID='" + xName
+ "' STYLE=\"position:absolute;"
+ "visibility:hidden\">"
+ htmlStr
+ "</DIV>";


document.body.insertAdjacentHTML("BeforeEnd",txt);


elem = document.all[xName];
}
else
if (document.getElementById)
{
var xName="xLayer" + JSFX.layerNo++;
var txt = ""
+ "position:absolute;"
+ "visibility:hidden";


var newRange = document.createRange();


elem = document.createElement("DIV");
elem.setAttribute("style",txt);
elem.setAttribute("id", xName);


document.body.appendChild(elem);


newRange.setStartBefore(elem);
strFrag = newRange.createContextualFragment(htmlStr);
elem.appendChild(strFrag);
}


return elem;
}
/**********************************************************************************/
JSFX.Layer = function(newLayer)
{
if(!newLayer)
return;


if(typeof newLayer == "string")
this.elem = JSFX.createElem(newLayer);
else
this.elem=newLayer;


if(document.layers)
{
this.images=this.elem.document.images;
this.style = this.elem;
}
else
{
this.images = document.images;
this.style = this.elem.style;
}
}
/**********************************************************************************/
var ns4 = (navigator.appName.indexOf("Netscape") != -1 && !document.getElementById);


/**********************************************************************************/
/*** moveTo (x,y) ***/
JSFX.Layer.prototype.moveTo = function(x,y)
{
this.style.left = x+"px";
this.style.top = y+"px";
}
if(ns4)
JSFX.Layer.prototype.moveTo = function(x,y) { this.elem.moveTo(x,y); }
/**********************************************************************************/
/*** show()/hide() Visibility ***/
JSFX.Layer.prototype.show = function() { this.style.visibility = "visible"; }
JSFX.Layer.prototype.hide = function() { this.style.visibility = "hidden"; }
if(ns4)
{
JSFX.Layer.prototype.show = function() { this.style.visibility = "show"; }
JSFX.Layer.prototype.hide = function() { this.style.visibility = "hide"; }
}
/**********************************************************************************/
/*** Opacity ***/
if(document.all)
{
JSFX.Layer.prototype.setOpacity = function(pc)
{
if(this.style.filter=="")
this.style.filter="alpha(opacity=100);";
this.elem.filters.alpha.opacity=pc;
}
}
else
JSFX.Layer.prototype.setOpacity = function(pc) {return 0;}
/******* END OF CODE FROM JSFX.Layer.js ***/
/*** START OF CODE FROM JSFX.Browser.js ***/
JSFX.Browser = new Object();


if(navigator.appName.indexOf("Netscape") != -1)
{
JSFX.Browser.getCanvasWidth = function() {return innerWidth;}
JSFX.Browser.getCanvasHeight = function() {return innerHeight;}
JSFX.Browser.getMinX = function() {return(pageXOffset);}
JSFX.Browser.getMinY = function() {return(pageYOffset);}
JSFX.Browser.getMaxX = function() {return(pageXOffset+innerWidth);}
JSFX.Browser.getMaxY = function() {return(pageYOffset+innerHeight);}
}
else if(document.all)
{
JSFX.Browser.getCanvasWidth = function() {return document.body.clientWidth;}
JSFX.Browser.getCanvasHeight = function() {return document.body.clientHeight;}
JSFX.Browser.getMinX = function() {return(document.body.scrollLeft);}
JSFX.Browser.getMinY = function() {return(document.body.scrollTop);}
JSFX.Browser.getMaxX = function() {
return(document.body.scrollLeft
+document.body.clientWidth);
}
JSFX.Browser.getMaxY = function() {
return(document.body.scrollTop
+document.body.clientHeight);
}
}
/*** END OF CODE FROM JSFX.Browser.js ***/
/*** START OF CODE FROM JSFX.Ghosts.js ***/


JSFX.Halloween = new Object();
JSFX.Halloween.Ghosts = new Array();
JSFX.Halloween.start = function()
{
if(JSFX.Halloween.theTimer == null)
{
JSFX.Halloween.theTimer = setTimeout("JSFX.Halloween.animateAll()", 40);
}
}
JSFX.Halloween.animateAll = function()
{
JSFX.Halloween.theTimer = setTimeout("JSFX.Halloween.animateAll()", 40);
var sp = JSFX.Halloween.Ghosts;
var i;
for(i=0 ; i<sp.length ; i++)
{
sp.animate();
}


}
JSFX.AddGhost = function(img)
{
var myGhost = null;
var htmlStr = "<IMG SRC='"+img+"'>";


myGhost = new JSFX.Layer(htmlStr);
myGhost.op = 0;
myGhost.x = Math.random()*JSFX.Browser.getMaxX();
myGhost.y = Math.random()*JSFX.Browser.getMaxY();
myGhost.dx = 0;
myGhost.dy = 0;
myGhost.w = 30;
myGhost.h = 30;
myGhost.targetX = Math.random()*JSFX.Browser.getMaxX();
myGhost.targetY = Math.random()*JSFX.Browser.getMaxY();
myGhost.state = "off"
myGhost.animate = JSFX.animateGhosts;
myGhost.hide();
myGhost.setOpacity(this.op);
myGhost.moveTo(myGhost.x,myGhost.y);
JSFX.Halloween.Ghosts[JSFX.Halloween.Ghosts.length] = myGhost;
JSFX.Halloween.start();
}
JSFX.animateGhosts = function()
{
if(this.state == "off")
{
if(Math.random() > .99)
{
this.state="up";
this.show();
}
}
else if(this.state == "on")
{
if(Math.random() > .98)
this.state="down";
}
else if(this.state == "up")
{
this.op += 2;
this.setOpacity(this.op);
if(this.op==100)
this.state = "on";
}
else if(this.state == "down")
{
this.op -= 2;
if(this.op==0)
{
this.hide();
this.state = "off";
}
else
this.setOpacity(this.op);
}


m = this;
var X = (this.targetX - m.x);
var Y = (this.targetY - m.y);
var len = Math.sqrt(X*X+Y*Y);
if(len < 1) len = 1;
var dx = 20 * (X/len);
var dy = 20 * (Y/len);
var ddx = (dx - this.dx)/10;
var ddy = (dy - this.dy)/10;
this.dx += ddx;
this.dy += ddy;
m.x += this.dx;
m.y += this.dy;
m.moveTo(m.x, m.y);
if(Math.random() >.95 )
{
this.targetX = Math.random()*(JSFX.Browser.getCanvasWidth()-150);
this.targetY = Math.random()*(JSFX.Browser.getCanvasHeight()+JSFX.Browser.getMinY()-150);
}
}


</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
function JSFX_StartEffects()
{
if (!document.all&&!document.layers)
return
JSFX.AddGhost("photo/ghost0.gif");
JSFX.AddGhost("photo/ghost1.gif");
JSFX.AddGhost("photo/ghost2.gif");


JSFX.AddGhost("photo/ghost0.gif");
JSFX.AddGhost("photo/ghost1.gif");
JSFX.AddGhost("photo/ghost2.gif");
}
</SCRIPT>


盗墓者〓伯爵
级别: 初三
1  发表于: 2006-02-06 14:37

<body>你好,大家好....</body>
盗墓者〓伯爵
级别: 初三
2  发表于: 2006-02-06 14:39

<body>hhhhhhhhh</body>
盗墓者〓伯爵
级别: 初三
3  发表于: 2006-02-06 14:41

<SCRIPT LANGUAGE="JavaScript">
<!--
var a = 21
function create() {


this.line = ''
}


function skrivut(formet) {
bild1 = formet.bilden.value;
bild2 = formet.bildtva.value;
kall1 = formet.srcen.value;
kall2 = formet.srctva.value;
bildnamn = formet.bildnmn.value;
widd = formet.widden.value;
hojd = formet.hojden.value;


line = new Array()
for(var i=1; i<=a; i++) { line = new create() }
line[1] = '<html><head><title>Code Window</title></head><body bgcolor="#FFFFFF">'
line[2] = '<HTML><HEAD><br><TITLE>Title of your page</title><P>'
line[3] = '<SCRIPT LANGUAGE=&quot;JavaScript&quot;><BR><!--<BR>/**luxiaoqing Browser">http://www.mysucai.com/javascript/dai1.htm**/<BR>Browser = false ;<BR>if(navigator.appName.indexOf("Netscape") != -1)<BR>'
line[5] = '{ if( (navigator.appVersion.indexOf("3.") != -1) || (navigator.appVersion.indexOf("4.") != -1) )<BR>'
line[6] = ' Browser = true}<BR>'
line[7]='if(navigator.appVersion.indexOf("MSIE") != -1) { if( navigator.appVersion.indexOf("4.") != -1)<BR>'
line[8]='Browser=true}<BR>'
line[9]='if ( Browser == true) {<BR>'
line[10] = bild1+'= new Image();<BR>'
line[11] = bild1+'.src = "'+kall1+'";<BR>'
line[12] = bild2+' = new Image();<BR>'
line[13] = bild2+'.src = "'+kall2+'";<BR>}<P>'
line[14] = 'function byt(place, imgName) {<BR>'
line[15] = 'if (Browser == true) {<BR>'
line[16] = 'document[place].src =eval(imgName + ".src");<BR>'
line[17] = '} }<BR>'
line[18] = '//--><BR>'
line[19] = '</SCRIPT><P></HEAD><br><BODY><P>Here comes the link:<BR>'
line[20] = '<A HREF=".html" onMouseOver="byt(&#039;'+bildnamn+'&#039;,&#039;'+bild2+'&#039;)" onMouseOut="byt(&#039;'+bildnamn+'&#039;,&#039;'+bild1+'&#039;)">'
line[21] = '<IMG SRC="'+kall1+'" NAME="'+bildnamn+'" HEIGHT="'+hojd+'" WIDTH="'+widd+'" BORDER="0"></A>'
line[22] = '<P></BODY></HTML><P><FORM><INPUT TYPE="button" VALUE="关闭" OnClick="self.close()"></FORM></BODY></HTML>'
nyaWin = window.open('','utskrift','toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=0,copyhistory=0,width=600,height=400')
nytt ()
}
g = 0
function nytt() {
g++
nyaWin.document.writeln(line[g]);
if (g < (a+1)) nytt()
nyaWin.document.close()
g = 0
}


Browser = false ;
if(navigator.appName.indexOf("Netscape") != -1)
{ if( (navigator.appVersion.indexOf("3.") != -1) ||
(navigator.appVersion.indexOf("4.") != -1) )
{ Browser = true;
fredrik= new Image();
fredrik.src = "knapp1.gif";
sover = new Image();
sover.src = "knapp2.gif";
} }


function byt(place, imgName) {
if (Browser == true) {
document[place].src =eval(imgName + ".src");
} }
//-->
</SCRIPT>
buzhidao怎么玩  直接复制

盗墓者〓伯爵
级别: 初三
4  发表于: 2006-02-06 14:41

<SCRIPT LANGUAGE="JavaScript">
<!--
var a = 21
function create() {


this.line = ''
}


function skrivut(formet) {
bild1 = formet.bilden.value;
bild2 = formet.bildtva.value;
kall1 = formet.srcen.value;
kall2 = formet.srctva.value;
bildnamn = formet.bildnmn.value;
widd = formet.widden.value;
hojd = formet.hojden.value;


line = new Array()
for(var i=1; i<=a; i++) { line = new create() }
line[1] = '<html><head><title>Code Window</title></head><body bgcolor="#FFFFFF">'
line[2] = '<HTML><HEAD><br><TITLE>Title of your page</title><P>'
line[3] = '<SCRIPT LANGUAGE=&quot;JavaScript&quot;><BR><!--<BR>/**luxiaoqing Browser">http://www.mysucai.com/javascript/dai1.htm**/<BR>Browser = false ;<BR>if(navigator.appName.indexOf("Netscape") != -1)<BR>'
line[5] = '{ if( (navigator.appVersion.indexOf("3.") != -1) || (navigator.appVersion.indexOf("4.") != -1) )<BR>'
line[6] = ' Browser = true}<BR>'
line[7]='if(navigator.appVersion.indexOf("MSIE") != -1) { if( navigator.appVersion.indexOf("4.") != -1)<BR>'
line[8]='Browser=true}<BR>'
line[9]='if ( Browser == true) {<BR>'
line[10] = bild1+'= new Image();<BR>'
line[11] = bild1+'.src = "'+kall1+'";<BR>'
line[12] = bild2+' = new Image();<BR>'
line[13] = bild2+'.src = "'+kall2+'";<BR>}<P>'
line[14] = 'function byt(place, imgName) {<BR>'
line[15] = 'if (Browser == true) {<BR>'
line[16] = 'document[place].src =eval(imgName + ".src");<BR>'
line[17] = '} }<BR>'
line[18] = '//--><BR>'
line[19] = '</SCRIPT><P></HEAD><br><BODY><P>Here comes the link:<BR>'
line[20] = '<A HREF=".html" onMouseOver="byt(&#039;'+bildnamn+'&#039;,&#039;'+bild2+'&#039;)" onMouseOut="byt(&#039;'+bildnamn+'&#039;,&#039;'+bild1+'&#039;)">'
line[21] = '<IMG SRC="'+kall1+'" NAME="'+bildnamn+'" HEIGHT="'+hojd+'" WIDTH="'+widd+'" BORDER="0"></A>'
line[22] = '<P></BODY></HTML><P><FORM><INPUT TYPE="button" VALUE="关闭" OnClick="self.close()"></FORM></BODY></HTML>'
nyaWin = window.open('','utskrift','toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=0,copyhistory=0,width=600,height=400')
nytt ()
}
g = 0
function nytt() {
g++
nyaWin.document.writeln(line[g]);
if (g < (a+1)) nytt()
nyaWin.document.close()
g = 0
}


Browser = false ;
if(navigator.appName.indexOf("Netscape") != -1)
{ if( (navigator.appVersion.indexOf("3.") != -1) ||
(navigator.appVersion.indexOf("4.") != -1) )
{ Browser = true;
fredrik= new Image();
fredrik.src = "knapp1.gif";
sover = new Image();
sover.src = "knapp2.gif";
} }


function byt(place, imgName) {
if (Browser == true) {
document[place].src =eval(imgName + ".src");
} }
//-->
</SCRIPT>
buzhidao怎么玩  直接复制

盗墓者〓伯爵
级别: 初三
5  发表于: 2006-02-06 14:42

<SCRIPT>


// scroller message
var message="欢迎光临javascript2000 请多提意见 记得经常来看看呀 你一定会有收获的 "


// fonts. Add as many fonts as you like.
var messagefont=new Array("Arial Black","Verdana","Impact","Comic Sans MS")


// fontcolors. Add as many fontcolors as you like.
var messagecolor=new Array("red","olive","888888","purple")


// horizontal and vertical position of scroller (pixels)
var positionleft=100
var positiontop=10
</SCRIPT>


<SCRIPT>
var timer
var marginright=0
var i_fadestrength=5
var i_message=0
var i_messagecolor=0
var i_messagefont=0
var step=1
var maxfontsize=220
var fontsizefactor=maxfontsize/100
var content
var textboxwidth=0
var bodywidth=0
message=message.split(" ")



function setmessage() {
if (i_message>=message.length) {i_message=0}
if (i_messagecolor>=messagecolor.length) {i_messagecolor=0}
if (i_messagefont>=messagefont.length) {i_messagefont=0}
content="<nobr><font color="+messagecolor[i_messagecolor]+" face="+messagefont[i_messagefont]+">"+message[i_message]+"</font><nobr>"
textbox.innerHTML=content
i_message++
i_messagecolor++
i_messagefont++
timer=setTimeout("resizemessage()",500)
}


function resizemessage() {
if (i_fadestrength<120) {
textbox.filters.alpha.opacity=Math.floor(100-i_fadestrength)
document.all.textbox.style.fontSize=i_fadestrength*fontsizefactor
document.all.textbox.style.posLeft=positionleft-(Math.floor(i_fadestrength/1.1*fontsizefactor))
document.all.textbox.style.posTop=positiontop
document.all.textbox.style.width=bodywidth-document.all.textbox.style.posLeft-5
document.all.textbox.style.overflowX="hidden"
document.all.textbox.style.visibility="visible"
step+=1.5
i_fadestrength+=step
timer=setTimeout("resizemessage()",50)
}
else {
clearTimeout(timer)
i_fadestrength=0;
step=1;
setmessage()
}
}
if (document.all) {
document.write("<DIV id='textbox' style='position:absolute;font-family:Verdana;filter:alpha(opacity=0);'></DIV>")
document.write("<DIV style='position:relative;'>")
}


if (document.all) {
bodywidth=document.body.clientWidth-5
setmessage()
}


</SCRIPT>

级别: 四年级
6  发表于: 2006-02-06 16:16

好吓人的 分量啊

♂哆啦啦,哆啦啦,哆啦哆啦啦♀
灌水实习生
级别: 初二
7  发表于: 2006-02-06 18:52

好无聊的灌水啊~~~~~~~~~~~~~~~~~~~

级别: 初三
8  发表于: 2006-02-07 08:42

吓人啊,这么多

级别: 初一
9  发表于: 2006-02-07 12:31

好下人啊
上一主题下一主题
«1234»Pages: 1/4     Go