Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/12/2006, 19:48
minichivi
 
Fecha de Ingreso: diciembre-2006
Mensajes: 1
Antigüedad: 17 años, 5 meses
Puntos: 0
Dos Javascripts a la vez no me funcionan

Tengo el siguiente codigo Javascript:

<body class="agenda">
<h3>???</h3>
<p id="liveclock" style="color:#D99C59;text-align:right;margin:0em 6em;"></p>
<h5>
//->Este script es un reloj
<script language="JavaScript">
<!--
function show5()
{
if (!document.layers&&!document.all&&!document.getEle mentById)
return

var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()

if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here to your desire
myclock="<font size='2'><b></br>"+hours+":"+minutes+":"
+seconds+" "+"</b></font>"
if (document.layers){
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if (document.all)
liveclock.innerHTML=myclock
else if (document.getElementById)
document.getElementById("liveclock").innerHTML=myc lock
setTimeout("show5()",1000)
}

window.onload=show5

//-->

</script>
<a href="index.html">Inicio</a> <a href="agenda.html">Agenda</a> <a href="galeria.html">&quot;Galer&iacute;a&quot;</a> <a href="la carta.html">La-Carta</a> <span class="actual">&quot;Quines-Somos&quot;</span> </h5>
<div class="google" id="map"></div>

//->Este script es del google maps
<p>
<script type="text/javascript">
//<![CDATA[

window.onload = showMap;
function showMap()
{
var map = new GMap(document.getElementById("map"));
//map.addControl(new GSmallMapControl());
map.setMapType(G_HYBRID_TYPE);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.centerAndZoom(new GPoint(-0.360000,35.000000), 0);
map.addOverlay(new GMarker(new GPoint(-0.360000,39.000000)));


}
//]]>

</script>

</p>
<p>&nbsp;</p>
<p>Hola<br />
</body>

Si pongo solamente el reloj me funciona bien, si pongo el script del google el reloj desaparece

aber si alguien me puede decir una solucion, xq la verdad no soy muy experto en este tema

Gracias y un saludo