Current location - Loan Platform Complete Network - Foreign exchange account opening - Ask for a small code. Once the full screen is opened, the roses are fluttering. After a few seconds, it is now a happy Mid-Autumn Festival.
Ask for a small code. Once the full screen is opened, the roses are fluttering. After a few seconds, it is now a happy Mid-Autumn Festival.
Java jsp

First: Add the following code to the.

& ltstyle & gt

. Descending (location: absolute; Width: 3; filter: flipV(),flipH(); Font size: 40; Color: blue}

& lt/style & gt;

& lt scripting language = "javascript">

Snow = false; //false-rain; True snow

Snow sym = "* "// These are the symbols of each.

Rain sym = "* "// You can put pictures here.

How many = 15// how many drops/snowflake?

/* * * * * * * * * * * * There is no need to change anything below * * * * * * * * * *.

if(snow){ sym = snow sym; Speed =1; Angle =10; Drops = how much}

Else {sym = rainsym speed = 50; Didi = how much; Angle =6}

Movex =- speed/angle; Movey = speed; count = 0;

Function moverain(){

for(move = 0; Move < Didi; move++){

xx[move]+= movex; YY[move]+= mv[move];

hmm = math . round(math . random()* 1);

if(xx[move]& lt; 0){ xx[move]= maxx+ 10; }

if(YY[move]& gt; maxy){ YY[move]= 10; }

Drop [move]. Left = xx[ move]

Drop [move]. top = YY[move]+document . body . scroll top;

}setTimeout('moverain()',' 1')}

& lt/script & gt;

& lt scripting language = "javascript">

if (document.all){

drop = new Array(); xx = new Array(); YY = new Array(); Mv = new array ()

ly = " document . all[\ ' "; st = "\']。 Style "

for(make = 0; Make & lt Didi; make++){

document . write(' & lt;' div id = " drop '+make+' " class = drop & gt; '+sym+' & lt; /div & gt; ');

drop[make]= eval(ly+' drop '+make+ST);

maxx = document . body . client width-40

maxy = document . body . client height-40

xx[make]= math . random()* maxx;

YY[make]=- 100-math . random()* maxy;

Drop [build]. Left = xx[make]

Drop [build]. top = yy[make]

mv[make]=(math . random()* 5)+speed/ 16;

Drop [build]. font size =(math . random()* 10)+20;

if(snow){ col = ' white ' } else { col = ' blue ' }

Drop [build]. color = col

}

window.onload=moverain

}

& lt/script & gt;

Second: I suggest you use this. You can add some more pictures.

Script description:

Step 1: Add the following code to the

& lt scripting language = "JavaScript">

& lt! -

Pic = new array ('photo/0426 1.gif',' photo/04262.gif',' photo/04263.gif',' photo/04264.gif',' photo/04265.gif').

//The smoothness of animation depends on the number of images and their file sizes.

MaxSpeed = 5;

min speed = 2;

Load = new array ()

for(I = 0; I< picture length; i++)

{

load[I]= new Image();

Load [i]. src = Pic[I];

}

Amount = Pic.length

Ns= (document. layer)? 1:0;

if (ns){

for(I = 0; I< amount; i++){

document . write(" & lt; LAYER NAME = ' Netscape "+I+" ' LEFT = 0 TOP = 0 & gt; & ltimg name='netpics' src="+load[i]。 src+" & gt; & lt/LAYER >)}

}

Otherwise {

document . write(" & lt; div style = ' position:absolute; top:0px; left:0px ' & gt; & ltdiv style='position:relative ' >);

for(I = 0; I< amount; i++){

document . write(" & lt; img id='explorer' src='"+load[i]。 src+" ' style = ' position:absolute; top:0px; left:0px ' >;" )}

document . write(" & lt; /div & gt; & lt/div >;" )

}

VB = 0;

HB = 0;

r = new Array();

PB = new Array();

RD = new Array();

y = new Array();

x = new Array();

D = new array ();

SP = new Array();

BY = new Array();

BX = new array ();

for(I = 0; I< amount; i++){

y[I]= 10;

x[I]= 10;

d[I]= math . floor(math . random()* 70+ 10);

SP[I]= math . floor(math . random()* MaxSpeed+min speed);

}

Function curve () {

PlusMinus = new array (1,-1, 2, -2, 3, -3, 0, 1, 0, 5, -5).

for(I = 0; I< amount; i++){

r[I]= math . floor(math . random()* plus MINUS . length);

RD[I]= plus MINUS[R[I]];

}

setTimeout('Curve()', 1500);

}

Function MoveRandom(){

Var H= (document. layer)? window . inner height:document . body . client height;

var W =(doc . layers)? window . inner width:document . body . client width;

Var YS= (document. layer)? window . page yoffset:document . body . scroll top;

Var XS= (document. layer)? window . pagexoffset:document . body . scroll left;

for(I = 0; I< amount; i++){

BY[i]=-load[i]。 Height;

BX[i]=-load[i]。 Width;

PB[I]= D[I]+= RD[I];

y = SP[i]*Math.sin(PB[i]*Math。 PI/ 180);

x = SP[i]*Math.cos(PB[i]*Math。 PI/ 180);

if(D[I]& lt; 0)D[I]+= 360;

y[I]+= y;

x[I]+= x;

VB = 180-D[I];

HB = 0-D[I];

//Corner rebound! No need, but it looks good.

if((Y[I]& lt; 1); & amp(X[I]& lt; 1)){ Y[I]= 1; x[I]= 1; d[I]= 45; }

if((Y[I]& lt; 1); & amp(X[I]& gt; w+BX[I]){ Y[I]= 1; x[I]= W+BX[I]; d[I]= 135; }

if((Y[I]& gt; h+BY[I])& amp; & amp(X[I]& lt; 1)){ Y[I]= H+BY[I]; x[I]= 1; d[I]= 3 15; }

if((Y[I]& gt; h+BY[I])& amp; & amp(X[I]& gt; w+BX[I]){ Y[I]= H+BY[I]; x[I]= W+BX[I]; d[I]= 225; }

//Edge rebounds!

if(Y[I]& lt; 1){ Y[I]= 1; d[I]= HB; }

if(Y[I]& gt; H+BY[I]){ Y[I]= H+BY[I]; d[I]= HB; }

if(X[I]& lt; 1){ X[I]= 1; d[I]= VB; }

if(X[I]& gt; W+BX[I]){ X[I]= W+BX[I]; d[I]= VB; }

var layer=(document.layers)? document . layers[' Netscape '+I]:explorer[I]。 Style;

layer . top = Y[I]+YS;

layer . left = X[I]+XS;

}

setTimeout('MoveRandom()', 10);

}

Function sTaRt(){ Curve(); (); MoveRandom()}

//-& gt;

& lt/script & gt;

Step two:

Add the following code to the

Third: this is the display of words. You decided to use the one above and add it.

Script description:

Step 1: Add the following code to the

& lt scripting language = "JavaScript">

Function init() {

SetTimeout ("Shake (3)",1000);

// setTimeout("this.focus()",4000);

setTimeout("shake(3)",4 100);

}

Function shake (n) (

if (self.moveBy) {

for(I = 10; I>0; I-) {

for(j = n; j & gt0; j - ) {

self.moveBy(0,I);

self.moveBy(i,0);

self.moveBy(0,-I);

self.moveBy(-i,0);

}

}

}

setTimeout("shake(5)",5000);

}

& lt/script & gt;

& lt scripting language = "JavaScript">

& lt! -Go.

var max = 0;

Function Text List ()

{

max = text list . arguments . length;

for(I = 0; I & ltmaxi++)

this[I]= textlist . arguments[I];

}

Tl = new text list

(

"Li Peng meets with Chief Minister Naidu of Andhra Pradesh",

Review: developing good-neighborly and friendly relations of cooperation in the new century,

"China's foreign exchange reserves have reached165.6 billion US dollars",

Editorial of People's Daily on June 5438+08: Promoting the New Agricultural Science and Technology Revolution,

"The orbital module of Shenzhou-2 spacecraft remains in orbit to continue the space science exploration test",

"The United Nations has confirmed that depleted uranium bombs contain uranium -236",

Robertson said that NATO will continue to expand eastward,

Pakistan accuses Israel of assassinating its senior officials,

"The 9th Annual Meeting of the Asia-Pacific Parliamentary Forum opens in Chile",

"Special Report: Bush's swearing-in ceremony is ready",

"Special Report: Bush's swearing-in ceremony is ready"

);

var x = 0; pos = 0;

var l=tl[0]。 Length;

Function textticker ()

{

document . tick form . tick field . value = TL[x]。 Substring (0, pos)+"_";

if(pos++==l)

{

pos = 0;

setTimeout("textticker()", 1000);

x++;

if(x = = max)x = 0; l=tl[x]。 Length;

}

other

setTimeout("textticker()",50);

}

//end-& gt;

& lt/script & gt;

& ltform name="tickform " >& ltinput type = text name = " tick field " size = 33 & gt。 & lt/form & gt;

Step 2: Add the following code to the

That's all you can do. It's up to you.