1
shansta22
Date / Time
  • 2005/2/24 17:04

  • shansta22

  • Just popping in

  • Posts: 38

  • Since: 2005/2/13


Hello,
I want to add the date time to my theme but for some reason i cannot get it to work, smarty or a live java clock/date. After searching for an hour and mucking around with the theme I give up.. I am using filthy_blue theme..

I want to display a date/clock like:

Feb 25 11.00am

Can someone help me out please?

cheers,
Shan

2
gnowell
Re: Date / Time
  • 2005/3/1 18:34

  • gnowell

  • Just popping in

  • Posts: 9

  • Since: 2004/7/2 4


The 7dana-soft theme, which is the default theme here, has a configurable Javascript clock built into it. I suppose you'll have to download the theme to see how it works.

3
adrock
Re: Date / Time
  • 2005/3/1 19:04

  • adrock

  • Quite a regular

  • Posts: 291

  • Since: 2004/12/7


Add this to your theme wherever you want the date and time to display;

< script >
document.write(Date()+".")
< /script >


or...have the date and time displayed in the status bar;

This is a simple one. Just paste the following script into
the < head > ... < /head > of your page. There are no
other set-ups needed.

< script language="JavaScript" >
< !--

// ==========================
// (C) 2000 by CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header

function doTheClock() {
window.setTimeout( "doTheClock()", 1000 );
t = new Date();
if(document.all || document.getElementById){
document.title = t.toString();
}else{
self.status = t.toString();
}
}

doTheClock()

//-- >
< /script >

*** If you copy and paste, don't forget to take the spaces out of the tag containers!

4
shansta22
Re: Date / Time
  • 2005/3/2 9:45

  • shansta22

  • Just popping in

  • Posts: 38

  • Since: 2005/2/13


Cheers guys..

Login

Who's Online

326 user(s) are online (209 user(s) are browsing Support Forums)


Members: 0


Guests: 326


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits