PDA

Ver la versión completa : nuevo reloj



darkness13
15/10/2008, 03:12
aqui les dejo un nuevo reloj para xat o web solo copien el codigo y agregelo suerte



<SCRIPT language=javascript>
function mOvr(src,clrOver){
if (!src.contains(event.fromElement)){
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}
function mOut(src,clrIn){
if (!src.contains(event.toElement)){
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src){
if(event.srcElement.tagName=='TD')
src.children.tags('A')[0].click();
}
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Clock</TITLE>
<BODY bgColor="#ffffff"onload="return window_onload()"onunload="return window_onunload()"marginheight="0"topmargin="0"leftmargin="0"marginwidth="0">
<SCRIPT>
var ClockTicks="";
var LocalTimerNormalBackground="#FFFFFF";
var LocalTimerHighlightBackground="#FF0000";
var HighlightPointer="default";
function StartClocks(){
if(ClockTicks==""){
ClockTicks=window.setInterval("PutTime()",1000);
}
else{
StopClocks();
}
}
function StopClocks(){
if(ClockTicks!=""){
window.clearInterval(ClockTicks);
ClockTicks="";
}
}
function PutTime(){
var LocalDate=new Date();
var LocalHours=LocalDate.getHours() + "";
var LocalMinutes=LocalDate.getMinutes() + "";
var LocalSeconds=LocalDate.getSeconds() + "";
if(LocalHours.length==1){
LocalHours="0"+ LocalHours;
}
if(LocalMinutes.length==1){
LocalMinutes="0"+ LocalMinutes;
}
if(LocalSeconds.length==1){
LocalSeconds="0"+ LocalSeconds;
}
LocalTimer.innerHTML=LocalHours + ":"+ LocalMinutes + ":"+ LocalSeconds;
LocalTimer.title="LOCAL: "+ LocalDate.toLocaleString();
}
</SCRIPT>
<SCRIPT ID="clientEventHandlersJS"LANGUAGE="javascript">
<!--
function window_onload() {
StartClocks();
}
function window_onunload() {
StopClocks();
}
function LocalTimer_onmouseout() {
LocalTimer.style.backgroundColor=LocalTimerNormalB ackground;
}
function LocalTimer_onmouseover() {
LocalTimer.style.backgroundColor=LocalTimerHighlig htBackground;
}
//-->
</SCRIPT>
</HEAD>
<FONT size = "4"align = right color = firebrick>
<!-- To use With asp page -->
<%
Dim a
a=date()
Response.Write FormatDateTime(a,1)
%>
Hora:
<span ID="LocalTimer"style="COLOR: #0000ff;CURSOR: default"LANGUAGE="javascript"></span></FONT>
</BODY>
</HTML>

Zaiter
07/02/2009, 12:12
Oie pero esos tipos de cosas .. de decorar el xat nu lagea el xat... a??
http://img201.imageshack.us/img201/5314/16i5s31kg7.png