Elige Cualquier Gif & Has Que Caiga Como Lluvia En Tu Blog:
Diseño / Añadir Un Gadget / HTML/javascript

Diseño / Añadir Un Gadget / HTML/javascript

<script language='javascript' type='text/javascript'>//<![CDATA[// Script original de Eloi Gallés Villaplanavar numero = 10var velocidad = 40var imagenamor = "http://i1221.photobucket.com/albums/dd461/kawaii_annyz/13-1.png"var ns4arriba = (document.layers) ? 1 : 0var ie4arriba = (document.all) ? 1 : 0var dombrowser = (document.getElementById) ? 1 : 0var dx, xp, ypvar am, stx, styvar i, doc_ancho = 1024, doc_alto = 768function amor() {establece_dimensiones()dx = new Array()xp = new Array()yp = new Array()am = new Array()stx = new Array()sty = new Array();for (i = 0; i < numero; ++ i) {dx[i] = 0xp[i] = Math.random()*(doc_ancho-50)yp[i] = Math.random()*doc_altoam[i] = Math.random()*20stx[i] = 0.02 + Math.random()/10sty[i] = 0.7 + Math.random()if (document.layers) {if (i == 0) {document.write("<layer name=\"dot"+ i +"\" left=\"15\" ")document.write("top=\"15\" visibility=\"show\"><img src=\"")document.write(imagenamor + "\" border=\"0\"></layer>")} else {document.write("<layer name=\"dot"+ i +"\" left=\"15\" ")document.write("top=\"15\" visibility=\"show\"><img src=\"")document.write(imagenamor + "\" border=\"0\"></layer>")}} else if (document.all || document.getElementById) {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(imagenamor + "\" 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(imagenamor + "\" border=\"0\"></div>")}}}corazon()}function corazon() {for (i = 0; i < numero; ++ i) {yp[i] += sty[i];if (yp[i] > doc_alto) {xp[i] = Math.random()*(doc_ancho-am[i]-30)yp[i] = 0stx[i] = 0.02 + Math.random()/10sty[i] = 0.7 + Math.random()establece_dimensiones()}dx[i] += stx[i];if ( document.all ) {var imagen = eval("dot" + i )imagen.style.posLeft = xp[i] + am[i]*Math.sin(dx[i])imagen.style.posTop = yp[i]}else if ( document.layers ) {var imagen = eval("document.dot" + i)imagen.left = xp[i] + am[i]*Math.sin(dx[i])imagen.top = yp[i]}else if ( document.getElementById ) {var imagen = document.getElementById( "dot" + i)imagen.style.left = xp[i] + am[i]*Math.sin(dx[i]) + 'px'imagen.style.top = yp[i] + 'px'}}setTimeout("corazon()", velocidad)}function establece_dimensiones() {if (self.innerHeight) {doc_ancho = self.innerWidth - 50doc_alto = self.innerHeight - 21} else if (document.documentElement && document.documentElement.clientHeight) {doc_ancho = document.documentElement.clientWidthdoc_alto = document.documentElement.clientHeight - 25} else if (document.body) {doc_ancho = document.body.clientWidthdoc_alto = document.body.clientHeight - 25}}//]]></script><script language='javascript' type='text/javascript'>amor()</script>
Donde Se Resalta Coloca La Imagen Deseada.
var imagenamor = "URL DE TU GIF"
En El Código El Gif Que Coloque Es El Corazón Rojo.
Saluditos De Colores.
n.n, interesante muchas gracias por el dato, tiene s un blog hermoso, me gustaria poder afiliarnos, te estare visitando muy seguido, cuidate, besotes y nalgaditas.
ResponderEliminarYa corregí el tutorial de el redondeado de las esquinas en las imágenes.
ResponderEliminarhttp://pinkcotton-candy.blogspot.com/
Por cierto, tu c-box se ve sólo la mitad O_O
ResponderEliminar