Welcome visitor
* Login
* Register
It is currently May 19th, 2019, 8:24 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  date
PostPosted: May 22nd, 2009, 8:27 am 
User avatar

Posts: 48
hi guys,

my question today is if i can and how to show the date on my site using html alone, is this possible at all? Thank you.


Top
 Profile  
 
  Re: date
PostPosted: May 22nd, 2009, 8:34 am 
User avatar

Posts: 137
<script type="text/javascript">
function ss(){
var f=Date();
document.getElementById('ccc').innerText=f;}
</script>
</head>
<body onload="ss();">
<div style="position: absolute; top:0px; right: 0px; color: #f0d; width: 120px; height: 18px" id="ccc"></div>

there you have it!
you need to use at least javascript though, cheers.


Top
 Profile  
 
  Re: date
PostPosted: May 22nd, 2009, 8:35 am 
User avatar

Posts: 48
thats fine, thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron