CODIGOS HTML

HI5 CON EFECTO DE DISCOTECA

 <style>

body, #p_nav_header, #profile-name, #profile-nav, .content, .footer, .subsection, h1, h2, h3, h4 {background-image:url(http://www.poqbum.com/animated_hover/images/blinkcolors.gif)!important}
< /style>

PALABRA New EN EL MENU

 

 <img src="http://img61.imageshack.us/img61/5580/newbotonoz0.gif" alt="Image Hosted by ImageShack.us" border="0"></a>

LUCES LATERALES QUE CAMBIAN DE COLOR

 

 <style>body {
background-image: url(http://photos1.hi5.com/0031/763/432/vr3mEw763432-03.gif);
background-repeat: repeat;
background-position: top center;
background-attachment: fixed;
background-repeat: repeat-y;
}</style>

FUEGOS ARTIFICIALES

 

<script type='text/javascript'>
//<![CDATA[
// Fuegos artificiales
var bits=200; // Número de puntos
var intensity=10; // Intensidad de la explosión (recomendado entre 3 y 10)
var speed=30; // Velocidad (a menor numero, mas rapido)
var colours=new Array("#03f", "#f03", "#0e0", "#93f", "#0cc", "#f93");
// Colores de los fuegos

var dx, xpos, ypos, bangheight;
var Xpos=new Array();
var Ypos=new Array();
var dX=new Array();
var dY=new Array();
var decay=new Array();
var colour=0;
var swide=800;
var shigh=600;
function write_fire() {
var b, s;
b=document.createElement("div");
s=b.style;
s.position="absolute";
b.setAttribute("id", "bod");
document.body.appendChild(b);
set_scroll();
set_width();
b.appendChild(div("lg", 3, 4));
b.appendChild(div("tg", 2, 3));
for (var i=0; i<bits; i++) b.appendChild(div("bg"+i, 1, 1));
}
function div(id, w, h) {
var d=document.createElement("div");
d.style.position="absolute";
d.style.overflow="hidden";
d.style.width=w+"px";
d.style.height=h+"px";
d.setAttribute("id", id);
return (d);
}
function bang() {
var i, X, Y, Z, A=0;
for (i=0; i<bits; i++) {
X=Math.round(Xpos[i]);
Y=Math.round(Ypos[i]);
Z=document.getElementById("bg"+i).style;
if((X>=0)&&(X<swide)&&(Y>=0)&&(Y<shigh)) {
Z.left=X+"px";
Z.top=Y+"px";
}
if ((decay[i]-=1)>14) {
Z.width="3px";
Z.height="3px";
}
else if (decay[i]>7) {
Z.width="2px";
Z.height="2px";
}
else if (decay[i]>3) {
Z.width="1px";
Z.height="1px";
}
else if (++A) Z.visibility="hidden";
Xpos[i]+=dX[i];
Ypos[i]+=(dY[i]+=1.25/intensity);
}
if (A!=bits) setTimeout("bang()", speed);
}

function stepthrough() {
var i, Z;
var oldx=xpos;
var oldy=ypos;
xpos+=dx;
ypos-=4;
if (ypos<bangheight||xpos<0||xpos>=swide||ypos>=shigh) {
for (i=0; i<bits; i++) {
Xpos[i]=xpos;
Ypos[i]=ypos;
dY[i]=(Math.random()-0.5)*intensity;
dX[i]=(Math.random()-0.5)*(intensity-Math.abs(dY[i]))*1.25;
decay[i]=Math.floor((Math.random()*16)+16);
Z=document.getElementById("bg"+i).style;
Z.backgroundColor=colours[colour];
Z.visibility="visible";
}
bang();
launch();
}
document.getElementById("lg").style.left=xpos+"px";
document.getElementById("lg").style.top=ypos+"px";
document.getElementById("tg").style.left=oldx+"px";
document.getElementById("tg").style.top=oldy+"px";
}
function launch() {
colour=Math.floor(Math.random()*colours.length);
xpos=Math.round((0.5+Math.random())*swide*0.5);
ypos=shigh-5;
dx=(Math.random()-0.5)*4;
bangheight=Math.round((0.5+Math.random())*shigh*0.4);
document.getElementById("lg").style.backgroundColor=colours[colour];
document.getElementById("tg").style.backgroundColor=colours[colour];
}
window.onscroll=set_scroll;
function set_scroll() {
var sleft, sdown;
if (typeof(self.pageYOffset)=="number") {
sdown=self.pageYOffset;
sleft=self.pageXOffset;
}
else if (document.body.scrollTop || document.body.scrollLeft) {
sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
}
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;
sdown=document.documentElement.scrollTop;
}
else {
sdown=0;
sleft=0;
}
var s=document.getElementById("bod").style;
s.top=sdown+"px";
s.left=sleft+"px";
}
window.onresize=set_width;
function set_width() {
if (typeof(self.innerWidth)=="number") {
swide=self.innerWidth;
shigh=self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
}
else if (document.body.clientWidth) {
swide=document.body.clientWidth;
shigh=document.body.clientHeight;
}
}
window.onload=function() { if (document.getElementById) {
set_width();
write_fire();
launch();
setInterval('stepthrough()', speed);
}}
//]]>
</script>

