Форум поддержки «ЖивыеФорумы.ру»

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Форум поддержки «ЖивыеФорумы.ру» » Новые возможности форумов » Скрипты для украшения форума


Скрипты для украшения форума

Сообщений 1 страница 30 из 30

1

В той теме выложены скрипты, с помощью которых можно украсить свой форум.




Прикольный дождь для форума, работает только в IE

Код:
<SCRIPT LANGUAGE="JavaScript"> 

<!-- Begin 
var no = 50; 
var speed = 1; 
var ns4up = (document.layers) ? 1 : 0; 
var ie4up = (document.all) ? 1 : 0; 
var s, x, y, sn, cs; 
var a, r, cx, cy; 
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; 
} 
x = new Array(); 
y = new Array(); 
r = new Array(); 
cx = new Array(); 
cy = new Array(); 
s = 8; 
for (i = 0; i < no; ++ i) { 
initRain(); 
if (ns4up) { 
if (i == 0) { 
document.write("<layer name=\"dot"+ i +"\" left=\"1\" "); 
document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">"); 
document.write(",</font></layer>"); 
} 
else { 
document.write("<layer name=\"dot"+ i +"\" left=\"1\" "); 
document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">"); 
document.write(",</font></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;\"><font color=\"blue\">"); 
document.write(",</font></div>"); 
} 
else { 
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); 
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); 
document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">"); 
document.write(",</font></div>"); 
} 
} 
} 
function initRain() { 
a = 6; 
r[i] = 1; 
sn = Math.sin(a); 
cs = Math.cos(a); 
cx[i] = Math.random() * doc_width + 1; 
cy[i] = Math.random() * doc_height + 1; 
x[i] = r[i] * sn + cx[i]; 
y[i] = cy[i]; 
} 
function makeRain() { 
r[i] = 1; 
cx[i] = Math.random() * doc_width + 1; 
cy[i] = 1; 
x[i] = r[i] * sn + cx[i]; 
y[i] = r[i] * cs + cy[i]; 
} 
function updateRain() { 
r[i] += s; 
x[i] = r[i] * sn + cx[i]; 
y[i] = r[i] * cs + cy[i]; 
} 
function raindropNS() { 
for (i = 0; i < no; ++ i) { 
updateRain(); 
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) { 
makeRain(); 
doc_width = self.innerWidth; 
doc_height = self.innerHeight; 
} 
document.layers["dot"+i].top = y[i]; 
document.layers["dot"+i].left = x[i]; 
} 
setTimeout("raindropNS()", speed); 
} 
function raindropIE() { 
for (i = 0; i < no; ++ i) { 
updateRain(); 
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) { 
makeRain(); 
doc_width = document.body.clientWidth; 
doc_height = document.body.clientHeight; 
} 
document.all["dot"+i].style.pixelTop = y[i]; 
document.all["dot"+i].style.pixelLeft = x[i]; 
} 
setTimeout("raindropIE()", speed); 
} 
if (ns4up) { 
raindropNS(); 
} 
else 
if (ie4up) { 
raindropIE(); 
} 
// End --> 
</script>

Отредактировано Босс ЖивыеФорумы.ру (2011-07-13 15:10:52)

0

2

Снежинки, рабочий.

Код:
<script language="JavaScript" type="text/javascript"> 
if (top.location != location) { 
top.location.href = document.location.href ; 
} 
</script> 


<link rel="stylesheet" href="templates/snowSilver/snowSilver.css" type="text/css"> 
<script> 
// Set the number of snowflakes (more than 30 - 40 not recommended) 
var snowmax=35 

// Set the colors for the snow. Add as many colors as you like 
var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD") 

// Set the fonts, that create the snowflakes. Add as many fonts as you like 
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS") 

// Set the letter that creates your snowflake (recommended:*) 
var snowletter="*" 

// Set the speed of sinking (recommended values range from 0.3 to 2) 
var sinkspeed=2 

// Set the maximal-size of your snowflaxes 
var snowmaxsize=30 

// Set the minimal-size of your snowflaxes 
var snowminsize=10 

// Set the snowing-zone 
// Set 1 for all-over-snowing, set 2 for left-side-snowing 
// Set 3 for center-snowing, set 4 for right-side-snowing 
var snowingzone=1 

/////////////////////////////////////////////////////////////////////////// 
// CONFIGURATION ENDS HERE 
/////////////////////////////////////////////////////////////////////////// 


// Do not edit below this line 
var snow=new Array() 
var marginbottom 
var marginright 
var timer 
var i_snow=0 
var x_mv=new Array(); 
var crds=new Array(); 
var lftrght=new Array(); 
var browserinfos=navigator.userAgent 
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) 
var ns6=document.getElementById&&!document.all 
var opera=browserinfos.match(/Opera/) 
var browserok=ie5||ns6||opera 

function randommaker(range) { 
rand=Math.floor(range*Math.random()) 
return rand 
} 

function initsnow() { 
if (ie5 || opera) { 
marginbottom = document.body.clientHeight 
marginright = document.body.clientWidth 
} 
else if (ns6) { 
marginbottom = window.innerHeight 
marginright = window.innerWidth 
} 
var snowsizerange=snowmaxsize-snowminsize 
for (i=0;i<=snowmax;i++) { 
crds[i] = 0; 
lftrght[i] = Math.random()*15; 
x_mv[i] = 0.03 + Math.random()/10; 
snow[i]=document.getElementById("s"+i) 
snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)] 
snow[i].size=randommaker(snowsizerange)+snowminsize 
snow[i].style.fontSize=snow[i].size 
snow[i].style.color=snowcolor[randommaker(snowcolor.length)] 
snow[i].sink=sinkspeed*snow[i].size/5 
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} 
if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} 
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} 
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} 
snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size) 
snow[i].style.left=snow[i].posx 
snow[i].style.top=snow[i].posy 
} 
movesnow() 
} 

function movesnow() { 
for (i=0;i<=snowmax;i++) { 
crds[i] += x_mv[i]; 
snow[i].posy+=snow[i].sink 
snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]); 
snow[i].style.top=snow[i].posy 

if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){ 
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} 
if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} 
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} 
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} 
snow[i].posy=0 
} 
} 
var timer=setTimeout("movesnow()",50) 
} 

for (i=0;i<=snowmax;i++) { 
document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>") 
} 
if (browserok) { 
window.onload=initsnow 
} 
</script> 
<script language="Javascript" type="text/javascript"> 
<!-- 
if ( 0 ) 
{ 
window.open('privmsg.php?mode=newpm&amp;mforum=amazonka', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; 
} 
//--> 
</script>

0

3

Сияющая надпись (видно только в IE) Цитата:

Код:
<span id="theText" style="width:100%; color: #006600"> 
<h1><strong> Сияние надписи</strong></h1> 
</span> 
<script> 
<!-- 
//величина сияния от и до 
var from = 1; 
var to = 7; 
//скорсть сияния 
var delay = 60; 
//цвет сияния, имя в rgb (пример:'#ffff33') или именованный 
var glowColor = "#ffff00'"; 
//не менять!!! 
var i = to; 
var j = 0; 
textPulseDown(); 
function textPulseUp() 
{ 
if (!document.all) 
return 
if (i < to) 
{ 
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")"; 
i++; 
theTimeout = setTimeout('textPulseUp()',delay); 
return 0; 
} 
if (i = to) 
{ 
theTimeout = setTimeout('textPulseDown()',delay); 
return 0; 
} 
} 
function textPulseDown() 
{ 
if (!document.all) 
return 
if (i > from) 
{ 
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")"; 
i--; 
theTimeout = setTimeout('textPulseDown()',delay); 
return 0; 
} 
if (i = from) 
{ 
theTimeout = setTimeout('textPulseUp()',delay); 
return 0; 
} 
} 
//--> 
</script>

0

4

Квадратики летающие за курсором (работает в IE).

Код:
<div id="dot0" style="HEIGHT: 15px; POSITION: absolute; VISIBILITY: hidden; WIDTH: 15px"><dd><img border="0" height="15" src="../gif/snegok.gif" width="15"></dd></div> 
<div id="dot1" style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><dd><img border="0" height="15" src="snegok.gif" width="15"></dd></div> 
<div id="dot2" style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><dd><img border="0" height="15" src="snegok.gif" width="15"></dd></div> 
<div id="dot3" style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><dd><img border="0" height="15" src="snegok.gif" width="15"></dd></div> 
<div id="dot4" style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><dd><img border="0" height="15" src="snegok.gif" width="15"></dd></div> 
<div id="dot5" style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><dd><img border="0" height="15" src="snegok.gif" width="15"></dd></div> 
<div id="dot6" style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><dd><img border="0" height="15" src="snegok.gif" width="15"></dd></div> 
<script language=JavaScript> 
<!-- hide code 
var nDots = 7; 
var Xpos = 0; 
var Ypos = 0; 
var DELTAT = .01; 
var SEGLEN = 10; 
var SPRINGK = 10; 
var MASS = 1; 
var GRAVITY = 50; 
var RESISTANCE = 10; 
var STOPVEL = 0.1; 
var STOPACC = 0.1; 
var DOTSIZE = 10; 
var BOUNCE = 0.75; 
var isNetscape = navigator.appName=="Netscape"; 
var followmouse = true; 
init(); 
function init() 
{ 
var i = 0; 
dots = new Array(); 
for (i = 0; i < nDots; i++) { 
dots[i] = new dot(i); 
} 
if (!isNetscape) { 
setInitPositions() 
} 
for (i = 0; i < nDots; i++) { 
dots[i].obj.left = dots[i].X; 
dots[i].obj.top = dots[i].Y; 
} 
if (isNetscape) { 
startanimate(); 
} else { 
setTimeout("startanimate()", 3000); 
} 
} 
function dot(i) 
{ 
this.X = Xpos; 
this.Y = Ypos; 
this.dx = 0; 
this.dy = 0; 
if (isNetscape) { 
this.obj = eval("document.dot" + i); 
} else { 
this.obj = eval("dot" + i + ".style"); 
} 
} 
function startanimate() { 
setInterval("animate()", 20); 
} 
function setInitPositions() 
{ 
var startloc = document.all.tags("LI"); 
var i = 0; 
for (i = 0; i < startloc.length; i++) { 
dots[i+1].X = startloc[i].offsetLeft + 
startloc[i].offsetParent.offsetLeft; 
dots[i+1].Y = startloc[i].offsetTop + 
startloc[i].offsetParent.offsetTop + 
DOTSIZE/2; 
} 
dots[0].X = dots[1].X; 
dots[0].Y = dots[1].Y - SEGLEN; 
} 
function MoveHandler(e) 
{ 
Xpos = e.pageX; 
Ypos = e.pageY; 
return true; 
} 
function MoveHandlerIE() { 
Xpos = window.event.x; 
Ypos = window.event.y; 
} 
if (isNetscape) { 
document.captureEvents(Event.MOUSEMOVE); 
document.onMouseMove = MoveHandler; 
} else { 
document.onmousemove = MoveHandlerIE; 
} 
function vec(X, Y) 
{ 
this.X = X; 
this.Y = Y; 
} 
function springForce(i, j, spring) 
{ 
var dx = (dots[i].X - dots[j].X); 
var dy = (dots[i].Y - dots[j].Y); 
var len = Math.sqrt(dx*dx + dy*dy); 
if (len > SEGLEN) { 
var springF = SPRINGK * (len - SEGLEN); 
spring.X += (dx / len) * springF; 
spring.Y += (dy / len) * springF; 
} 
} 
function animate() { 
var start = 0; 
if (followmouse) { 
dots[0].X = Xpos; 
dots[0].Y = Ypos; 
start = 1; 
} 
for (i = start ; i < nDots; i++ ) { 
var spring = new vec(0, 0); 
if (i > 0) { 
springForce(i-1, i, spring); 
} 
if (i < (nDots - 1)) { 
springForce(i+1, i, spring); 
} 
var resist = new vec(-dots[i].dx * RESISTANCE, 
-dots[i].dy * RESISTANCE); 
var accel = new vec((spring.X + resist.X)/ MASS, 
(spring.Y + resist.Y)/ MASS + GRAVITY); 
dots[i].dx += (DELTAT * accel.X); 
dots[i].dy += (DELTAT * accel.Y); 
if (Math.abs(dots[i].dx) < STOPVEL && 
Math.abs(dots[i].dy) < STOPVEL && 
Math.abs(accel.X) < STOPACC && 
Math.abs(accel.Y) < STOPACC) { 
dots[i].dx = 0; 
dots[i].dy = 0; 
} 
dots[i].X += dots[i].dx; 
dots[i].Y += dots[i].dy; 
var height, width; 
if (isNetscape) { 
height = window.innerHeight; 
width = window.innerWidth; 
} else { 
height = document.body.clientHeight; 
width = document.body.clientWidth; 
} 
if (dots[i].X < 0) { 
if (dots[i].dx < 0) { 
dots[i].dx = BOUNCE * -dots[i].dx; 
} 
dots[i].X = 0; 
} 
dots[i].obj.left = dots[i].X; 
dots[i].obj.top = dots[i].Y; 
} 
} 
// --> 
</SCRIPT>

0

5

Мерцающие точки около курсора

Код:
<script language="JavaScript"> 
function YY_Layerfx(yyleft,yytop,yyfnx,yyfny,yydiv,yybilder,yyloop,yyto,yycnt,yystep) { //v1.2 
if ((document.layers)||(document.all)){ 
with (Math) {yynextx= eval(yyfnx)} 
with (Math) {yynexty= eval(yyfny)} 
yycnt=(yyloop && yycnt>=yystep*yybilder)?0:yycnt+yystep; 
if (document.layers){ 
eval(yydiv+".top="+(yynexty+yytop)) 
eval(yydiv+".left="+(yynextx+yyleft)) } 
if (document.all){ 
eval("yydiv=yydiv.replace(/.layers/gi, '.all')"); 
eval(yydiv+".style.pixelTop="+(yynexty+yytop)); 
eval(yydiv+".style.pixelLeft="+(yynextx+yyleft)); } 
argStr='YY_Layerfx('+yyleft+','+yytop+',"'+yyfnx+'","'+yyfny+'","'+yydiv+'",'+yybilder+','+yyloop+','+yyto+','+yycnt+','+yystep+')'; 
if (yycnt<=yystep*yybilder){eval(yydiv+".yyto=setTimeout(argStr,yyto)");} }} 
function YY_Mousetrace(evnt) { 
if (yyns4) 
{if (evnt.pageX) {yy_ml=evnt.pageX; yy_mt=evnt.pageY;} } 
else{ 
yy_ml=(event.clientX + document.body.scrollLeft); 
yy_mt=(event.clientY + document.body.scrollTop);} 
if (yy_tracescript)eval(yy_tracescript)} 
</script> 
<div id="yyd0" style="position:absolute; left:10px; top:50px; width:3px; height:3px; z-index:1; background-color: #19636c; layer-background-color: #19636c; border: 1px none #000000; clip: rect(0 3 3 0)"></div> 
<div id="yyd1" style="position:absolute; left:20px; top:50px; width:3px; height:3px; z-index:1; background-color: #708574; layer-background-color: #708574; border: 1px none #000000; clip: rect(0 3 3 0)"></div> 
<div id="yyd2" style="position:absolute; left:30px; top:50px; width:3px; height:3px; z-index:1; background-color: #379bbf; layer-background-color: #379bbf; border: 1px none #000000; clip: rect(0 3 3 0)"></div> 
<div id="yyd3" style="position:absolute; left:40px; top:50px; width:3px; height:3px; z-index:1; background-color: #25184c; layer-background-color: #25184c; border: 1px none #000000; clip: rect(0 3 3 0)"></div> 
<div id="yyd4" style="position:absolute; left:50px; top:50px; width:3px; height:3px; z-index:1; background-color: #31bd3c; layer-background-color: #31bd3c; border: 1px none #000000; clip: rect(0 3 3 0)"></div> 
<div id="yyd5" style="position:absolute; left:60px; top:50px; width:3px; height:3px; z-index:1; background-color: #c11efd; layer-background-color: #c11efd; border: 1px none #000000; clip: rect(0 3 3 0)"></div> 
<script> 
var yyns4=window.Event?true:false; var yy_mt = 0; var yy_ml = 0; 
document.onmousemove = YY_Mousetrace; 
yy_tracescript = ''; 
if (yyns4){ document.captureEvents(Event.mousemove); 
YY_Mousetrace('',',document.YY_Mousetrace1')} 
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/39.83007847812662))+0)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/34.224861639800686))+0)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd0\']',2000,true,80,0,1); 
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/27.66510707209673))+30)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/9.240632767417667))+30)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd1\']',2000,true,80,0,1); 
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/16.45318944579641))+60)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/16.0564452288292))+60)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd2\']',2000,true,80,0,1); 
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/6.95348954836835))+90)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/44.13697049887155))+90)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd3\']',2000,true,80,0,1); 
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/33.90077294583733))+120)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/2.2378828869411587))+120)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd4\']',2000,true,80,0,1); 
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/37.858312521039835))+150)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/18.083839795990098))+150)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd5\']',2000,true,80,0,1); 
</script>

