You are on page 1of 7

Código en las cabeceras (head) de la página

<script type="text/javascript">
<!-- inicio
saltos=10; rojo=240; verde=240; azul=240; posver=250; posizq=500; num=0;
function colorear() {
ancho = screen.width;
if (ancho < 1024) {posver=300} else {posver=250};
coloreando() }
function coloreando() {
if (posizq>30) { posizq-=saltos;
document.getElementById("texto-"+num).style.left=posizq+"px";
document.getElementById("texto-"+num).style.top=posver+(15*num)+"px";
rojo-=1; verde-=2; azul-=3;
document.getElementById("texto-"+num).style.color="rgb("+rojo+","+verde+","+azul
+")";
setTimeout("coloreando()",10); }
else { rojo+=15; verde+=15; azul+=30; posizq=500; if(num < 7) { num++; setTimeou
t("coloreando()",100); } } }
// final -->
</script>
<style type="text/css">
div.int01 {position:absolute; left:500px; color:#CCCCCC}
</style>
Código en el cuerpo (body) de la página
<body onload="colorear()">
<div id="texto-0" class="int01">Texto en movimiento:</div>
<div id="texto-1" class="int01">Este texto se mueve</div>
<div id="texto-2" class="int01">de derecha a izquierda</div>
<div id="texto-3" class="int01">mientras cambia de tono.</div>
<div id="texto-4" class="int01">¿ Aplicaciones ?</div>
<div id="texto-5" class="int01">Todas las que precisen</div>
<div id="texto-6" class="int01">imaginación y diseño.</div>
<div id="texto-7" class="int01"><a href="http://www.begues.net">Juan Rodríguez [
Consultor]</a></div>

<!-- Mas scripts en http://www.creatupropiaweb.com -->


<script language="JavaScript1.1">
var specifyimage=new Array() //Your images
specifyimage[0]="boy4.gif"
specifyimage[1]="boy5.gif"
specifyimage[2]="boy6.gif"
var delay=3000 //3 seconds
//Counter for array
var count =1;
var cubeimage=new Array()
for (i=0;i<specifyimage.length;i++){
cubeimage[i]=new Image()
cubeimage[i].src=specifyimage[i]
}
function movecube(){
if (window.createPopup)
cube.filters[0].apply()
document.images.cube.src=cubeimage[count].src;
if (window.createPopup)
cube.filters[0].play()
count++;
if (count==cubeimage.length)
count=0;
setTimeout("movecube()",delay)
}
window.onload=new Function("setTimeout('movecube()',delay)")
</script>
<img src="boy4.gif" name="cube" border=0 style="filter:progid:DXImageTransform.
Microsoft.Stretch(stretchStyle='PUSH')">

<font face="Arial, Helvetica, sans-serif" size="2">


<script language="JavaScript">
<!-- Mas scripts en http://www.creatupropiaweb.com -->
var timerID = null
var timerRunning = false
var charNo = 0
var charMax = 0
var lineNo = 0
var lineMax = 3
var lineArr = new Array(lineMax)
var urlArr = new Array(lineMax)
lineArr[1] = "Crea tu propia WEB"
urlArr[1] = "http://www.creatupropiaweb.com"
lineArr[2] = "Los Codigos Web"
urlArr[2] = "http://www.iespana.es/LosCodigosWeb/"
lineArr[3] = "La web del Albañil"
urlArr[3] = "http://es.geocities.com/juha_web/index.htm"
var lineText = lineArr[1]
function StartShow() {
StopShow()
ShowLine()
timerRunning = true
}
function FillSpaces() {
for (var i = 1; i <= lineWidth; i++) {
spaces += " "
}
}
function StopShow() {
if (timerRunning) {
clearTimeout(timerID)
timerRunning = false
}
}
function ShowLine() {
if (charNo == 0) {
if (lineNo < lineMax) {
lineNo++
}
else {
lineNo = 1
}
lineText = lineArr[lineNo]
charMax = lineText.length
}
if (charNo <= charMax) {
document.formDisplay.buttonFace.value = lineText.substring(0, charNo)
charNo++
timerID = setTimeout("ShowLine()", 100)
}
else {
charNo = 0
timerID = setTimeout("ShowLine()", 3000)
}
}
function GotoUrl(url)
{
top.location.href = url
}
document.write("<form name=\"formDisplay\">");
document.write("<input type=\"button\" name=\"buttonFace\" value=\"&{lineText}\"
size=\"18\" onClick=\"GotoUrl(urlArr[lineNo])\">");
document.write("</form>");
StartShow();
</script></font>

<mas scripts en www.creatupropiaweb.com><script language="JavaScript"><!--


//Rainbow Links
var ok=100 //delay time in milliseconds
//Do not modify anything below this line.
var color=0
function rain()
{
color=color+1;
if(color==1){document.linkColor='red';}
if(color==1){document.vlinkColor='red';}
if(color==1){document.alinkColor='red'; setTimeout("rain();",ok);}
if(color==2){document.linkColor='orange';}
if(color==2){document.vlinkColor='orange';}
if(color==2){document.alinkColor='orange'; setTimeout("rain();",ok);}
if(color==3){document.linkColor='yellow';}
if(color==3){document.vlinkColor='yellow';}
if(color==3){document.alinkColor='yellow'; setTimeout("rain();",ok);}
if(color==4){document.linkColor='green';}
if(color==4){document.vlinkColor='green';}
if(color==4){document.alinkColor='green'; setTimeout("rain();",ok);}
if(color==5){document.linkColor='blue';}
if(color==5){document.vlinkColor='blue';}
if(color==5){document.alinkColor='blue'; setTimeout("rain();",ok);}
if(color==6){document.linkColor='A209F4';}
if(color==6){document.vlinkColor='A209F4';}
if(color==6){document.alinkColor='A209F4'; setTimeout("rain();",ok);}
if(color==7){document.linkColor='purple';}
if(color==7){document.vlinkColor='purple';}
if(color==7){document.alinkColor='purple'; setTimeout("rain();",ok);}
if(color==8){document.linkColor='pink';}
if(color==8){document.vlinkColor='pink';}
if(color==8){document.alinkColor='pink'; setTimeout("rain();",ok);}
if(color==9){color=0; setTimeout("rain();",ok);}
}
setTimeout("rain();",ok);
// --></script>
<a href="http://www.creatupropiaweb.com">Javascripts</a> <br>
<a href="http://www.creatupropiaweb.com">creatupropiaweb</a><br>
<a href="http://www.creatupropiaweb.com">Juegos</a>
<!-- Simba says Roar. -->

<CENTER><SCRIPT LANGUAGE="JAVASCRIPT">
<!-- Begin Digital Watch
document.write('<!-- Begin Hiding Script -->')
/*
######################################################################
################ SCRIPT BY BURNBLADE #####################
################ Visit My Site At #####################
################ http://www.burning.net #####################
################ © copywrite 1997 #####################
modificado por www.creatupropiaweb.com
This script may be used as long as the above lines are not changed
in any way.
*/
var watchID = null
var watchRun = false
function stopwatch(){
if(watchRun)
clearTimeout(watchID)
watchRun = false
}
function startwatch(){
stopwatch()
dayTime()
}
function dayTime() {
day = new Date();
hour = day.getHours();
minute = day.getMinutes();
second = day.getSeconds();
if (hour > 12) {
hours = hour - 12;
part = 'Del Dia'}
else {
part = 'De la Noche';
if (hour == 0) {
hours = 12
}
else {
hours = hour
}
}
if (minute < 10) {minutes = 0}
else {minutes = ""}
if (second < 10) {seconds = 0}
else {seconds =""}
date = ('' +"Mes "+(day.getMonth() + 1)+" Dia "+day.getDate()+ " del año
"+day.getYear()+ '');
time = ('' + hours + ":"+minutes+""+minute+ ":"+seconds+""+second+ '')
parts = ('' +part+ '')
document.timedate.time.value = time
document.timedate.date.value = date
document.timedate.parts.value = parts
watchID = setTimeout("dayTime()",1000)
watchRun = true
}
document.write('<!-- End Hiding Script -->')
// End Digital Watch-->
</script>
<BODY onLoad="startwatch()">
<form name="timedate" onSubmit="0">
<table cellspacing=0 cellpadding=0>
<tr align=center>
<td><INPUT TYPE="text" NAME="time" SIZE=6 VALUE ="..Starti"></td>
<td><INPUT TYPE="text" NAME="parts" SIZE=12 VALUE ="ng.."></td>
<td colspan=2><INPUT TYPE="text" NAME="date" SIZE=28 VALUE ="........"></td>
</tr>
</table>
</form></CENTER>
<!-- Simba says Roar. -->

<script language="JavaScript1.2">var delay=3000 //pausa (en milisegundos)


var fcontent=new Array()
begintag='<font face="Arial" size=2>' //tag que abre los mensajes
fcontent[0]="<b></b><br><br>Crea tu propia pagina personal."
fcontent[1]="Monta tu pagina con FrontPage Express , veras que es muy facil."
fcontent[2]="En estas paginas encontraras los recursos y la manera de poder real
izarlo de forma muy sencilla."
closetag='</font>'
var fwidth=150 //ancho
var fheight=150 //alto
///No editar/////////////////
var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0
if (DOM2)
faderdelay=2000
//function to change content
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color="rgb(255,255,255)"
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[i
ndex]+closetag)
document.fscrollerns.document.fscrollerns_sub.document.close()
}
index++
setTimeout("changecontent()",delay+faderdelay)
}
// colorfade() partially by Marcio Galli for Netscape Communications. /////////
///
frame=20;
hex=255 // Initial color value.
function colorfade() {
// 20 frames fading process
if(frame>0) {
hex-=10; // increase color value
document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")";
// Set color value.
frame--;
setTimeout("colorfade()",20);
}
else{
document.getElementById("fscroller").style.color="rgb(255,0,0)";
frame=20;
hex=255
}
}
if (ie4||DOM2)
document.write('<div id="fscroller" style="border:1px solid ;width:'+fwidth+';he
ight:'+fheight+';padding:2px"></div>')
window.onload=changecontent</script><ilayer id="fscrollerns" width=&{fwidth}; he
ight=&{fheight};><layer id="fscrollerns_sub" width=&{fwidth}; height=&{fheight};
left=0 top=0></layer></ilayer>

You might also like