Hallo Leute,
versuche vergeblich in meinem Lockscreen die Uhrzeit auf 24h umzustellen aber irgendwie ohne Erfolg.
Vielleicht kann mir hier einer von Euch helfen.
So schaut die LockBackground.html im Orginal aus, wie gesagt hab schon einiges ausprobiert was ich hier im Forum gelesen hatte aber es geht irgendwie nicht.
Grüße Scrapie
versuche vergeblich in meinem Lockscreen die Uhrzeit auf 24h umzustellen aber irgendwie ohne Erfolg.
Vielleicht kann mir hier einer von Euch helfen.
So schaut die LockBackground.html im Orginal aus, wie gesagt hab schon einiges ausprobiert was ich hier im Forum gelesen hatte aber es geht irgendwie nicht.
Grüße Scrapie
Code:
<!--
ALIEN1974
Grzegorz10 (G-10)
Modmyi.com
DUSK XTREME
DUSK XTREME LCD SLIDESHOW LOCKSCREEN
--><head>
<style>
#Layer{width: 322px; height: 482px; position: absolute; top: -1px; right: 0px; down: 0px; left: -1px;}
.stretch {width:100%; height:100%;}
</style>
<body>
<table><td>
<div id="Layer"><img src="Private/LS Wallpaper.png" class="stretch"/></div>
<div id="Layer"><img src="Private/DUSK ULT LCD.png" class="stretch"/></div>
<style>
#Test{width: 322px; height: 482px; position: absolute; top: 83px; right: 0px; down: 0px; left: -1px;}
.stretch {width:100%; height:100%;}
</style>
<body>
<table><td>
<div id="Test"><img src="Private/WALLMASK.png" class="stretch"/></div>
<div id="Layer"><img src="Private/LOCKFRAME.png" class="stretch"/></div>
<link rel="stylesheet" href="Private/StyleSheets/Top.css">
<base href="Private/"/></div>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<body>
<table><tr>
<style>
#SS{width: 320px; height: 480px; position: absolute; top: 20px; right: 0px; down: 0px; left: 0px; z-index:100;}
.stretch {width:100%; height:100%;}
</style>
<div id=SS>
<object data="Slideshow.html" type="text/html" height="480" width="320"> </object>
</div>
</body>
<style>
#Object{width: 153px; height: 214px; position: absolute; top: 162px; right: 0px; down: 0px; left: 81px;}
.stretch {width:100%; height:100%;}
</style>
<!-- <meta HTTP-EQUIV="refresh" CONTENT="0"> -->
<body>
<table><td>
<div id="Object"><img src="Object Frame.png" class="stretch"/></div>
<base href="Private/"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style>
body {
background-color: none;
margin: 310px 0 0 25px;
padding: 0px 0 0 0;
height: 480px;
width: 320px;
}
SPAN#clock
{
font-family: georgia;
color: transparent;
font-size: 0px;
}
SPAN#ampm
{
font-family: Trebuchet MS;
font-weight: normal;
color: #000000;
font-size: 0px;
}
TD#date
{
style="display:block;position: absolute; top: 0px;left:0px;right:0px;width: 0px;color: white;text-shadow: 0px 0px 0px black;font-size:0px;font-family: Arial;font-weight:0;
color: #000000;
text-shadow: 0px 0px 0px black;
}
</style>
<script type="text/javascript">
function init ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("clock").appendChild ( timeDisplay );
}
function updateClock ( )
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
//var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
//currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
var currentTimeString = currentHours + ":" + currentMinutes;
document.getElementById("clock").firstChild.nodeValue = currentTimeString;
}
function calendarDate ( )
{
var this_weekday_name_array = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
var this_month_name_array = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") //predefine month names
var this_date_timestamp = new Date()
var this_weekday = this_date_timestamp.getDay()
var this_date = this_date_timestamp.getDate()
var this_month = this_date_timestamp.getMonth()
//document.getElementById("calendar").firstChild.nodeValue = this_weekday_name_array[this_weekday] + " " + this_date + " " + this_month_name_array[this_month]//concat long date string
document.getElementById("calendar").firstChild.nodeValue = this_weekday_name_array[this_weekday] + "," + " " + this_month_name_array[this_month] + " " + this_date //concat long date string
}
</script>
</head>
</div>
<table style="position: absolute; top: 119px; left: -41px; width: 180px; height: 464px;" cellspacing="0" cellpadding="0" align="LEFT">
<tr align="center" valign="top" border="0" cellpadding="0">
<td height="10" valign="top">
<span id="">
<script language="JavaScript">amPm(); setInterval('amPm()', 1000 )</script>
</span>
</td>
</tr>
<table style="position: absolute; top: 124px; left: 174px; width: 180px; height: 461px;" cellspacing="0" cellpadding="0" align="LEFT">
<tr align="center" valign="top" border="0" cellpadding="0">
<td height="10" valign="top">
<span id="clock">
<script language="JavaScript">updateClock(); setInterval('updateClock()', 1000 )</script></span>
</td>
</tr>
<tr>
<td id="date" valign="top">
<span id="calendar">
<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script>
</span>
</td>
</tr>
<table style="position: absolute; top: -102px; left: 33px; width: 320px; height: 461px;" cellspacing="" cellpadding="" align="center">
<td height="40" border="0">
<img src="dgc.png" name="hr1" width="90" heigth="117">
</td></table>
<table style="position: absolute; top: -102px; left: 87px; width: 320px; height: 461px;" cellspacing="" cellpadding="" align="right">
<td height="40" border="0">
<img src="dgc.png" name="hr2" width="90" heigth="117"><img
src="dgz.png" name="c" width="22" heigth="69">
</td></table>
<table style="position: absolute; top: -102px; left: 165px; width: 320px; height: 461px;" cellspacing="" cellpadding="" align="right">
<td height="40" border="0">
<img src="dg8.png" name="mn1" width="90" heigth="117">
</td></table>
<table style="position: absolute; top: -102px; left: 218px; width: 320px; height: 461px;" cellspacing="" cellpadding="" align="center">
<td height="40" border="0">
<img src="dg8.png" name="mn2" width="90" heigth="117">
</td></table>
<table style="position: absolute; top: -102px; left: 60px; width: 320px; height: 461px;" cellspacing="" cellpadding="" align="center">
<td height="40" border="0">
<img src="dgc.png" name="hr3" width="90" heigth="117">
</td></table>
<script type="text/javascript"><!-- start
function dotime(){
theTime=setTimeout('dotime()',1000);
d = new Date();
hr= d.getHours()+100;
mn= d.getMinutes()+100;
se= d.getSeconds()+100;
if(hr==100){hr=112;am_pm='am';}
else if(hr<112){am_pm='am';}
else if(hr==112){am_pm='pm';}
else if(hr>112){am_pm='pm';hr=(hr-12);}
tot=''+hr+mn+se;
if (se%2==0){document.c.src = 'dgz.png';}
else {document.c.src = 'dgc.png';}
document.mn1.src = 'dg'+tot.substring(4,5)+'.png';
document.mn2.src = 'dg'+tot.substring(5,6)+'.png';
if ((hr==110)||(hr==111)||(hr==112)){document.hr1.src = 'dg'+tot.substring(1,2)+'.png';document.hr2.src = 'dg'+tot.substring(2,3)+'.png';document.hr3.src = 'dgc.png';}
else {document.hr1.src = 'dgc.png';document.hr2.src = 'dgc.png';document.hr3.src = 'dg'+tot.substring(2,3)+'.png';}
}
dotime();
//end -->
</script>
</body></html>