View Single Post
  #1  
Old 12th May 2011, 20:05
smoky28's Avatar
smoky28 smoky28 is offline
Senior Member
 
Join Date: Aug 2010
Hungary
Posts: 82
Smile Time script tsse 5.6 header.php
Click the image to open in full size.Hello friends, this little thread sriptet accessories with what I publish here on the forum theme header.php Indeed every part of the menu placed in front
two images is accompanied by a fitting place.

This script is compatible with Ts and Torrentstrike Tbdev MyphpBittorrent and Btit torrent engines

The French language is translated as Drack friend

PHP Code:
<script language="JavaScript">

<!--



function 
resetIt() {



var 
timerID null;

var 
timerRunning false;



if(
timerRunning)

clearTimeout(timerID);

timerRunning false;

var 
timeNow = new Date();

var 
hours timeNow.getHours();

var 
minutes timeNow.getMinutes();

var 
seconds timeNow.getSeconds();

var 
timeValue "" + ((hours >24) ? hours -24 :hours)

timeValue = ((timeValue <10)? "0":"") + timeValue

timeValue 
+= ((minutes 10) ? ":0" ":") + minutes

timeValue 
+= ((seconds 10) ? ":0" ":") + seconds

timerID 
setTimeout("resetIt()",100);

timerRunning true;

var 
dateNow = new Date();

var 
days = new Array('vasárnap','Hétfő','Kedd','Szerda','Csütörtök','Péntek','Szombat');

var 
months = new Array('Januűr','Február','Március','Április','Május','Június','Július','Augusztus','Szeptember','Október','November','December');

var 
date = ((dateNow.getDate()<10) ? "0" "")+ dateNow.getDate();

function 
y2k(number){return (number 1000) ? number 1900 number;}

today = (y2k(dateNow.getYear())) + " " months[dateNow.getMonth()] + " " date ". " days[dateNow.getDay()] + " " timeValue;



  if(
document.all || document.getElementById){ // Browser Check

     
document.title today.toString();

  }else{

     
self.status today.toString(); // Default to status.

  
}

}

resetIt();

//-->

</script> 
Click the image to open in full size.Click the image to open in full size.
__________________
Sky-Tech Developer Team Hungary


Last edited by smoky28; 13th May 2011 at 08:46.
Reply With Quote
The Following 5 Users Say Thank You to smoky28 For This Useful Post:
bodinho (24th November 2011), gogo999 (1st May 2012), Marco (26th February 2014), PAX (19th March 2012), shasta (13th May 2011)