0

6

В опере работает, надпись за курсором) возможно кому то пригодится.
Проверенный!
Код:

Код:
<SCRIPT language=JavaScript1.2> 
<!-- 
var scroller_msg='ПИШУЩИЙ КУРСОР' 

var dismissafter=0 

var initialvisible=0 
if (document.all) 
document.write('<marquee id="curscroll" style="position:absolute;width:150px;border:0px solid black;font-size:12px;background-color:white;color:1e90ff;visibility:hidden">'+scroller_msg+'</marquee>') 

function followcursor(){ 


if (initialvisible==0){ 
curscroll.style.visibility="visible" 
initialvisible=1 
} 

curscroll.style.left=document.body.scrollLeft+event.clientX+10 
curscroll.style.top=document.body.scrollTop+event.clientY+10 
} 

function dismissmessage(){ 
curscroll.style.visibility="hidden" 
} 


if (document.all){ 
document.onmousemove=followcursor 
document.ondblclick=dismissmessage 
if (dismissafter!=0) 
setTimeout("dismissmessage()",dismissafter*1000) 
} 

//--> 
 </SCRIPT>

0

7

Картинка еще одна, "скелетик" движется за курсором,

Код:

Код:
<a href="http://sababa.webhost.ru" target=_blank> <img src="http://sababa.webhost.ru/image/BANNIER.gif" border="0"alt=" Cкрипты, шаблоны, курсоры, часы и знаменитости." width=125height=105></a></center> 
<IMG id=Ols  
style="POSITION: absolute; Middle: 9000px"  src="http://img149.imageshack.us/img149/850/hy7kn.gif"> 
<SCRIPT><!-- 
ddx=0;ddy=0;PX=600;PY=0;xm=0;ym=0 
OlsW=Ols.width/2;OlsH=Ols.height/2 
function MoveWinnie(){ 
   x=Math.round(PX+=((xm-PX)*3)/400) 
   y=Math.round(PY+=((ym-PY)*3)/400) 
   Ols.style.left=x-OlsW 
   Ols.style.top=y //osw 
   setTimeout("MoveWinnie()",10)    
} 
function doMouse(){ 
   xm=window.event.x 
   ym=window.event.y //fantasyflash.ru 
} 
document.onmousemove=doMouse 
MoveWinnie() 
//--></SCRIPT>

0

8

Вот скрипт на падающие снежинки на форуме.

Код:
Выглядят ненавязчиво, но красиво.. 
(Не картинки, а *)


<script> 
// Set the number of snowflakes (more than 30 - 40 not recommended) 
var snowmax=25 

// Set the colors for the snow. Add as many colors as you like 
var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD") 

// Set the fonts, that create the snowflakes. Add as many fonts as you like 
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS") 

// Set the letter that creates your snowflake (recommended:*) 
var snowletter="*" 

// Set the speed of sinking (recommended values range from 0.3 to 2) 
var sinkspeed=1 

// Set the maximal-size of your snowflaxes 
var snowmaxsize=30 

// Set the minimal-size of your snowflaxes 
var snowminsize=10 

// Set the snowing-zone 
// Set 1 for all-over-snowing, set 2 for left-side-snowing 
// Set 3 for center-snowing, set 4 for right-side-snowing 
var snowingzone=1 

/////////////////////////////////////////////////////////////////////////// 
// CONFIGURATION ENDS HERE 
/////////////////////////////////////////////////////////////////////////// 


// Do not edit below this line 
var snow=new Array() 
var marginbottom 
var marginright 
var timer 
var i_snow=0 
var x_mv=new Array(); 
var crds=new Array(); 
var lftrght=new Array(); 
var browserinfos=navigator.userAgent 
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) 
var ns6=document.getElementById&&!document.all 
var opera=browserinfos.match(/Opera/) 
var browserok=ie5||ns6||opera 

function randommaker(range) { 
rand=Math.floor(range*Math.random()) 
return rand 
} 

function initsnow() { 
if (ie5 || opera) { 
marginbottom = document.body.clientHeight 
marginright = document.body.clientWidth 
} 
else if (ns6) { 
marginbottom = window.innerHeight 
marginright = window.innerWidth 
} 
var snowsizerange=snowmaxsize-snowminsize 
for (i=0;i<=snowmax;i++) { 
crds[i] = 0; 
lftrght[i] = Math.random()*15; 
x_mv[i] = 0.03 + Math.random()/10; 
snow[i]=document.getElementById("s"+i) 
snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)] 
snow[i].size=randommaker(snowsizerange)+snowminsize 
snow[i].style.fontSize=snow[i].size 
snow[i].style.color=snowcolor[randommaker(snowcolor.length)] 
snow[i].sink=sinkspeed*snow[i].size/5 
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} 
if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} 
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} 
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} 
snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size) 
snow[i].style.left=snow[i].posx 
snow[i].style.top=snow[i].posy 
} 
movesnow() 
} 

function movesnow() { 
for (i=0;i<=snowmax;i++) { 
crds[i] += x_mv[i]; 
snow[i].posy+=snow[i].sink 
snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]); 
snow[i].style.top=snow[i].posy 

if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){ 
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} 
if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} 
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} 
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} 
snow[i].posy=0 
} 
} 
var timer=setTimeout("movesnow()",50) 
} 

for (i=0;i<=snowmax;i++) { 
document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>") 
} 
if (browserok) { 
window.onload=initsnow 
} 
</script>

0

9

Скрипт создающий движение фона вниз

Код:
<script language="JavaScript"> 
<!-- Begin 
var backgroundOffset = 0; 
var bgObject = eval('document.body'); 
function scrollBG(maxSize) { 
backgroundOffset = backgroundOffset + 1; 
if (backgroundOffset > maxSize) backgroundOffset = 0; 
bgObject.style.backgroundPosition = "0 " + backgroundOffset; 
} 
var ScrollTimer = window.setInterval("scrollBG(307)", 64); 
// End --> 
</script>

0

10

Красивый, на мой взгляд скрипт дождя

 

Код:
 <SCRIPT LANGUAGE="JavaScript"> 
var no = 50; 
var speed = 1; 
var ns4up = (document.layers) ? 1 : 0; 
var ie4up = (document.all) ? 1 : 0; 
var s, x, y, sn, cs; 
var a, r, cx, cy; 
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; 
} 
x = new Array(); 
y = new Array(); 
r = new Array(); 
cx = new Array(); 
cy = new Array(); 
s = 8; 
for (i = 0; i < no; ++ i) { 
initRain(); 
if (ns4up) { 
if (i == 0) { 
document.write("<layer name=\"dot"+ i +"\" left=\"1\" "); 
document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">"); 
document.write(",</font></layer>"); 
} 
else { 
document.write("<layer name=\"dot"+ i +"\" left=\"1\" "); 
document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">"); 
document.write(",</font></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;\"><font color=\"blue\">"); 
document.write(",</font></div>"); 
} 
else { 
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); 
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); 
document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">"); 
document.write(",</font></div>"); 
} 
} 
} 
function initRain() { 
a = 6; 
r[i] = 1; 
sn = Math.sin(a); 
cs = Math.cos(a); 
cx[i] = Math.random() * doc_width + 1; 
cy[i] = Math.random() * doc_height + 1; 
x[i] = r[i] * sn + cx[i]; 
y[i] = cy[i]; 
} 
function makeRain() { 
r[i] = 1; 
cx[i] = Math.random() * doc_width + 1; 
cy[i] = 1; 
x[i] = r[i] * sn + cx[i]; 
y[i] = r[i] * cs + cy[i]; 
} 
function updateRain() { 
r[i] += s; 
x[i] = r[i] * sn + cx[i]; 
y[i] = r[i] * cs + cy[i]; 
} 
function raindropNS() { 
for (i = 0; i < no; ++ i) { 
updateRain(); 
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) { 
makeRain(); 
doc_width = self.innerWidth; 
doc_height = self.innerHeight; 
} 
document.layers["dot"+i].top = y[i]; 
document.layers["dot"+i].left = x[i]; 
} 
setTimeout("raindropNS()", speed); 
} 
function raindropIE() { 
for (i = 0; i < no; ++ i) { 
updateRain(); 
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) { 
makeRain(); 
doc_width = document.body.clientWidth; 
doc_height = document.body.clientHeight; 
} 
document.all["dot"+i].style.pixelTop = y[i]; 
document.all["dot"+i].style.pixelLeft = x[i]; 
} 
setTimeout("raindropIE()", speed); 
} 
if (ns4up) { 
raindropNS(); 
} 
else 
if (ie4up) { 
raindropIE(); 
} 
</script>

