so i am trying to make my own theme in winterboard similar to iHour, however I am a programming novice. I basically just took the code from iHour and modified it to change every 30 min instead of every hour. However something screws up in the code and I only get a black screen. If I change the wallpaper file back to normal it displays the images correctly, so I know that it is just an issue with making the prog read minutes instead of hours. i highlighted where I think the prob is.
plz help!!! thanks! code posted below. only posted a portion of it so it wouldnt be so long, you get the idea. I have 48 images I wanted to coordinate with times of day. so i guess its more like TIME OF DAY than IHOUR.
<html>
<head>
<title>Wallpaper</title>
<script>
var popunder=""
var once_per_session=0
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(off set, end))
}
}
return returnvalue;
}
function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}
function loadpopunder(){
}
if (once_per_session==0)
loadpopunder()
else
loadornot()
someone plz help. if you can just tell me how to change the highlighted part from the get hours to get minutes i can do the rest. I just dont know how to use the programming language to get it to recongnize minutes instead of hours.