Algún alma caritativa puede decirme cómo puedo modificar el color de los caracteres de este script para mostrar la hora (va sobre fondo azul oscuro y en negro no se ve bien) y su posición (para que se vea a continuacion de la fecha y no debajo):
<script languaje="javascript>
//Insert these lines in that place of page, where there should be clocks.
//---- Choice of variables ----\\
fon_size=2
fon_famil="Arial Narrow"
fon_width=7
//---------The description---------\\
/*
fon_size (3) - Parameter "SIZE" for tag <FONT> (1...7)
fon_famil ("Arial Narrow") - Parameter "FACE" for tag <FONT> ("Arial Narrow")
fon_width (5) = Distance between symbols (0)
*/
//----------------------------------\\
//This and others free scripts you can find on a site: artdhtml.com
//The script works both with Internet Explorer and with Netscape.
var ns=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
function tab_wri(nam_tab)
{
if(!ns)
{
document.write ("<DIV style='position:relative; left:0; top:0; width:"+(fon_width)+"'>")
for (i=0; i<10; i++){document.write ("<DIV style='position:absolute; left:0; top:0; visibility:hidden ' ID='tab"+nam_tab+"_n"+i+"'><font face="+fon_famil+" size="+fon_size+">"+i+"</font></DIV>")}
document.write ("</DIV>")
}
else
{
document.write ("<ilayer id='ilay"+nam_tab+"'>")
for (i=0; i<10; i++){document.write("<layer visibility=hide ID='lay"+nam_tab+"_n"+i+"'><font face="+fon_famil+" size="+fon_size+" color="+fon_col+">"+i+"</font></layer>")}
document.write ("</ilayer>")
}
}
function see_num(nam_tab,num_tab)
{
if(ie4)
{
for(i=0; i<10; i++)
{
if(i==num_tab){document.all["tab"+nam_tab+"_n"+num_tab].style.visibility="visible"}
else{document.all["tab"+nam_tab+"_n"+i].style.visibility="hidden"}
}
}
if(ns)
{
for(i=0; i<10; i++)
{
if(i==num_tab){document.layers["ilay"+nam_tab].document.layers["lay"+nam_tab+"_n"+num_tab].visibility="show"}
else{document.layers["ilay"+nam_tab].document.layers["lay"+nam_tab+"_n"+i].visibility="hide"}
}
}
if(ns6)
{
for(i=0; i<10; i++)
{
if(i==num_tab){document.getElementById("tab"+nam_t ab+"_n"+num_tab).style.visibility="visible"}
else{document.getElementById("tab"+nam_tab+"_n"+i) .style.visibility="hidden"}
}
}
}
sec_old="0"
function see_tim()
{
date_=new Date()
wr_s=date_.getSeconds()+""
if(sec_old==wr_s){return}
sec_old=wr_s
wr_h=date_.getHours()+""
wr_m=date_.getMinutes()+""
if (wr_h.length==2){see_num(1,wr_h.charAt(0)); see_num(2,wr_h.charAt(1))}
else{see_num(1,0); see_num(2,wr_h.charAt(0))}
if (wr_m.length==2){see_num(3,wr_m.charAt(0)); see_num(4,wr_m.charAt(1))}
else{see_num(3,0); see_num(4,wr_m.charAt(0))}
if (wr_s.length==2){see_num(5,wr_s.charAt(0)); see_num(6,wr_s.charAt(1))}
else{see_num(5,0); see_num(6,wr_s.charAt(0))}
}
document.write ("<table border=0 cellpadding=0 cellspacing=0><tr valign=top><td>")
tab_wri(1)
document.write ("</td><td>")
tab_wri(2)
document.write ("</td><td><font face="+fon_famil+" size="+fon_size+">:</font>")
document.write ("</td><td>")
tab_wri(3)
document.write ("</td><td>")
tab_wri(4)
document.write ("</td><td><font face="+fon_famil+" size="+fon_size+">:</font>")
document.write ("</td><td>")
tab_wri(5)
document.write ("</td><td>")
tab_wri(6)
document.write ("</td></tr></table>")
see_tim()
tim_int=window.setInterval("see_tim()",200)
</script>
He probado esto pero no me funciona:
<script languaje="javascript>
//Insert these lines in that place of page, where there should be clocks.
//---- Choice of variables ----\\
fon_size=2
fon_famil="Arial Narrow"
fon_width=7
fon_col="#ffffff"
//---------The description---------\\
/*
fon_size (3) - Parameter "SIZE" for tag <FONT> (1...7)
fon_famil ("Verdana") - Parameter "FACE" for tag <FONT> ("Arial Narrow")
fon_width (5) = Distance between symbols (0)
*/
//----------------------------------\\
//This and others free scripts you can find on a site: artdhtml.com
//The script works both with Internet Explorer and with Netscape.
var ns=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
function tab_wri(nam_tab)
{
if(!ns)
{
document.write ("<DIV style='position:relative; left:0; top:0; width:"+(fon_width)+"'>")
for (i=0; i<10; i++){document.write ("<DIV style='position:absolute; left:0; top:0; visibility:hidden ' ID='tab"+nam_tab+"_n"+i+"'><font face="+fon_famil+" size="+fon_size+" color="+fon_col+">"+i+"</font></DIV>")}
document.write ("</DIV>")
}
else
{
document.write ("<ilayer id='ilay"+nam_tab+"'>")
for (i=0; i<10; i++){document.write("<layer visibility=hide ID='lay"+nam_tab+"_n"+i+"'><font face="+fon_famil+" size="+fon_size+" color="+fon_col+">"+i+"</font></layer>")}
document.write ("</ilayer>")
}
}
function see_num(nam_tab,num_tab)
{
if(ie4)
{
for(i=0; i<10; i++)
{
if(i==num_tab){document.all["tab"+nam_tab+"_n"+num_tab].style.visibility="visible"}
else{document.all["tab"+nam_tab+"_n"+i].style.visibility="hidden"}
}
}
if(ns)
{
for(i=0; i<10; i++)
{
if(i==num_tab){document.layers["ilay"+nam_tab].document.layers["lay"+nam_tab+"_n"+num_tab].visibility="show"}
else{document.layers["ilay"+nam_tab].document.layers["lay"+nam_tab+"_n"+i].visibility="hide"}
}
}
if(ns6)
{
for(i=0; i<10; i++)
{
if(i==num_tab){document.getElementById("tab"+nam_t ab+"_n"+num_tab).style.visibility="visible"}
else{document.getElementById("tab"+nam_tab+"_n"+i) .style.visibility="hidden"}
}
}
}
sec_old="0"
function see_tim()
{
date_=new Date()
wr_s=date_.getSeconds()+""
if(sec_old==wr_s){return}
sec_old=wr_s
wr_h=date_.getHours()+""
wr_m=date_.getMinutes()+""
if (wr_h.length==2){see_num(1,wr_h.charAt(0)); see_num(2,wr_h.charAt(1))}
else{see_num(1,0); see_num(2,wr_h.charAt(0))}
if (wr_m.length==2){see_num(3,wr_m.charAt(0)); see_num(4,wr_m.charAt(1))}
else{see_num(3,0); see_num(4,wr_m.charAt(0))}
if (wr_s.length==2){see_num(5,wr_s.charAt(0)); see_num(6,wr_s.charAt(1))}
else{see_num(5,0); see_num(6,wr_s.charAt(0))}
}
document.write ("<table border=0 cellpadding=0 cellspacing=0><tr valign=top><td>")
tab_wri(1)
document.write ("</td><td>")
tab_wri(2)
document.write ("</td><td><font face="+fon_famil+" size="+fon_size+" color="+fon_col+">:</font>")
document.write ("</td><td>")
tab_wri(3)
document.write ("</td><td>")
tab_wri(4)
document.write ("</td><td><font face="+fon_famil+" size="+fon_size+" color="+fon_col+">:</font>")
document.write ("</td><td>")
tab_wri(5)
document.write ("</td><td>")
tab_wri(6)
document.write ("</td></tr></table>")
see_tim()
tim_int=window.setInterval("see_tim()",200)
</script>
Tengo cierta urgencia y agradecería mucho cualquier sugerencia.
Salu2
Rubén