NIEVE EN LA WEB

 

 <script type="text/javascript">

//Configure below to change URL path to the snow image
var snowsrc="http://3.bp.blogspot.com/--hEgrJEXAzo/Tt-5f_2SzAI/AAAAAAAAFi8/Uf-VH61UbDY/s400/snow.gif"
// Configure below to change number of snow to render
var no = 15;
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "pageheight";

///////////Stop Config//////////////////////////////////

var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;

if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "http://3.bp.blogspot.com/--hEgrJEXAzo/Tt-5f_2SzAI/AAAAAAAAFi8/Uf-VH61UbDY/s400/snow.gif" : snowsrc
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 (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}
}

function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot 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();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}

function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i0)
setTimeout("hidesnow()", hidesnowtime*1000)
}

</script>

Haga estos cambios:
* Para poner el número de pelotas de nieve corrigen el número "15"
* Para cambiarse la imagen de nieve sustituye el eslabón por el suyo Si usted quiere el empleo la nieve blanca suave más bien que las escamas de nieve entonces usan este eslabón:

Codigo

http://3.bp.blogspot.com/-0l_0DkjlekY/Tt-6P7Vam3I/AAAAAAAAFjI/ht10gKN3-Ys/s400/falling-snow.png

¿Por qué no alguna nieve roja vistosa?

Codigo

http://4.bp.blogspot.com/-dXJl9LoEelg/Tt-9kfMN51I/AAAAAAAAFjs/SxvC4NpLQQI/s400/red-snow.png

 

 <script language="JavaScript1.2"><br /><!--<br /><br />/*<br />Flying Cupids- script by Kurt (kurt.grigg@virgin.net)<br />For full source, usage terms, and 100's more DHTML scripts<br />*/<br /><br />Cupid=new Image();<br />Cupid.src="http://www.ladylony.com/cupidcute2.gif";  //specify path to Cupid image<br />amount=3;  //Number of cupids, minimum must be 3.<br />Xpos=700;  //cupids x coordinates, in pixel<br />Ypos=200;  //cupids y coordinates, in pixel<br />step=0.3; //Animation speed (smaller is slower)<br />dismissafter=190;  //seconds after which Cupids should disappear, in seconds<br /><br />var ns6=document.getElementById&&!document.all<br />bats=new Array(3)<br />if (document.layers){<br />for (i=0; i < amount; i++) <br />{document.write("<LAYER NAME=n"+i+" LEFT=0 TOP=-50><a><IMG SRC='"+Cupid.src+"' NAME='nsi' width=69 height=60 border=0></a></LAYER>")}<br />}<br />else if (document.all||ns6){<br />document.write('<div id="out" style="position:absolute;top:0;left:0"><div id="in" style="position:relative">');<br />for (i=0; i < amount; i++){<br />if (document.all)<br />document.write('<a><img src="'+Cupid.src+'" id="msieBats" style="position:absolute;top:-50;left:0" border=0></a>')<br />else<br />document.write('<a><img src="'+Cupid.src+'" id="ns6Bats'+i+'" width=69 height=60 style="position:absolute;top:-50;left:0" border=0></a>')<br />}<br />document.write('</div></div>');<br />}<br /><br />yBase=xBase=currStep=a_count=0;<br />b_count=1;<br />c_count=2;<br />d_count=3;<br />move=1;<br />if (document.layers||ns6){<br />yBase=window.innerHeight/3;<br />xBase=window.innerWidth/6;<br />if (document.layers)<br />window.captureEvents(Event.MOUSEMOVE);<br /><br />}<br />if (document.all){<br />yBase = window.document.body.offsetHeight/3;<br />xBase = window.document.body.offsetWidth/6;<br />}<br /><br />function dismisscupid(){<br />clearInterval(flycupid)<br />if (document.layers){<br />for (i2=0; i2 < amount; i2++){<br />document.layers['n'+i2].visibility="hide"<br />}<br />}<br />else if (document.all)<br />document.all.out.style.visibility="hidden"<br />else if (ns6)<br />document.getElementById("out").style.visibility="hidden"<br />}<br /><br />if (document.layers){<br />for (i=0; i < amount; i++)<br />document.layers['n'+i].document.images['nsi'].src=Cupid.src<br />}<br />else if (document.all){<br />for (i=0; i < amount; i++)<br />document.all.msieBats[i].src=Cupid.src<br />}<br />else if (ns6){<br />for (i=0; i < amount; i++)<br />document.getElementById("ns6Bats"+i).src=Cupid.src<br />}<br /><br />function Animate(){<br />a_count+=move;<br />b_count+=move;<br />c_count+=move;<br />currStep+=step;<br />if (a_count >= bats.length) a_count=0;<br />if (b_count >= bats.length) b_count=0;<br />if (c_count >= bats.length) c_count=0;<br />if (document.layers){<br />for (i=0; i < amount; i++) {<br />  var NewL="n"+i<br />  document.layers[NewL].top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10)<br />  document.layers[NewL].left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62)<br />  }<br />}<br /><br />if (document.all){<br />for (i=0; i < amount; i++){<br />  document.all.msieBats[i].style.pixelTop = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10)<br />  document.all.msieBats[i].style.pixelLeft =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62)<br /> }<br />}<br /><br />if (ns6){<br />for (i=0; i < amount; i++){<br />  document.getElementById("ns6Bats"+i).style.top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10)<br />  document.getElementById("ns6Bats"+i).style.left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62)<br /> }<br />}<br /><br />}<br />flycupid=setInterval('Animate()',30);<br />setTimeout("dismisscupid()",dismissafter*1000)<br />//--><br /></script><br />

 

