Jump to content
Sign in to follow this  
InsertNumLock

Klokke-Script i Signatur

Recommended Posts

Var innom et forum engang, der hvor noen av brukerene hadde en klokke i signaturen. Søkte litt på Google og fant en kode. Men jeg får ikke til å få klokka til å vise i signaturen min. Kunne noen av dere forklare meg hvordan jeg skal få det til, om det i det hele tatt er mulig å ha den i signaturen.

 

<BODY>

 

<form name="Tick">

<input type="text" size="11" name="Clock">

</form>

<body onLoad="show2()">

<span id=tick2>

</span>

 

<script>

<!--

/*By George Chiang (WA's JavaScript tutorial)

http://wsabstract.com

Credit MUST stay intact for use*/

function show2(){

if (!document.all)

return

var Digital=new Date()

var hours=Digital.getHours()

var minutes=Digital.getMinutes()

var seconds=Digital.getSeconds()

var dn="AM"

if (hours>12){

dn="PM"

hours=hours-12

}

if (hours==0)

hours=12

if (minutes<=9)

minutes="0"+minutes

if (seconds<=9)

seconds="0"+seconds

var ctime=hours+":"+minutes+":"+seconds+" "+dn

tick2.innerHTML="<b style='font-size:16;color:black;'>"+ctime+"</b>"

setTimeout("show2()",1000)

}

//-->

</script>

</BODY>

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...