
<!-- Begin
//slider's width
var swidth=350

//slider's height
var sheight=72

//slider's speed
var sspeed=2

//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array()
singletext[0]='<div align="center"><font face=Arial size=3 color="white"><b>Scroll de texto multiple</b><br>Tamaño, Velocidad, Estilo <b>ajustable.</b><br>Este mensaje usa <b><u>Hyperlinks</u></b></div></FONT>'
singletext[1]='<div align="center"><font face=Arial size=3 color="white">Usalo para tus anuncios<br>e incluso para <font color="#FFFF00"><b><i>imagenes</i></b><p><img src="http://precios10.com/mundojavascript/logo_mundojavascript.gif" border="0"></font></div>'
singletext[2]='<div align="center"><font face=Arial size=3 color="white">¡Es un buen script!<br>Puedes usar <i>todos</i> los <br><b>codigos base de HTML</b></font></div>'
singletext[3]='<div align="center"><font face=Arial size=3 color="white"><b>MundoJavascript.com</b><br>Scripts listos para copiar y pegar<br>con <font color="red"><b>decenas</b></font> de javascripts de libre uso<p><img src="http://precios10.com/mundojavascript/logo_mundojavascript.gif" border="0"></font></div>'
if (singletext.length>1)
i=1
else
i=0
function start(){
if (document.all){
ieslider1.style.top=sheight
iemarquee(ieslider1)
}
else if (document.layers){
document.ns4slider.document.ns4slider1.top=sheight
document.ns4slider.document.ns4slider1.visibility='show'
ns4marquee(document.ns4slider.document.ns4slider1)
}
else if (document.getElementById&&!document.all){
document.getElementById('ns6slider1').style.top=sheight
ns6marquee(document.getElementById('ns6slider1'))
}
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
iediv.style.pixelTop=0
setTimeout("iemarquee(iediv)",100)
}
if (iediv.style.pixelTop>=sheight*-1){
iediv.style.pixelTop-=sspeed
setTimeout("iemarquee(iediv)",100)
}
else{
iediv.style.pixelTop=sheight
iediv.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
if (ns4layer.top>0&&ns4layer.top<=sspeed){
ns4layer.top=0
setTimeout("ns4marquee(ns4layer)",100)
}
if (ns4layer.top>=sheight*-1){
ns4layer.top-=sspeed
setTimeout("ns4marquee(ns4layer)",100)
}
else{
ns4layer.top=sheight
ns4layer.document.write(singletext[i])
ns4layer.document.close()
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
ns6div.style.top=0
setTimeout("ns6marquee(ns6div)",100)
}
if (parseInt(ns6div.style.top)>=sheight*-1){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6marquee(ns6div)",100)
}
else{
ns6div.style.top=sheight
ns6div.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}






function ventanaSecundaria (URL){
   window.open(URL,"ventana1","resizable=YES,fullscreen=YES,location=NO,statusbar=NO,menubar=NO,scrollbars=YES,toolbar=NO")
}





function ventanachat (URL){
   window.open(URL,"ventana1","width=800,height=500,scrollbars=NO")
}
 




var dias = new Array('Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes');
var meses = new Array('Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre');

function FechaNum(){
	var d, s = "";// Puedes cambiar esta cadena a tu antojo.
	d = new Date();
  	s += d.getDate()+ "/";
  	s += (d.getMonth() + 1) + "/";
  	s += d.getFullYear(); // Si se utiliza getYear(), da problemas en Netscape (toma el 00 como año 100 en vez de 2000).
  	return(s);
}

function FechaLetra(){
	var d, s = "";// Puedes cambiar esta cadena a tu antojo.
	d = new Date();
	s += d.getDate()+ " de ";
  	s += meses[d.getMonth()] + " de ";
  	s += d.getFullYear(); // Si se utiliza getYear(), da problemas en Netscape (toma el 00 como año 100 en vez de 2000).
  	return(s);
}


function Hora(){
	//Devuelve la hora actual en formato hh:mm:ss am/pm.
  	var d, s = "La hora actual es: ";
  	d = new Date();
  	hora = d.getHours();
  	minutos = d.getMinutes();
  	segundos = d.getSeconds();
  	s += ((hora > 12) ? hora-12 : hora);
  	s += ((minutos < 10) ?  ":0" : ":") + minutos;
  	s += ((segundos < 10) ? ":0" : ":") + segundos;
  	s += (hora > 12) ? " pm" : " am";
  	return(s);
}



















var slideCache = new Array();
function RunSlideShow(pictureName,imageFiles,displaySecs)
{
var imageSeparator = imageFiles.indexOf(";");
var nextImage = imageFiles.substring(0,imageSeparator);
if (document.all)
{
document.getElementById(pictureName).style.filter="blendTrans(duration=0.5)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = nextImage;
if (document.all)
{
document.getElementById(pictureName).filters.blendTrans.Play();
}
var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)
+ ';' + nextImage;
setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")",
displaySecs*350);
// Cache the next image to improve performance.
imageSeparator = futureImages.indexOf(";");
nextImage = futureImages.substring(0,imageSeparator);
if (slideCache[nextImage] == null) {
slideCache[nextImage] = new Image;
slideCache[nextImage].src = nextImage;
}
}