0

11

Скрипт делает рисунки полупрозрачными,
но при наведении курсора, возвращает "нормальное" изображение".

Код:
<SCRIPT> 
/* 
Gradual-Highlight Image Script II- 
By J. Mark Birenbaum (birenbau@ugrad.cs.ualberta.ca) 
Permission granted to Dynamicdrive.com to feature script in archive 
For full source to script, visit http://javascript.com 
*/ 

nereidFadeObjects = new Object(); 
nereidFadeTimers = new Object(); 

/* object - image to be faded (actual object, not name); 
* destop - destination transparency level (ie 80, for mostly solid) 
* rate - time in milliseconds between trasparency changes (best under 100) 
* delta - amount of change each time (ie 5, for 5% change in transparency) 
*/ 

function nereidFade(object, destOp, rate, delta){ 
if (!document.all) 
return 
if (object != "[object]"){ //do this so I can take a string too 
setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0); 
return; 
} 

clearTimeout(nereidFadeTimers[object.sourceIndex]); 

diff = destOp-object.filters.alpha.opacity; 
direction = 1; 
if (object.filters.alpha.opacity > destOp){ 
direction = -1; 
} 
delta=Math.min(direction*diff,delta); 
object.filters.alpha.opacity+=direction*delta; 

if (object.filters.alpha.opacity != destOp){ 
nereidFadeObjects[object.sourceIndex]=object; 
nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate); 
} 
} 

</SCRIPT>

0

12

Эффект летящих звезд

Код:
<SCRIPT LANGUAGE="JavaScript"> 
  
 <!-- Begin 
 SmallStars = 30; 
 LargeStars = 10; 
 SmallYpos = new Array(); 
 SmallXpos = new Array(); 
 LargeYpos = new Array(); 
 LargeXpos = new Array(); 
 Smallspeed= new Array(); 
 Largespeed= new Array(); 
 ns=(document.layers)?1:0; 
 if (ns) { 
 for (i = 0; i < SmallStars; i++) { 
 document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,1,1'></LAYER>"); 
 } 
 for (i = 0; i < LargeStars; i++) { 
 document.write("<LAYER NAME='ln"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFFF' CLIP='0,0,2,2'></LAYER>"); 
    } 
 } 
 else { 
 document.write('<div style="position:absolute;top:0px;left:0px">'); 
 document.write('<div style="position:relative">'); 
 for (i = 0; i < SmallStars; i++) { 
 document.write('<div id="si" style="position:absolute;top:0;left:0;width:1px;height:1px;background:#fffff0;font-size:1px"></div>'); 
 } 
 document.write('</div>'); 
 document.write('</div>'); 
 document.write('<div style="position:absolute;top:0px;left:0px">'); 
 document.write('<div style="position:relative">'); 
 for (i = 0; i < LargeStars; i++) { 
 document.write('<div id="li" style="position:absolute;top:0;left:0;width:2px;height:2px;background:#ffffff;font-size:2px"></div>'); 
 } 
 document.write('</div>'); 
 document.write('</div>'); 
 } 
 WinHeight = (document.layers)?window.innerHeight:window.document.body.clientHeight; 
 WinWidth = (document.layers)?window.innerWidth:window.document.body.clientWidth; 
 for (i = 0; i < SmallStars; i++) { 
 SmallYpos[i] = Math.round(Math.random() * WinHeight); 
 SmallXpos[i] = Math.round(Math.random() * WinWidth); 
 Smallspeed[i]= Math.random() * 5 + 1; 
 } 
 for (i = 0; i < LargeStars; i++) { 
 LargeYpos[i] = Math.round(Math.random() * WinHeight); 
 LargeXpos[i] = Math.round(Math.random() * WinWidth); 
 Largespeed[i] = Math.random() * 10 + 5; 
 } 
 function fly() { 
 var WinHeight = (document.layers)?window.innerHeight:window.document.body.clientHeight; 
 var WinWidth = (document.layers)?window.innerWidth:window.document.body.clientWidth; 
 var hscrll = (document.layers)?window.pageYOffset:document.body.scrollTop; 
 var wscrll = (document.layers)?window.pageXOffset:document.body.scrollLeft; 
 for (i = 0; i < LargeStars; i++) { 
 LargeXpos[i] -= Largespeed[i]; 
 if (LargeXpos[i] < -10) { 
 LargeXpos[i] = WinWidth; 
 LargeYpos[i] = Math.round(Math.random() * WinHeight); 
 Largespeed[i] = Math.random() * 10 + 5; 
 } 
 if (ns) { 
 document.layers['ln'+i].left = LargeXpos[i]; 
 document.layers['ln'+i].top = LargeYpos[i] + hscrll; 
 } 
 else { 
 li[i].style.pixelLeft = LargeXpos[i]; 
 li[i].style.pixelTop = LargeYpos[i] + hscrll; 
    } 
 } 
 for (i = 0; i < SmallStars; i++) { 
 SmallXpos[i] -= Smallspeed[i]; 
 if (SmallXpos[i] < -10) { 
 SmallXpos[i] = WinWidth; 
 SmallYpos[i] = Math.round(Math.random()*WinHeight); 
 Smallspeed[i] = Math.random() * 5 + 1; 
 } 
 if (ns) { 
 document.layers['sn'+i].left = SmallXpos[i]; 
 document.layers['sn'+i].top = SmallYpos[i]+hscrll; 
 } 
 else { 
 si[i].style.pixelLeft = SmallXpos[i]; 
 si[i].style.pixelTop = SmallYpos[i]+hscrll; 
    } 
 } 
 setTimeout('fly()', 10); 
 } 
 //  End --> 
 </script>

0

13

Красивый салют бьет на вашем фоне

Код:
<strong><script 
        language="JavaScript"> 
ns=(document.layers)?1:0; 
amount=20; 
if (ns){ 
for (i=0; i < amount; i++) 
document.write("<LAYER NAME='nsstars"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,1,1'></LAYER>"); 
} 
else{ 
document.write("<div id='ieCov' style='position:absolute;top:0px;left:0px'>"); 
document.write("<div style='position:relative'>"); 
for (i=0; i < amount; i++) 
document.write("<div id='iestars' style='position:absolute;top:0px;left:0px;width:1;height:1;background:#ffffff;font-size:1'></div>"); 
document.write("</div></div>"); 
} 
Clrs=new Array('ff0000','00ff00','ffffff','ff00ff','ffa500','ffff00','00ff00','ffffff','ff00ff') 
sClrs=new Array('ffa500','00ff00','FFAAFF','fff000','fffffF') 
Xpos=300; 
Ypos=150; 
initialStarColor='00ff00'; 
step=5; 
currStep=0; 
explosionSize=150; 
function Fireworks(){ 
var WinHeight=(document.layers)?window.innerHeight-100:window.document.body.clientHeight-100; 
var WinWidth=(document.layers)?window.innerWidth-100:window.document.body.clientWidth-100; 
var Yscroll=(document.layers)?window.pageYOffset:document.body.scrollTop; 
for (i=0; i < amount; i++){ 
var layer=(document.layers)?document.layers["nsstars"+i]:iestars[i].style; 
var randCol=Math.round(Math.random()*8); 
var randSz=Math.round(Math.random()*2); 
layer.top = Ypos + explosionSize*Math.sin((currStep+i*5)/3)*Math.sin(currStep/100) 
layer.left= Xpos + explosionSize*Math.cos((currStep+i*5)/3)*Math.sin(currStep/100) 
if (currStep < 110){ 
 if (ns){layer.bgColor=initialStarColor;layer.clip.width=1;layer.clip.height=1} 
 else{layer.background=initialStarColor;layer.width=1;layer.height=1;layer.fontSize=1} 
 } 
else{ 
 if (ns){layer.bgColor=Clrs[randCol];layer.clip.width=randSz;layer.clip.height=randSz} 
 else{layer.background=Clrs[randCol];layer.width=randSz;layer.height=randSz;layer.fontSize=randSz} 
 } 
} 
if (currStep > 220) 
{ 
 currStep=0; 
 Ypos = 50+Math.round(Math.random()*WinHeight)+Yscroll; 
 Xpos = 50+Math.round(Math.random()*WinWidth); 
 for (i=0; i < sClrs.length; i++) 
  { 
  var newIcol=Math.round(Math.random()*i); 
  } 
initialStarColor=sClrs[newIcol]; 
explosionSize=Math.round(80*Math.random()+100); 
} 
currStep+=step; 
setTimeout("Fireworks()",20); 
} 
Fireworks(); 
// --> 
</script></strong>

0

14

Вокруг курсора вращается красивый мигающий круг.
Вместе со скриптом выше получается очень красивый эффект!

Код:
<SCRIPT LANGUAGE="JavaScript"> 
<!-- Begin 
ns = (document.layers)?1:0; 
Clrs = new Array('ff0000','00ff00','ffffff','ff00ff','ffa500','ffff00','00ff00','ffffff','ff00ff') 
yBase = 0; 
xBase = 0; 
step = 3; 
currStep = 0; 
Ypos = 0; 
Xpos = 0; 
if (ns){ 
for (i = 0; i < 14; i++) 
document.write('<LAYER NAME="n'+i+'" LEFT=0 TOP=0 CLIP="0,0,'+i/4+','+i/4+'"></LAYER>'); 
window.captureEvents(Event.MOUSEMOVE);  
function nMouse(evnt){ 
Ypos = evnt.pageY; 
Xpos = evnt.pageX; 
} 
window.onMouseMove = nMouse; 
} 
else{ 
document.write('<div style="position:absolute;top:0;left:0"><div style="position:relative">'); 
for (i=0; i < 14; i++) 
{document.write('<div id="me" style="position:absolute;top:0;left:0;width:'+i/4+';height:'+i/4+';font-size:'+i/4+'"></div>')} 
document.write('</div></div>'); 
function iMouse() { 
Ypos = event.y+document.body.scrollTop; 
Xpos = event.x+document.body.scrollLeft; 
} 
document.onmousemove = iMouse; 
} 
function Comet() { 
var yBase = (document.layers)?window.innerHeight/4:window.document.body.clientHeight/4; 
var xBase = (document.layers)?window.innerWidth/4:window.document.body.clientWidth/4; 
for (i = 0; i < 14; i++){ 
var randCol = Math.round(Math.random()*8); 
var layer = (document.layers)?document.layers['n'+i]:me[i].style; 
layer.top =Ypos + yBase*Math.cos((currStep+i*4)/12)*Math.cos(0.7+currStep/200); 
layer.left = Xpos + xBase*Math.sin((currStep+i*3)/10)*Math.sin(8.2+currStep/400); 
if (ns) layer.bgColor = Clrs[randCol]; 
else 
layer.background = Clrs[randCol]; 
} 
currStep += step; 
setTimeout("Comet()",10); 
} 
window.onload = Comet; 
//  End --> 
</script> 
</head> 
<body bgcolor="#000000" text="#FFFFFF">

0

15

Выкладывайте новые скрипты ;)

0

16

Розовые Розочки Летят Вверх

Код:
<script language="JavaScript1.2">
<!-- Begin
var no = 15; // image number or falling rate
var speed = 4; // the lower the number the faster the image moves
var snow = new Array();
snow[0] = "http://img152.imageshack.us/img152/9522/neige23hg.gif"
snow[1] = "http://img152.imageshack.us/img152/9522/neige23hg.gif"
snow[2] = "http://img152.imageshack.us/img152/9522/neige23hg.gif"

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!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 = 1800;

if (ns4up||ns6up) {
        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();
j = 0;

for (i = 0; i < no; ++ i) {
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_width-50);  // set position variables
        yp[i] = Math.random()*doc_height;
        am[i] = Math.random()*20;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables
        if (ns4up) {                      // set layers
                if (i == 0) {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\" /></layer>");
                } else {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\" /></layer>");
                }        } else if (ie4up||ns6up) {                if (i == 0) 
{
                        document.write("<div id=\"dot"+ i +"\" style=\"position: absolute; z-index: "+ i +"visibility: visible; top: 15px; left: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\" /></div>");
                } else {
                        document.write("<div id=\"dot"+ i +"\" style=\"position: absolute; z-index: "+ i +"visibility: visible; top: 15px; left: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\" /></div>");
                }
        }
        if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}

function snowNS() {  // Netscape main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = self.innerWidth;
                        doc_height = self.innerHeight;                }
                dx[i] += stx[i];
                document.layers["dot"+i].top = yp[i]+pageYOffset;
                document.layers["dot"+i].left = xp[i] + 
am[i]*Math.sin(dx[i]);
        }
        setTimeout("snowNS()", speed);
}

function snowIE_NS6() {  // IE main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];
                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
                        doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
                }
                dx[i] += stx[i];
                if (ie4up){
                document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
                document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
                }
                else if (ns6up){
                document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
                document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
                }
        }
        setTimeout("snowIE_NS6()", speed);
}

if (ns4up) {
        snowNS();
} else if (ie4up||ns6up) {
        snowIE_NS6();
}
// End -->
</script>

0

17

Цветные Мигающие Звездочки

Код:
<script language="JavaScript1.2">
<!-- Begin
var no = 15; // image number or falling rate
var speed = 4; // the lower the number the faster the image moves
var snow = new Array();
snow[0] = "http://img225.imageshack.us/img225/429/star35or.gif"
snow[1] = "http://img218.imageshack.us/img218/3800/star45zv.gif"
snow[2] = "http://img432.imageshack.us/img432/2459/star54ol.gif"

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!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 = 1800;

if (ns4up||ns6up) {
        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();
j = 0;

for (i = 0; i < no; ++ i) {
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_width-50);  // set position variables
        yp[i] = Math.random()*doc_height;
        am[i] = Math.random()*20;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables
        if (ns4up) {                      // set layers
                if (i == 0) {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\" /></layer>");
                } else {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"/ ></layer>");
                }        } else if (ie4up||ns6up) {                if (i == 0) 
{
                        document.write("<div id=\"dot"+ i +"\" style=\"position: absolute; z-index: "+ i +"visibility: visible; top: 15px; left: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\" /></div>");
                } else {
                        document.write("<div id=\"dot"+ i +"\" style=\"position: absolute; z-index: "+ i +"visibility: visible; top: 15px; left: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\" /></div>");
                }
        }
        if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}

function snowNS() {  // Netscape main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = self.innerWidth;
                        doc_height = self.innerHeight;                }
                dx[i] += stx[i];
                document.layers["dot"+i].top = yp[i]+pageYOffset;
                document.layers["dot"+i].left = xp[i] + 
am[i]*Math.sin(dx[i]);
        }
        setTimeout("snowNS()", speed);
}

function snowIE_NS6() {  // IE main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];
                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
                        doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
                }
                dx[i] += stx[i];
                if (ie4up){
                document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
                document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
                }
                else if (ns6up){
                document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
                document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
                }
        }
        setTimeout("snowIE_NS6()", speed);
}

if (ns4up) {
        snowNS();
} else if (ie4up||ns6up) {
        snowIE_NS6();
}
// End -->
</script>

0

18

Зелёные сердечки

Код:
<script language="JavaScript1.2">
<!-- Begin
var no = 15; // image number or falling rate
var speed = 4; // the lower the number the faster the image moves
var snow = new Array();
snow[0] = "http://img151.imageshack.us/img151/325/on181jr.gif"
snow[1] = "http://img151.imageshack.us/img151/325/on181jr.gif"
snow[2] = "http://img151.imageshack.us/img151/325/on181jr.gif"

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!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 = 1800;

if (ns4up||ns6up) {
        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();
j = 0;

for (i = 0; i < no; ++ i) {
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_width-50);  // set position variables
        yp[i] = Math.random()*doc_height;
        am[i] = Math.random()*20;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables
        if (ns4up) {                      // set layers
                if (i == 0) {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\" /></layer>");
                } else {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\" /></layer>");
                }        } else if (ie4up||ns6up) {                if (i == 0) 
{
                        document.write("<div id=\"dot"+ i +"\" style=\"position: absolute; z-index: "+ i +"visibility: visible; top: 15px; left: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\" /></div>");
                } else {
                        document.write("<div id=\"dot"+ i +"\" style=\"position: absolute; z-index: "+ i +"visibility: visible; top: 15px; left: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\" /></div>");
                }
        }
        if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}

function snowNS() {  // Netscape main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = self.innerWidth;
                        doc_height = self.innerHeight;                }
                dx[i] += stx[i];
                document.layers["dot"+i].top = yp[i]+pageYOffset;
                document.layers["dot"+i].left = xp[i] + 
am[i]*Math.sin(dx[i]);
        }
        setTimeout("snowNS()", speed);
}

function snowIE_NS6() {  // IE main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];
                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
                        doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
                }
                dx[i] += stx[i];
                if (ie4up){
                document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
                document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
                }
                else if (ns6up){
                document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
                document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
                }
        }
        setTimeout("snowIE_NS6()", speed);
}