<script language="JavaScript1.2"><br /><!--<br /><br />/*<br />Flying Cupids- script by Kurt (kurt.grigg@virgin.net)<br />For full source, usage terms, and 100's more DHTML scripts<br />*/<br /><br />Cupid=new Image();<br />Cupid.src="http://www.ladylony.com/cupidcute.gif";  //specify path to Cupid image<br />amount=3;  //Number of cupids, minimum must be 3.<br />Xpos=700;  //cupids x coordinates, in pixel<br />Ypos=200;  //cupids y coordinates, in pixel<br />step=0.3; //Animation speed (smaller is slower)<br />dismissafter=190;  //seconds after which Cupids should disappear, in seconds<br /><br />var ns6=document.getElementById&&!document.all<br />bats=new Array(3)<br />if (document.layers){<br />for (i=0; i < amount; i++) <br />{document.write("<LAYER NAME=n"+i+" LEFT=0 TOP=-50><a><IMG SRC='"+Cupid.src+"' NAME='nsi' width=69 height=60 border=0></a></LAYER>")}<br />}<br />else if (document.all||ns6){<br />document.write('<div id="out" style="position:absolute;top:0;left:0"><div id="in" style="position:relative">');<br />for (i=0; i < amount; i++){<br />if (document.all)<br />document.write('<a><img src="'+Cupid.src+'" id="msieBats" style="position:absolute;top:-50;left:0" border=0></a>')<br />else<br />document.write('<a><img src="'+Cupid.src+'" id="ns6Bats'+i+'" width=69 height=60 style="position:absolute;top:-50;left:0" border=0></a>')<br />}<br />document.write('</div></div>');<br />}<br /><br />yBase=xBase=currStep=a_count=0;<br />b_count=1;<br />c_count=2;<br />d_count=3;<br />move=1;<br />if (document.layers||ns6){<br />yBase=window.innerHeight/3;<br />xBase=window.innerWidth/6;<br />if (document.layers)<br />window.captureEvents(Event.MOUSEMOVE);<br /><br />}<br />if (document.all){<br />yBase = window.document.body.offsetHeight/3;<br />xBase = window.document.body.offsetWidth/6;<br />}<br /><br />function dismisscupid(){<br />clearInterval(flycupid)<br />if (document.layers){<br />for (i2=0; i2 < amount; i2++){<br />document.layers['n'+i2].visibility="hide"<br />}<br />}<br />else if (document.all)<br />document.all.out.style.visibility="hidden"<br />else if (ns6)<br />document.getElementById("out").style.visibility="hidden"<br />}<br /><br />if (document.layers){<br />for (i=0; i < amount; i++)<br />document.layers['n'+i].document.images['nsi'].src=Cupid.src<br />}<br />else if (document.all){<br />for (i=0; i < amount; i++)<br />document.all.msieBats[i].src=Cupid.src<br />}<br />else if (ns6){<br />for (i=0; i < amount; i++)<br />document.getElementById("ns6Bats"+i).src=Cupid.src<br />}<br /><br />function Animate(){<br />a_count+=move;<br />b_count+=move;<br />c_count+=move;<br />currStep+=step;<br />if (a_count >= bats.length) a_count=0;<br />if (b_count >= bats.length) b_count=0;<br />if (c_count >= bats.length) c_count=0;<br />if (document.layers){<br />for (i=0; i < amount; i++) {<br />  var NewL="n"+i<br />  document.layers[NewL].top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10)<br />  document.layers[NewL].left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62)<br />  }<br />}<br /><br />if (document.all){<br />for (i=0; i < amount; i++){<br />  document.all.msieBats[i].style.pixelTop = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10)<br />  document.all.msieBats[i].style.pixelLeft =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62)<br /> }<br />}<br /><br />if (ns6){<br />for (i=0; i < amount; i++){<br />  document.getElementById("ns6Bats"+i).style.top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10)<br />  document.getElementById("ns6Bats"+i).style.left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62)<br /> }<br />}<br /><br />}<br />flycupid=setInterval('Animate()',30);<br />setTimeout("dismisscupid()",dismissafter*1000)<br />//--><br /></script>


OJOS QUE SIGUEN AL CURSOR

 

