richtig wechseln tun die custom2 und 3 bei nur custom müßte es auch gehen aber nicht so gut wie bei den anderen und das alles umzuschreiben ist auch für mich ne nummer zu groß.oder sagen wir mal so mir fehlen die nötigen kenntnisse was genau geändert werden muss. ich bin auch ehrlich gesagt zufrieden so wie es ist.o.O
kannst dich ja selber dran versuchen...
if ((IconSet == "Custom2") || (IconSet == "Custom3")) {
DurationOfDay = nighthour - dayhour;
DurationOfNight = 24 - DurationOfDay;
Lock_day1 = dayhour + (DurationOfDay/10);
Lock_day2 = dayhour + ((DurationOfDay/10)*2);
Lock_day3 = dayhour + ((DurationOfDay/10)*3);
Lock_day4 = dayhour + ((DurationOfDay/10)*4);
Lock_day5 = dayhour + ((DurationOfDay/10)*5);
Lock_day6 = dayhour + ((DurationOfDay/10)*6);
Lock_day7 = dayhour + ((DurationOfDay/10)*7);
Lock_day8 = dayhour + ((DurationOfDay/10)*8);
Lock_day9 = dayhour + ((DurationOfDay/10)*9);
Lock_night1 = nighthour + (DurationOfNight/10);
Lock_night2 = nighthour + ((DurationOfNight/10)*2);
Lock_night3 = nighthour + ((DurationOfNight/10)*3);
Lock_night4 = nighthour + ((DurationOfNight/10)*4);
Lock_night5 = nighthour + ((DurationOfNight/10)*5);
Lock_night6 = nighthour + ((DurationOfNight/10)*6);
Lock_night7 = nighthour + ((DurationOfNight/10)*7);
Lock_night8 = nighthour + ((DurationOfNight/10)*8);
Lock_night9 = nighthour + ((DurationOfNight/10)*9);
if ((time_to_change_wall < dayhour) || (time_to_change_wall > nighthour)) {
document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_night10@2x.png";
if (time_to_change_wall < dayhour) { time_to_change_wall = time_to_change_wall +24 };
if (time_to_change_wall < Lock_night9) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_night9@2x.png"; }
if (time_to_change_wall < Lock_night8) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_night8@2x.png"; }
if (time_to_change_wall < Lock_night7) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_night7@2x.png"; }
if (time_to_change_wall < Lock_night6) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_night6@2x.png"; }
if (time_to_change_wall < Lock_night5) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_night5@2x.png"; }
if (time_to_change_wall < Lock_night4) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_night4@2x.png"; }
if (time_to_change_wall < Lock_night3) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_night3@2x.png"; }
if (time_to_change_wall < Lock_night2) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_night2@2x.png"; }
if (time_to_change_wall < Lock_night1) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_night1@2x.png"; }
} else {
document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_day10@2x.png";
if (time_to_change_wall < Lock_day9) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_day9@2x.png"; }
if (time_to_change_wall < Lock_day8) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_day8@2x.png"; }
if (time_to_change_wall < Lock_day7) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_day7@2x.png"; }
if (time_to_change_wall < Lock_day6) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_day6@2x.png"; }
if (time_to_change_wall < Lock_day5) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_day5@2x.png"; }
if (time_to_change_wall < Lock_day4) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_day4@2x.png"; }
if (time_to_change_wall < Lock_day3) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_day3@2x.png"; }
if (time_to_change_wall < Lock_day2) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_day2@2x.png"; }
if (time_to_change_wall < Lock_day1) { document.getElementById("WidgetWall").src="Resourc es/Widget/LockBackground_day1@2x.png"; }
}
}
das ist die config für custom2 und 3...
hier daniel bitteschön
http://www.mediafire.com/?wtl7hnn7irsk3hf