Wednesday, August 18, 2010

Local Time + UTC in Your Website Title Bar

Just Copy And Paste the Code and Save as ".html"

<html>

<head><title></title>
<Script Language="JavaScript" Type="Text/JavaScript">
//Made by S.Hariprasath
//shprasath-javascripts.blogspot.com
//Come and get more Scripts from my blog and vote it
//Wishing you happy coding

//Dont delete this codes------hariDMX
//My Variables
var my_first_variable;
var my_second_variable=24; //24 hours
var my_third_variable;
var my_fourth_variable;
var my_fifth_variable;
var my_sixth_variable;
var my_seventh_variable;
var my_ninth_variable;
var my_tenth_variable;
var my_eleventh_variable;
var my_twelfth_variable;
var my_thirteenth_variable;

function SrilankanTime() {
my_first_variable   =my_second_variable+6;
my_third_variable   =my_second_variable+my_first_variable;
my_fifth_variable   =my_second_variable+my_first_variable+my_third_variable;
my_sixth_variable   =my_fifth_variable/my_third_variable*my_second_variable;
my_seventh_variable =my_third_variable*my_second_variable/12*my_first_variable;
my_tenth_variable   =my_second_variable+my_first_variable/my_sixth_variable-16*my_fifth_variable;

my_ninth_variable   =my_seventh_variable*(my_second_variable-5)/my_third_variable+my_fifth_variable;

my_fourth_variable  =my_ninth_variable/my_tenth_variable+my_second_variable*my_third_variable-my_fifth_variable;

my_eleventh_variable=(my_fourth_variable+my_second_variable/my_third_variable*my_fifth_variable+my_first_variable*my_sixth_variable)/my_seventh_variable+my_ninth_variable-my_fourth_variable-1;

my_twelfth_variable =Math.floor(my_eleventh_variable);

my_thirteenth_variable=my_twelfth_variable*my_first_variable/2+100;

window.setTimeout( "SrilankanTime()", my_thirteenth_variable );
my_thirteenth_variable = new Date();
document.title = my_thirteenth_variable.toString()+"--------Developed by S.Hariprasath---------";
}
function dispaly(){
SrilankanTime()
}
window.onload=dispaly;
</script>


<!-- css for description page -- You Can delete following codes-------hariDMX-->
<style type="text/css">
table.myText{
color : Red ;
font-size : 15px ;
font-weight : bold ;
text-align : center ;
}
td.Link {
color : green ;
}
</style>

<!--You Can delete this---------hariDMX-->
</head>
<body><center>
<table class="myText">
<tr>
<td>You Are Done...!!!</td></tr>
<tr>
<td>look at Your TITLE BAR</td></tr>
<tr>
<td>look at Your WEBSITE TAB</td></tr>
<tr>
<td>look at Your TASKBAR</td></tr>
<tr>
<td class="link">Thank you for visiting My Blog.....Happy coding.....!!!<br>
visit and get more scrips<a href="shprasath-javascripts.blogspot.com"> shprasath-javascripts.blogspot.com</a></td></tr>
</table>
</center>
</body>
</html>

No comments:

Post a Comment