|
Codigo párr poner saludo segun la hora del dia
(lo pegas en casa o en texto Por Encima de la pagina)
<Font size=2 face=arial><b> <br /> <Script Language="JavaScript"> <br /> <!-- <br /> today = new Date() <br /> if(today.getMinutes() < 10){ <br /> pad = "0"} <br /> else <br /> pad = ""; <br /> document.write ;if((today.getHours() >=6) && (today.getHours() <=9)){ <br /> document.write("¡Buen día!") <br /> } <br /> if((today.getHours() >=10) && (today.getHours() <=11)){ <br /> document.write("¡Buen día!") <br /> } <br /> if((today.getHours() >=12) && (today.getHours() <=19)){ <br /> document.write("¡Buenas tardes!") <br /> } <br /> if((today.getHours() >=20) && (today.getHours() <=23)){ <br /> document.write("¡Buenas noches!") <br /> } <br /> if((today.getHours() >=0) && (today.getHours() <=3)){ <br /> document.write("¡Buenas noches!") <br /> } <br /> if((today.getHours() >=4) && (today.getHours() <=5)){ <br /> document.write("¡Buenas noches!") <br /> } <br /> // --> <br /> </script> <br /> </b></font>
|
Codigo párr poner Frase de serpiente Que Sigue al ratón
(lo pegas en texto Por Debajo de la pagina)
<style>
.animado {position:absolute;visibility:visible;top:-50px;font-size:10pt;font-family:Arial;font-weight:bold;color:Blak;}
</style>
<script language=JavaScript>
var x,y
var tempo=10
var espera=0
var texto=" Coloca el texto aquí "
texto=texto.split("")
var xpos=new Array()
for (i=0;i<=texto.length-1;i++) {
xpos[i]=-50
}
var ypos=new Array()
for (i=0;i<=texto.length-1;i++) {
ypos[i]=-50
}
function seguir(e){
x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
espera=1
}
function animar_cursor() {
if (espera==1 && document.all) {
for (i=texto.length-1; i>=1; i--) {
xpos[i]=xpos[i-1]+tempo
ypos[i]=ypos[i-1]
}
xpos[0]=x+tempo
ypos[0]=y
for (i=0; i<texto.length-1; i++) {
var camada = eval("span"+(i)+".style")
camada.posLeft=xpos[i]
camada.posTop=ypos[i]
}
}
else if (espera==1 && document.layers) {
for (i=texto.length-1; i>=1; i--) {
xpos[i]=xpos[i-1]+tempo
ypos[i]=ypos[i-1]
}
xpos[0]=x+tempo
ypos[0]=y
for (i=0; i<texto.length-1; i++) {
var camada = eval("document.span"+i)
camada.left=xpos[i]
camada.top=ypos[i]
}
}
var timer=setTimeout("animar_cursor()",30)
}
</script>
<script Language=JavaScript>
for (i=0;i<=texto.length-1;i++) {
document.write("<span id='span"+i+"' class='animado'>")
document.write(texto[i])
document.write("</span>")
}
if (document.layers){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = seguir;
animar_cursor()
</script>
|
párr Codigo poner el cursor en forma de mira
(lo pegas en texto Por Debajo de la pagina)
<style>
<!--
#leftright, #topdown{
position:absolute;
left:0;
top:0;
width:1px;
height:1px;
layer-background-color:black;
background-color:black;
z-index:100;
font-size:1px;
}
-->
</style>
<div id="leftright" style="width:expression(document.body.clientWidth-2)"></div>
<div id="topdown" style="height:expression(document.body.clientHeight-2)"></div>
<script language="JavaScript1.2">
<!--
/*
Document crosshair Script-
By Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more free DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
if (document.all&&!window.print){
leftright.style.width=document.body.clientWidth-2
topdown.style.height=document.body.clientHeight-2
}
else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}
function followmouse1(){
//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientX<document.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
}
function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
}
if (document.all)
document.onmousemove=followmouse1
else if (document.layers){
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2
}
function regenerate(){
window.location.reload()
}
function regenerate2(){
setTimeout("window.onresize=regenerate",400)
}
if ((document.all&&!window.print)||document.layers)
//if the user is using IE 4 or NS 4, both NOT IE 5+
window.onload=regenerate2
//-->
</script>
|
Codigo párr poner texto de fuego en tu web
(lo pegas Donde Quieras)
<script>
function ShadowWave()
{
if(document.getElementById && window.print)
{
var dir=Math.random();
if (dir<.1) {dir=90}
if (dir<.37) {dir=45}
if (dir<.64) {dir=315}
if (dir<.74) {dir=270}
if (dir<2) {dir=0}
document.getElementById("ejs_brouille").style.filter="shadow(color=#FFCC00,direction="+dir+",enabled=1)";
}
}
</script>
<DIV ID="ejs_brouille">
<font face="Verdana, Arial, Helvetica, sans-serif" size="5"><strong>Texto de ejemplo</strong></font></DIV>
<script>
setInterval("ShadowWave()",50);
</script>
|
Codigo párr poner texto en tu web Rotativo
(lo pegas Donde Quieras)
<script>
Phrase="AQUI PON TU TEXTO QUE QUIERAS"
Balises=""
Taille=25;
Midx=-50;
Decal=0.25;
Nb=Phrase.length;
y=-500;
for (x=0;x<Nb;x++){
Balises=Balises + '<DIV>' + Phrase.charAt(x) + '</DIV>'
}
document.write (Balises);
Time=window.setInterval("Alors()",35);
Alpha=5;
I_Alpha=0.05;
function Alors(){
Alpha=Alpha-I_Alpha;
for (x=0;x<Nb;x++){
Alpha1=Alpha+Decal*x;
Cosine=Math.cos(Alpha1);
Ob=document.all("L"+x);
Ob.style.posLeft=Midx+100*Math.sin(Alpha1)+600;
Ob.style.zIndex=10*Cosine;
Ob.style.fontSize=Taille+1*Cosine;
Ob.style.color="rgb("+ (99+Cosine*99+11) + ","+ (11+Cosine*11+00) + ",99)";
}
}
</script> |
Codigo párr poner texto Estelar
(lo pegas en Donde Quieras)
<span id="theText">
<h3><font color="#3a6ca3"><font size="+5">AQUI PON TU TEXTO QUE QUIERAS</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> 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> 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> 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>
|
|
|