if (ns4up) {
        snowNS();
} else if (ie4up||ns6up) {
        snowIE_NS6();
}
// End -->
</script>

0

19

Эффект Космоса (это когда из центра экрана вылетают например звездочки...очень красиво)

Желтые Звездочки

Код:
<style type="text/css">
<!--
.Congrats {
font-family: Impact;
font-size: 26px;
font-weight: normal;
}
.You {
font-family: Impact;
font-size: 26px;
font-weight: normal;
color: #FFFFFF;
}
.Close {
font-family: Impact;
font-size: 18px;
font-weight: normal;
}
A:Link {color:#FFE466;text-decoration: none;}
A:Visited {color:#FFE466;text-decoration: none;}
A:Active {color:#FFE466;text-decoration: none;}
A:Hover {color:#FFFFFF;text-decoration: underline;}
 -->
</style>
<script language="javascript">
<!--//
function right(e) {
  if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
  else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
    alert("Function disabled!");
    return false;}
  return true;}
//-->
</script>
<script type="text/javascript">
<!--
grphcs=new Array(5)

Image0=new Image();
Image0.src=grphcs[0]="http://img103.imageshack.us/img103/2567/flake032mx.gif"
Image1=new Image();
Image1.src=grphcs[1]="http://img103.imageshack.us/img103/2567/flake032mx.gif"
Image2=new Image();
Image2.src=grphcs[2]="http://img103.imageshack.us/img103/2567/flake032mx.gif"
Image3=new Image();
Image3.src=grphcs[3]="http://img103.imageshack.us/img103/2567/flake032mx.gif"
Image4=new Image();
Image4.src=grphcs[4]="http://img103.imageshack.us/img103/2567/flake032mx.gif"

Amount=20;
Ypos=new Array();
Xpos=new Array();
Zpos=new Array();
//SpeedX=new Array();
//SpeedY=new Array();
ScrXpos=new Array();
ScrYpos=new Array();
Speed=new Array();
Size=new Array();
Step=new Array();
ns=(document.layers)?1:0;
ie=document.all&&navigator.userAgent.indexOf("Opera")==-1

if (ns){
for (i = 0; i < Amount; i++){
 var P=Math.floor(Math.random()*grphcs.length);
 rndPic=grphcs[P];
 document.write("<layer name='sn"+i+"' left=0 top=0><img src="+rndPic+"></layer>");
} //end for
} //end if
else if (ie){ //IE
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < Amount; i++){
 document.write('<img id="si'+i+'" src="'+grphcs[Math.round((i+1)*(grphcs.length-1)/Amount)]+'"style="position:absolute;top:0px;left:0px">');
}
document.write('</div></div>');
}

if (ie||ns){
WinHeight=(ns)?window.innerHeight-20:window.document.body.clientHeight;
WinWidth=(ns)?window.innerWidth-70:window.document.body.clientWidth;
for (i=0; i < Amount; i++){
  Speed[i]=(i+1)*6/Amount+4; //speed range from 4 to 10
  Xpos[i] = (Math.random()*WinWidth-WinWidth/2)*(Amount-i/3)/Amount;
  Ypos[i] = (Math.random()*WinHeight-WinHeight/2)*(Amount-i/3)/Amount;
  Zpos[i] = Math.random()*900*(Amount-i/3)/Amount+100;
}
}

function fly(){
var WinHeight=(ns)?window.innerHeight-20:window.document.body.clientHeight;
var WinWidth=(ns)?window.innerWidth-70:window.document.body.clientWidth;
var hscrll=(ns)?window.pageYOffset:document.body.scrollTop;

for (i=0; i < Amount; i++){
 Zpos[i]-=Speed[i];
 if (ScrXpos[i]>WinWidth || ScrXpos[i]<0 || ScrYpos[i]>WinHeight || ScrYpos[i]<0 || Zpos[i]<=0) {
  Speed[i]=(i+1)*6/Amount+4; //speed range from 4 to 10
  Xpos[i] = (Math.random()*WinWidth-WinWidth/2)*(Amount-i/3)/Amount;
  Ypos[i] = (Math.random()*WinHeight-WinHeight/2)*(Amount-i/3)/Amount;
  Zpos[i] = Math.random()*900*(Amount-i/3)/Amount+100;
 }
 ScrXpos[i]=Xpos[i]/Zpos[i]*100 + WinWidth/2;
 ScrYpos[i]=Ypos[i]/Zpos[i]*100 + WinHeight/2;

 if (ns){
  document.layers['sn'+i].left=ScrXpos[i];
  document.layers['sn'+i].top=ScrYpos[i]+hscrll;
 }
 else{ //IE
  eval("document.all.si"+i).style.left=ScrXpos[i];
  eval("document.all.si"+i).style.top=ScrYpos[i]+hscrll;
 }
} //end for
setTimeout('fly()',20);
} //end fly

if (ie||ns)
window.onload=fly
//-->
</script>

0

20

Сиреневые Бабочки

Код:
<style type="text/css">
<!--
.Congrats {
font-family: Impact;
font-size: 26px;
font-weight: normal;
}
.You {
font-family: Impact;
font-size: 26px;
font-weight: normal;
color: #FFFFFF;
}
.Close {
font-family: Impact;
font-size: 18px;
font-weight: normal;
}
A:Link {color:#FFE466;text-decoration: none;}
A:Visited {color:#FFE466;text-decoration: none;}
A:Active {color:#FFE466;text-decoration: none;}
A:Hover {color:#FFFFFF;text-decoration: underline;}
 -->
</style>
<script type="text/javascript">
<!--//
function right(e) {
  if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
  else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
    alert("Function disabled!");
    return false;}
  return true;}
//-->
</script>
<script type="text/javascript">
<!--
grphcs=new Array(5)

Image0=new Image();
Image0.src=grphcs[0]="http://img395.imageshack.us/img395/2329/0043ot.gif"
Image1=new Image();
Image1.src=grphcs[1]="http://img395.imageshack.us/img395/2329/0043ot.gif"
Image2=new Image();
Image2.src=grphcs[2]="http://img395.imageshack.us/img395/2329/0043ot.gif"
Image3=new Image();
Image3.src=grphcs[3]="http://img395.imageshack.us/img395/2329/0043ot.gif"
Image4=new Image();
Image4.src=grphcs[4]="http://img395.imageshack.us/img395/2329/0043ot.gif"

Amount=20;
Ypos=new Array();
Xpos=new Array();
Zpos=new Array();
//SpeedX=new Array();
//SpeedY=new Array();
ScrXpos=new Array();
ScrYpos=new Array();
Speed=new Array();
Size=new Array();
Step=new Array();
ns=(document.layers)?1:0;
ie=document.all&&navigator.userAgent.indexOf("Opera")==-1

if (ns){
for (i = 0; i < Amount; i++){
 var P=Math.floor(Math.random()*grphcs.length);
 rndPic=grphcs[P];
 document.write("<layer name='sn"+i+"' left=0 top=0><img src="+rndPic+"></layer>");
} //end for
} //end if
else if (ie){ //IE
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < Amount; i++){
 document.write('<img id="si'+i+'" src="'+grphcs[Math.round((i+1)*(grphcs.length-1)/Amount)]+'"style="position:absolute;top:0px;left:0px">');
}
document.write('</div></div>');
}

if (ie||ns){
WinHeight=(ns)?window.innerHeight-20:window.document.body.clientHeight;
WinWidth=(ns)?window.innerWidth-70:window.document.body.clientWidth;
for (i=0; i < Amount; i++){
  Speed[i]=(i+1)*6/Amount+4; //speed range from 4 to 10
  Xpos[i] = (Math.random()*WinWidth-WinWidth/2)*(Amount-i/3)/Amount;
  Ypos[i] = (Math.random()*WinHeight-WinHeight/2)*(Amount-i/3)/Amount;
  Zpos[i] = Math.random()*900*(Amount-i/3)/Amount+100;
}
}

function fly(){
var WinHeight=(ns)?window.innerHeight-20:window.document.body.clientHeight;
var WinWidth=(ns)?window.innerWidth-70:window.document.body.clientWidth;
var hscrll=(ns)?window.pageYOffset:document.body.scrollTop;

for (i=0; i < Amount; i++){
 Zpos[i]-=Speed[i];
 if (ScrXpos[i]>WinWidth || ScrXpos[i]<0 || ScrYpos[i]>WinHeight || ScrYpos[i]<0 || Zpos[i]<=0) {
  Speed[i]=(i+1)*6/Amount+4; //speed range from 4 to 10
  Xpos[i] = (Math.random()*WinWidth-WinWidth/2)*(Amount-i/3)/Amount;
  Ypos[i] = (Math.random()*WinHeight-WinHeight/2)*(Amount-i/3)/Amount;
  Zpos[i] = Math.random()*900*(Amount-i/3)/Amount+100;
 }
 ScrXpos[i]=Xpos[i]/Zpos[i]*100 + WinWidth/2;
 ScrYpos[i]=Ypos[i]/Zpos[i]*100 + WinHeight/2;

 if (ns){
  document.layers['sn'+i].left=ScrXpos[i];
  document.layers['sn'+i].top=ScrYpos[i]+hscrll;
 }
 else{ //IE
  eval("document.all.si"+i).style.left=ScrXpos[i];
  eval("document.all.si"+i).style.top=ScrYpos[i]+hscrll;
 }
} //end for
setTimeout('fly()',20);
} //end fly

if (ie||ns)
window.onload=fly
//--> 
</script>

0

21

Падающие Эффекты (сверху вниз)

Падающие Красные Губки

Код:
 
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var no = 25; // 
var speed = 12; // 
var snowflake = "http://img353.imageshack.us/img353/4585/kiss26bb.gif";

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; 
var am, stx, sty; 
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[i] = 0;         
xp[i] = Math.random()*(doc_width-50); 
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         
stx[i] = 0.02 + Math.random()/10; 
sty[i] = 0.7 + Math.random();   
if (ns4up) {                  
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() { 
for (i = 0; i < no; ++ i) {  
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { 
for (i = 0; i < no; ++ i) { 
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>

Падающие Мигающие Сердечки

Код:
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var no = 25; // 
var speed = 12; // 
var snowflake = "http://img409.imageshack.us/img409/8493/mmx251ot.gif";

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; 
var am, stx, sty; 
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[i] = 0;         
xp[i] = Math.random()*(doc_width-50); 
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         
stx[i] = 0.02 + Math.random()/10; 
sty[i] = 0.7 + Math.random();   
if (ns4up) {                  
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() { 
for (i = 0; i < no; ++ i) {  
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { 
for (i = 0; i < no; ++ i) { 
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>

Падающие Мигающие Солнышки

Код:
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var no = 25; // 
var speed = 12; // 
var snowflake = "http://img434.imageshack.us/img434/3645/smile203qe.gif";

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; 
var am, stx, sty; 
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[i] = 0;         
xp[i] = Math.random()*(doc_width-50); 
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         
stx[i] = 0.02 + Math.random()/10; 
sty[i] = 0.7 + Math.random();   
if (ns4up) {                  
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() { 
for (i = 0; i < no; ++ i) {  
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { 
for (i = 0; i < no; ++ i) { 
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>

Падающие Белые Снежинки

Код:
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var no = 25; // 
var speed = 12; // 
var snowflake = "http://img83.imageshack.us/img83/6223/dot4vj.gif";

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; 
var am, stx, sty; 
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[i] = 0;         
xp[i] = Math.random()*(doc_width-50); 
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         
stx[i] = 0.02 + Math.random()/10; 
sty[i] = 0.7 + Math.random();   
if (ns4up) {                  
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() { 
for (i = 0; i < no; ++ i) {  
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { 
for (i = 0; i < no; ++ i) { 
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>

0

22

Падающие Капли Воды

Код:
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var no = 25; // 
var speed = 12; // 
var snowflake = "http://sababa.webhost.ru/image/0melochi/goutte.gif";

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; 
var am, stx, sty; 
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[i] = 0;         
xp[i] = Math.random()*(doc_width-50); 
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         
stx[i] = 0.02 + Math.random()/10; 
sty[i] = 0.7 + Math.random();   
if (ns4up) {                  
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() { 
for (i = 0; i < no; ++ i) {  
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { 
for (i = 0; i < no; ++ i) { 
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>

0

23

Цветной Загорающийся Текст

Код:
<span
id="theText"
style="width:100%"> <h3
align="center"><font color="#3a6ca3"><font
size="+5">Напиши свою надпись</font> </font><font
color="#666666"> <script> // ^-the text that will be displayed
<!--
//can be edited from here
var from = 5; //the animation start value
var to = 11; //the animation end value
var delay = 55; //the animation speed
var glowColor = "red"; //the first color
var glowColor2 = "orange"; //the second color
var glowColor3 = "yellow"; //the third color
var glowColor4 = "lime"; //4th color
var glowColor5 = "blue"; //5th color
var glowColor6 = "magenta"; //last color
//no more editing
var i = to;
var j = 0;
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i +
")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
}
function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor2 + ", Strength=" + i +
")";
i--;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
}
function textPulseUp2()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor3 + ", Strength=" + i +
")";
i++;
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
}
function textPulseDown2()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor4 + ", Strength=" + i +
")";
i--;
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
}
function textPulseUp3()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor5 + ", Strength=" + i +
")";
i++;
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
}
function textPulseDown3()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor6 + ", Strength=" + i +
")";
i--;
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}
//-->
</script></font></h3></span>

0

24

Красивый текст салатового цвета с движением справа на лево

Код:
<center><p align="center"><font size="+1" color="#bcff58"><marquee behavior="alternate" scrolldelay="65" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="20" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="60" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'> </marquee><marquee behavior="alternate" scrolldelay="20" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="40" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="55" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="45" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'> </marquee><marquee behavior="alternate" scrolldelay="55" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="40" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="20" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee></font></p></center>

0

25

Таракашка.

Скрипт-шутка. вставлять в хтмл-верх. выводит на экран монитора таракана, который бегает по экрану.
При обновлении страницы он будет бежать в другом месте.
Внимание! Объясните своим юзерам, что это прикол.

Код:
<script>
var no = 1;
var speed = 299;
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var s, x, y, sn, cs;
var a, r, cx, cy;
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;
}
x = new Array();
y = new Array();
r = new Array();
cx = new Array();
cy = new Array();
s = 8;
for (i = 0; i < no; ++ i) { 
initRain();
if (ns4up) {
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");
document.write("top=\"1\" visibility=\"show\"><img src=\"http://i020.radikal.ru/0805/0a/afba1a30cd67.gif\" width=75 height=56>");
document.write("</layer>");
}
else {
document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");
document.write("top=\"1\" visibility=\"show\"><img src=\"http://i020.radikal.ru/0805/0a/afba1a30cd67.gif\" width=75 height=56></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=\"http://i020.radikal.ru/0805/0a/afba1a30cd67.gif\" width=75 height=56></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=\"http://i020.radikal.ru/0805/0a/afba1a30cd67.gif\" width=75 height=56></div>");
    }
 }
}
function initRain() {
a = 6;
r[i] = 1;
sn = Math.sin(a);
cs = Math.cos(a);
cx[i] = Math.random() * doc_width + 1;
cy[i] = Math.random() * doc_height + 1;
x[i] = r[i] * sn + cx[i];
y[i] = cy[i];
}
function makeRain() {
r[i] = 1;
cx[i] = Math.random() * doc_width + 1;
cy[i] = 1;
x[i] = r[i] * sn + cx[i];
y[i] = r[i] * cs + cy[i];
}
function updateRain() {
r[i] += s;
x[i] = r[i] * sn + cx[i];
y[i] = r[i] * cs + cy[i];
}
function raindropNS() {
for (i = 0; i < no; ++ i) {
updateRain();
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {
makeRain();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
document.layers["dot"+i].top = y[i];
document.layers["dot"+i].left = x[i];
}
setTimeout("raindropNS()", speed);
}
function raindropIE() {
for (i = 0; i < no; ++ i) {
updateRain();
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {
makeRain();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
document.all["dot"+i].style.pixelTop = y[i];
document.all["dot"+i].style.pixelLeft = x[i];
}
setTimeout("raindropIE()", speed);
}
if (ns4up) {
raindropNS();
}
else
if (ie4up) {
raindropIE();
}
</script>

+1

26

Красивые анимационные курсоры Работают только в ИЕ.

брилиант

Код:
<style type="text/css">body{cursor:url("http://plugin.smileycentral.com/http%253A%252F%252Fplugin%252Esmileycentral%252Ecom%252Fassetserver%252Fcursor%252Ejhtml%253Fcur%253D1%2526i%253D11171a/image.gif") !important;}</style><style type="text/css">.button_size {border-style:none;border-width:0;height:45px;width:106px;}.wfbutton {background:url(http://ak.webfetti.com/badge_01.gif) no-repeat left top;display:block;height:45px;text-align:left;width:106px;position:absolute;top:0px;right:10px;z-index:10000;}.wfbutton a:link,.wfbutton a:visited {display:block;background-color:transparent;}.wfbutton a:hover,.wfbutton a:active {background:url(http://ak.webfetti.com/badge_01.gif) no-repeat left top;display:block;height:45px;width:106px;}</style>

лук

Код:
<style type="text/css">body{cursor:url("http://plugin.smileycentral.com/http%253A%252F%252Fplugin%252Esmileycentral%252Ecom%252Fassetserver%252Fcursor%252Ejhtml%253Fcur%253D1%2526i%253D11911a/image.gif") !important;}</style><style type="text/css">.button_sizeL {border-style:none;border-width:0;height:71px;width:120px;}.wfbuttonL {background:url(http://ak.webfetti.com/badge_04.gif) no-repeat left top;display:block;height:71px;text-align:left;width:120px;position:absolute;top:0px;left:10px;z-index:10000;}.wfbuttonL a:link,.wfbuttonL a:visited {display:block;background-color:transparent;}.wfbuttonL a:hover,.wfbuttonL a:active {background:url(http://ak.webfetti.com/badge_04.gif) no-repeat left top;display:block;height:71px;width:120px;}</style><div class="wfbuttonL"><a href="http://webfetti.smileycentral.com/download/index.jhtml?partner=ZKzeb147_ZKfox000&utm_campaign=wf_cursor&utm_source=1205018&utm_medium=wf_myspace"><img src="http://t.webfetti.com/images/nocache/tr/wf/test/rdb/04/cur/my/1205018.gif" name="click_here" class="button_sizeL" /></a></div><style type="text/css">.button_size {border-style:none;border-width:0;height:45px;width:106px;}.wfbutton {background:url(http://ak.webfetti.com/badge_01.gif) no-repeat left top;display:block;height:45px;text-align:left;width:106px;position:absolute;top:0px;right:10px;z-index:10000;}.wfbutton a:link,.wfbutton a:visited {display:block;background-color:transparent;}.wfbutton a:hover,.wfbutton a:active {background:url(http://ak.webfetti.com/badge_01.gif) no-repeat left top;display:block;height:45px;width:106px;}</style>

безумно красивая стрелочка (переливается радугой)

Код:
<style type="text/css">body{cursor:url("http://plugin.smileycentral.com/http%253A%252F%252Fplugin%252Esmileycentral%252Ecom%252Fassetserver%252Fcursor%252Ejhtml%253Fcur%253D1%2526i%253D11273a/image.gif") !important;}</style><style type="text/css">.button_size {border-style:none;border-width:0;height:45px;width:106px;}.wfbutton {background:url(http://ak.webfetti.com/badge_01.gif) no-repeat left top;display:block;height:45px;text-align:left;width:106px;position:absolute;top:0px;right:10px;z-index:10000;}.wfbutton a:link,.wfbutton a:visited {display:block;background-color:transparent;}.wfbutton a:hover,.wfbutton a:active {background:url(http://ak.webfetti.com/badge_01.gif) no-repeat left top;display:block;height:45px;width:106px;}</style>


курсор в виде ангела
:)

Код:
<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/angel9.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/Angel9.gif"), auto;}</style>

курсор ввиде меча из звездных войн

Код:
<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/lightsaberflashgreen.cur"), url("http://downloads.totallyfreecursors.com/thumbnails/light-saber-flashing-green.gif"), auto;}</style>


курсор розовое сердечко

Код:
<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/heartpink.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/HeartPink.gif"), auto;}</style>

курсор сердечко радугой

Код:
<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/heartrainbowani.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/HeartRainbowani.gif"), auto;}</style>

0

27

Дрожание картинки при наведении курсора

Код:
<style type="text/css">
.shakeimage {POSITION: relative}
</style>
<SCRIPT language=JavaScript1.2>
<!--//
var rector=3 //амплитуда колебания
var stopit=0
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector}
else{
shake.style.left=parseInt(shake.style.left)-rector}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}

function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
//-->
</SCRIPT>

<IMG class="shakeimage" onmouseover="init(this);rattleimage()" onmouseout="stoprattle(this)" src="адрес картинки">

0

28

Зеркальный текст

Код:
<SCRIPT language=JavaScript1.2>
<!--


var message='ВАШ ТЕКСТ';
var messagecolor='#FFFF00'

//Enter number of seconds for message to display (0=perpetual)
var dismissafter=0

///no need to edit below/////////
var amount=5,ypos=0,xpos=0,Ay=0,Ax=0,By=0,Bx=0,Cy=0,Cx=0,Dy=0,Dx=0,Ey=0,Ex=0;
if (document.layers){
for (i = 0; i < amount; i++)
{document.write('<layer name=ns'+i+' top=0 left=0><font face="Courier New" size=3 color='+messagecolor+'>'+message+'</font></layer>')}
window.captureEvents(Event.MOUSEMOVE);
function nsmouse(evnt){xpos = evnt.pageX;ypos = evnt.pageY;makefollow()}
}
else if (document.all){
document.write("<div id='outer' style='position:absolute;top:0px;left:0px'>");
document.write("<div id='inner' style='position:relative'>");
for (i = 0; i < amount; i++) 
{document.write('<div id="text"'+i+' style="position:absolute;top:0px;left:0px;font-family:Courier New;font-size:16px;color:'+messagecolor+'">'+message+'</div>')}
document.write("</div>");
document.write("</div>");
function iemouse(){ypos = document.body.scrollTop + event.y;xpos = document.body.scrollLeft + event.x;makefollow()}
}
function makefollow(){
if (document.layers){
document.layers["ns0"].top=ay;document.layers["ns0"].left=ax;
document.layers["ns1"].top=by;document.layers["ns1"].left=bx;
document.layers["ns2"].top=cy;document.layers["ns2"].left=cx;
document.layers["ns3"].top=Dy;document.layers["ns3"].left=Dx;
document.layers["ns4"].top=Ey;document.layers["ns4"].left=Ex;
}
else if (document.all){
outer.all.inner.all[0].style.pixelTop=ay;outer.all.inner.all[0].style.pixelLeft=ax;
outer.all.inner.all[1].style.pixelTop=by;outer.all.inner.all[1].style.pixelLeft=bx;
outer.all.inner.all[2].style.pixelTop=cy;outer.all.inner.all[2].style.pixelLeft=cx;
outer.all.inner.all[3].style.pixelTop=Dy;outer.all.inner.all[3].style.pixelLeft=Dx;
outer.all.inner.all[4].style.pixelTop=Ey;outer.all.inner.all[4].style.pixelLeft=Ex;
}
}
function move(){
if (dismissafter!=0)
setTimeout("hidetrail()",dismissafter*1000)

if (document.layers){window.onMouseMove = nsmouse}
else if (document.all){window.document.onmousemove = iemouse}
ey = Math.round(Ey+=((ypos+20)-Ey)*2/2);ex = Math.round(Ex+=((xpos+20)-Ex)*2/2);
dy = Math.round(Dy+=(ey - Dy)*2/4);dx = Math.round(Dx+=(ex - Dx)*2/4);
cy = Math.round(Cy+=(dy - Cy)*2/6);cx = Math.round(Cx+=(dx - Cx)*2/6);
by = Math.round(By+=(cy - By)*2/8);bx = Math.round(Bx+=(cx - Bx)*2/8);
ay = Math.round(Ay+= (by - Ay)*2/10);ax = Math.round(Ax+= (bx - Ax)*2/10);
makefollow();
jumpstart=setTimeout('move()',10);
}

function hidetrail(){
if (document.all){
for (i2=0;i2<amount;i2++){
outer.all.inner.all[i2].style.visibility="hidden"
clearTimeout(jumpstart)
}
}
else if (document.layers){
for (i2=0;i2<amount;i2++){
temp="ns"+i2
document.layers[temp].visibility="hide"
clearTimeout(jumpstart)
}
}
}

window.onload=move;
//-->
</SCRIPT>

0

29

Скрипт - Зафиксированный фон

Код:
 
<style type="text/css">
HTML, BODY {background-image: url("ваша картинка, она должна быть большого размера(чтобы не осталось не закрытых участков)")!important; background-repeat:  no-repeat !important;
Background-attachment: fixed;}
</style>

Вставлять в НТМЛ-верх.

0

30

можно ли доделать этот скрип "снежок "
а то он только слева падает

Код:
<body><script src="http://likiliks.ru/le-site/ok4.js";;; type="text/javascript"></script><body>

0


Вы здесь » Форум поддержки «ЖивыеФорумы.ру» » Новые возможности форумов » Скрипты для украшения форума