
11-13-2008, 07:10 PM
|
|
Green Apple
|
|
Join Date: Nov 2008
Device + Firmware: iPhone 3g, AT&T, 2.2 jailbroke
Operating System: Windows Vista
Posts: 61
Thanks: 9
Thanked 2 Times in 2 Posts
|
|
|
Date AND time in StausBar?
|
Been looking but have not found.. what is the code to add to the Info.plist and Wallpaper.html files to make so the title/status bars have both the date and the time? I am using Saurik's theme and would like to modify it to display them. Below are the contents of each file.
THANKS!
Wallpaper.html
-----------------------------------------------
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style>
body {
background-color: black;
margin: 0;
padding: 0;
height: 480px;
width: 320px;
}
img {
-webkit-transition-property: opacity;
-webkit-transition-duration: 3s;
position: absolute;
width: 320px;
height: auto;
}
img.fade-out {
opacity: 0;
}
img.fade-in {
opacity: 1;
}
</style>
</head>
<body style="color: black">
<img src="Private/1.png"/>
<img src="Private/2.png"/>
<img src="Private/3.png"/>
<img src="Private/4.png"/>
<img src="Private/5.png"/>
<img src="Private/6.png"/>
<img src="Private/7.png"/>
<img src="Private/8.png"/>
<img src="Private/9.png"/>
<script>
//
// Displays each <img> once in random order before
// randomizing the list again.
// Just add an <img> tag with your filename to add a pic,
// and change interval to control the cycle speed.
var interval = 4 * 20; // Seconds between change
var images = document.getElementsByTagName("img");
var imageArray = [];
var imageCount = images.length;
var current = 0;
var randomize = function(){
return (Math.round(Math.random() * 3 - 1.5));
}
for(var i = 0; i < imageCount; i++){
images[i].className = 'fade-out';
imageArray[i] = images[i];
}
imageArray.sort(randomize);
var fade = function(){
imageArray[current++].className = 'fade-out';
if(current == imageCount){
current = 0;
imageArray.sort(randomize);
}
imageArray[current].className = 'fade-in';
setTimeout(fade, interval * 100);
};
fade();
</script>
</body></html>
-END--END--END--END--END--END--END--END--END--END--END--END-
Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
<key>UndockedIconLabelStyle</key>
<string>/*font-family: monospace; font-size: 13px;*/ color: white</string>
<key>DockedIconLabelStyle</key>
<string>/*font-family: monospace; font-size: 13px;*/ color: white</string>
<key>TimeStyle</key>
<string>/*font-family: monospace; font-size: 16px*/</string>
<!--key>ComposeStoreIcons</key>
<false/-->
</dict></plist>
|
|