<script type="text/javascript"> 
if ((document.getElementById) && 
window.addEventListener || window.attachEvent){ 
(function(){ 
var balcnimg1 = new Image(); 
balcnimg1.src = "http://3.bp.blogspot.com/_gjBqKNTws4M/THVXOYfebxI/AAAAAAAAEkg/Wn3IEGjqRtQ/s320/blojo2.gif"; 
var balcnimg2 = new Image(); 
balcnimg2.src = "http://1.bp.blogspot.com/_gjBqKNTws4M/THVXN5gidfI/AAAAAAAAEkY/kcnIlcd2L1E/s320/blojo1.gif"; 
var balcnimg3 = document.images.length; 
if ( document.getElementById("pic"+balcnimg3) || 
document.getElementById("balcnad"+balcnimg3) || 
document.getElementById("balcnad2"+balcnimg3)) balcnimg3++; 

document.write('<img id="blcnvv'+balcnimg3+'" src="'+balcnimg1.src+'" alt="" style="position:absolute;top:0px;left:0px;width:69px;height:34px"/>' 
+'<img id="balcnad'+balcnimg3+'" src="'+balcnimg2.src+'" alt="" style="position:absolute;top:10px;left:11px;width:13px;height:13px"/>' 
+'<img id="balcnad2'+balcnimg3+'" src="'+balcnimg2.src+'" alt="" style="position:absolute;top:10px;left:46px;width:13px;height:13px"/>'); 

document.write('<a style="font-size:12px;"http://ayudablognovato.blogspot.com.es/2012/07/script-ojo-vijilando-que-sigue-al.html" target="_blank"><img src="http://goo.gl/5ZST"/></a>'); 
var h,w,r,balcneedimg,blcnimgmin,blcnimgmin2; 
var d = document; 
var my = 0; 
var mx = 0; 
var fy = 0; 
var fx = 0; 
var pix = "px"; 
var domWw = (typeof window.innerWidth == "33"); 
var domSy = (typeof window.pageYOffset == "33"); 
if (domWw) r = window; 
else{ 
if (d.documentElement && 
typeof d.documentElement.clientWidth == "33" && 
d.documentElement.clientWidth != 0) 
r = d.documentElement; 
else{ 
if (d.body && 
typeof d.body.clientWidth == "number") 
r = d.body; 


function blcnff(){ 
var oh,sy,ow,sx,rh,rw; 
if (domWw){ 
if (d.documentElement && d.defaultView && 
typeof d.defaultView.scrollMaxY == "number"){ 
oh = d.documentElement.offsetHeight; 
sy = d.defaultView.scrollMaxY; 
ow = d.documentElement.offsetWidth; 
sx = d.defaultView.scrollMaxX; 
rh = oh-sy; 
rw = ow-sx; 

else{ 
rh = r.innerHeight; 
rw = r.innerWidth; 

h = rh; 
w = rw; 

else{ 
h = r.clientHeight; 
w = r.clientWidth; 


function scrl(yx){ 
var y,x; 
if (domSy){ 
y = r.pageYOffset; 
x = r.pageXOffset; 

else{ 
y = r.scrollTop; 
x = r.scrollLeft; 

return (yx == 0)?y:x; 

function mouse(e){ 
var msy = (domSy)?window.pageYOffset:0; 
if (!e) e = window.event; 
if (typeof e.pageY == 'number'){ 
my = e.pageY - msy; 
mx = e.pageX;} 
else{ 
my = e.clientY - msy; 
mx = e.clientX; 


function blcnsgg(){ 
var sy = scrl(0); 
var sx = scrl(1); 
var chy = Math.floor(fy-50); 
if (chy <= 0) chy = 0; 
if (chy >= h-50) chy = h-50; 
var chx=Math.floor(fx-34); 
if (chx <= 0) chx = 0; 
if (chx >= w-69) chx = w-69; 
var c1y = chy+17; 
var c1x = chx+17; 
var c2y = chy+17; 
var c2x = chx+52; 
var dy1 = my - c1y; 
var dx1 = mx - c1x;//80 
var d1 = Math.sqrt(dy1*dy1 + dx1*dx1); 
var dy2 = my - c2y; 
var dx2 = mx - c2x; 
var d2 = Math.sqrt(dy2*dy2 + dx2*dx2); 
var ay1 = my - c1y; 
var ax1 = mx - c1x; 
var angle1 = Math.atan2(ay1,ax1)*180/Math.PI; 
var ay2 = my - c2y; 
var ax2 = mx - c2x; 
var angle2 = Math.atan2(ay2,ax2)*180/Math.PI; 
var dv = 1.7; 
var onEyeBall1 = (d1 < 17)?d1/dv:10; 
var onEyeBall2 = (d2 < 17)?d2/dv:10; 
balcneedimg.top = chy+sy+pix; 
balcneedimg.left = chx+sx+pix; 
blcnimgmin.top = c1y-6+onEyeBall1*Math.sin(angle1*Math.PI/180)+sy+pix; 
blcnimgmin.left = c1x-6+onEyeBall1*Math.cos(angle1*Math.PI/180)+sx+pix; 
blcnimgmin2.top = c2y-6+onEyeBall2*Math.sin(angle2*Math.PI/180)+sy+pix; 
blcnimgmin2.left = c2x-6+onEyeBall2*Math.cos(angle2*Math.PI/180)+sx+pix; 

function balcnimg4(){ 
dy = fy += (my-fy) * 0.05; 
dx = fx += (mx-fx) * 0.05; 
blcnsgg(); 
setTimeout(balcnimg4,30); 


function blcndde(){ 
balcneedimg = document.getElementById("blcnvv"+balcnimg3).style; 
blcnimgmin = document.getElementById("balcnad"+balcnimg3).style; 
blcnimgmin2 = document.getElementById("balcnad2"+balcnimg3).style; 
blcnff(); 
balcnimg4(); 

if (window.addEventListener){ 
window.addEventListener("resize",blcnff,false); 
window.addEventListener("load",blcndde,false); 
document.addEventListener("mousemove",mouse,false); 

else if (window.attachEvent){ 
window.attachEvent("onresize",blcnff); 
window.attachEvent("onload",blcndde); 
document.attachEvent("balcnkk",mouse); 

})(); 

</script>

CODIGO PARA PONER BOTONES DE SUBIR Y BAJAR PAGINAS

IR ARRIBA

 

<a href='#'><img border='0' style='position:fixed; top:0; right:0;' src="URL de la imagen" title="Ir arriba" /></a> 

IR ABAJO

 

 <a href='#footer-wrapper'><img border='0' style='position:fixed; bottom:0; right:0;' src="URL de la imagen" title="Ir abajo" /></a>

MARIPOSA VOLANDO POR LA WEB

 

<script language="JavaScript1.2"><br />/*<br />Flying Butterfly script (By BGAudioDr@aol.com)<br />Modified slightly/ permission granted to Dynamic Drive to feature script in archive<br />For full source, visit http://www.dynamicdrive.com<br />*/<br /><br />var Ymax=8;                                //MAX # OF PIXEL STEPS IN THE "X" DIRECTION<br />var Xmax=8;                                //MAX # OF PIXEL STEPS IN THE "Y" DIRECTION<br />var Tmax=10000;                        //MAX # OF MILLISECONDS BETWEEN PARAMETER CHANGES<br /><br />//FLOATING IMAGE URLS FOR EACH IMAGE. ADD OR DELETE ENTRIES. KEEP ELEMENT NUMERICAL ORDER STARTING WITH "0" !!<br /><br />var floatimages=new Array();<br />floatimages[0]='http://www.ladylony.com/butterfly303.gif';<br />floatimages[1]='http://www.ladylony.com/butterfly303.gif';<br />floatimages[2]='http://www.ladylony.com/butterfly303.gif';<br />floatimages[3]='butterfly2.gif';<br />floatimages[4]='butterfly2.gif';<br /><br />//*********DO NOT EDIT BELOW***********<br />var NS4 = (navigator.appName.indexOf("Netscape")>=0 && parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5)? true : false;<br />var IE4 = (document.all)? true : false;<br />var NS6 = (parseFloat(navigator.appVersion) >= 5 && navigator.appName.indexOf("Netscape")>=0 )? true: false;<br />var wind_w, wind_h, t='', IDs=new Array();<br />for(i=0; i<floatimages.length; i++){<br />t+=(NS4)?'<layer name="pic'+i+'" visibility="hide" width="10" height="10"><a href="javascript:hidebutterfly()">' : '<div id="pic'+i+'" style="position:absolute; visibility:hidden;width:10px; height:10px"><a href="javascript:hidebutterfly()">';<br />t+='<img src="'+floatimages[i]+'" name="p'+i+'" border="0">';<br />t+=(NS4)? '</a></layer>':'</a></div>';<br />}<br />document.write(t);<br /><br />function moveimage(num){<br />if(getidleft(num)+IDs[num].W+IDs[num].Xstep >= wind_w+getscrollx())IDs[num].Xdir=false;<br />if(getidleft(num)-IDs[num].Xstep<=getscrollx())IDs[num].Xdir=true;<br />if(getidtop(num)+IDs[num].H+IDs[num].Ystep >= wind_h+getscrolly())IDs[num].Ydir=false;<br />if(getidtop(num)-IDs[num].Ystep<=getscrolly())IDs[num].Ydir=true;<br />moveidby(num, (IDs[num].Xdir)? IDs[num].Xstep :  -IDs[num].Xstep , (IDs[num].Ydir)?  IDs[num].Ystep:  -IDs[num].Ystep);<br />}<br /><br />function getnewprops(num){<br />IDs[num].Ydir=Math.floor(Math.random()*2)>0;<br />IDs[num].Xdir=Math.floor(Math.random()*2)>0;<br />IDs[num].Ystep=Math.ceil(Math.random()*Ymax);<br />IDs[num].Xstep=Math.ceil(Math.random()*Xmax)<br />setTimeout('getnewprops('+num+')', Math.floor(Math.random()*Tmax));<br />}<br /><br />function getscrollx(){<br />if(NS4 || NS6)return window.pageXOffset;<br />if(IE4)return document.body.scrollLeft;<br />}<br /><br />function getscrolly(){<br />if(NS4 || NS6)return window.pageYOffset;<br />if(IE4)return document.body.scrollTop;<br />}<br /><br />function getid(name){<br />if(NS4)return document.layers[name];<br />if(IE4)return document.all[name];<br />if(NS6)return document.getElementById(name);<br />}<br /><br />function moveidto(num,x,y){<br />if(NS4)IDs[num].moveTo(x,y);<br />if(IE4 || NS6){<br />IDs[num].style.left=x+'px';<br />IDs[num].style.top=y+'px';<br />}}<br /><br />function getidleft(num){<br />if(NS4)return IDs[num].left;<br />if(IE4 || NS6)return parseInt(IDs[num].style.left);<br />}<br /><br />function getidtop(num){<br />if(NS4)return IDs[num].top;<br />if(IE4 || NS6)return parseInt(IDs[num].style.top);<br />}<br /><br />function moveidby(num,dx,dy){<br />if(NS4)IDs[num].moveBy(dx, dy);<br />if(IE4 || NS6){<br />IDs[num].style.left=(getidleft(num)+dx)+'px';<br />IDs[num].style.top=(getidtop(num)+dy)+'px';<br />}}<br /><br />function getwindowwidth(){<br />if(NS4 || NS6)return window.innerWidth;<br />if(IE4)return document.body.clientWidth;<br />}<br /><br />function getwindowheight(){<br />if(NS4 || NS6)return window.innerHeight;<br />if(IE4)return document.body.clientHeight;<br />}<br /><br />function init(){<br />wind_w=getwindowwidth();<br />wind_h=getwindowheight();<br />for(i=0; i<floatimages.length; i++){<br />IDs[i]=getid('pic'+i);<br />if(NS4){<br />IDs[i].W=IDs[i].document.images["p"+i].width;<br />IDs[i].H=IDs[i].document.images["p"+i].height;<br />}<br />if(NS6 || IE4){<br />IDs[i].W=document.images["p"+i].width;<br />IDs[i].H=document.images["p"+i].height;<br />}<br />getnewprops(i);<br />moveidto(i , Math.floor(Math.random()*(wind_w-IDs[i].W)), Math.floor(Math.random()*(wind_h-IDs[i].H)));<br />if(NS4)IDs[i].visibility = "show";<br />if(IE4 || NS6)IDs[i].style.visibility = "visible";<br />startfly=setInterval('moveimage('+i+')',Math.floor(Math.random()*100)+100);<br />}}<br /><br />function hidebutterfly(){<br />for(i=0; i<floatimages.length; i++){<br />if (IE4)<br />eval("document.all.pic"+i+".style.visibility='hidden'")<br />else if (NS6)<br />document.getElementById("pic"+i).style.visibility='hidden'<br />else if (NS4)<br />eval("document.pic"+i+".visibility='hide'")<br />clearInterval(startfly)<br />}<br />}<br /><br />if (NS4||NS6||IE4){<br />window.onload=init;<br />window.onresize=function(){ wind_w=getwindowwidth(); wind_h=getwindowheight(); }<br />}<br /><br /></script><br /> <!--<br />     This script downloaded from www.JavaScriptBank.com<br />     Come to view and download over 2000+ free javascript at www.JavaScriptBank.com<br /> -->

PROBADOR DE CODIGOS