Results 1 to 1 of 1

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.

Thread: Need help with script

  1. #1
    Default Need help with script
    I have been trying to create a HTML file that will load 7 different HTML wallpapers 1 for each day of the week eg: 1.html for Monday 2.html for Tuesday and so on. I tried to use a scrip posted on this site in another thread that was used to load a different wallpaper picture for each day of the week but no luck. Please I need some help.
    This is the script I was trying to use


    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    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: 480px;

    <body style="color: black">

    <SCRIPT type="text/javascript">

    var photos = new Array();
    photos[0] = "wallpaper/0.JPG";
    photos[1] = "wallpaper/1.JPG";
    photos[2] = "wallpaper/2.JPG";
    photos[3] = "wallpaper/3.JPG";
    photos[4] = "wallpaper/4.JPG";
    photos[5] = "wallpaper/5.JPG";
    photos[6] = "wallpaper/6.JPG";
    photos[7] = "wallpaper/7.JPG";

    var today=new Date();
    var currentTime = today.getHours();
    var thisDay=today.getDay();

    if (currentTime>=0 && currentTime<4);
    var img = new Image();
    if (currentTime >=4)
    var img = new Image();


    Last edited by Lil_lippi; 2012-09-20 at 07:56 PM.

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts