Results 1 to 2 of 2

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


Thread: widget.html rotating wallpaper timing

  1. #1
    Default widget.html rotating wallpaper timing
    i have done a bit of tinkering with these 2 files trying to make the timing right to no avail! What i am tying to do is have an image display for like half a second then the next one displays like 1 minute later for half a second and so on....

    Any help with this would be greatly appreciated!




    widget.html - which contains this text
    <!--
    Wallpaper and Lockscreen random cycler
    Author: Jay Zhang (AKA moogoat)
    -->
    <?xml version="1.0" encoding="UTF-16"?><html><head>
    <script src="configuration.js"></script>
    <script type="text/javascript">
    document.write('<style type="text/css">body{background: transparent url('+WALLPATH+(((new Date()).getTime()%WPNUM)+1)+'.'+IMGTYPE+');}</style>');
    setTimeout("window.location.reload(false)",CHANGEL ENGTH*200*1000);
    </script>
    </head></html>




    and configuration.js - which has this text
    /*
    **Wallpaper and Lockscreen random cycler
    **Author: Jay Zhang (AKA moogoat)
    **
    **Wallpapers should be put into a Wallpapers folder inside the theme folder (or something else if you changed it).
    **Lockscreen pictures should be put into a Lockscreen folder. You can make this the same as your wallpaper folder by changing the setting below (LOCK_WALLPATH)
    **Wallpapers should be named starting from 1.jpg all the way up to however many (e.g. 4.jpg). The number of wallpapers MUST be changed afterwards in the setting below.
    **
    **If you only want one of the cyclers without the other, delete the corresponding .html file. (e.g. delete Wallpaper.html or LockBackground.html)
    */

    //CHANGE THIS TO YOUR LIKING
    var CHANGELENGTH = .90; //The number of minutes between changes (Wallpaper only)


    //THE REST HAVE BEEN PRESET FOR THIS PACK SPECIFICALLY. DON'T CHANGE!

    //WALLPAPER CONFIG
    var WPNUM = 4; //The number of wallpapers in your Wallpapers folder. CHANGE THIS!

    var WALLPATH = "OverlayWallpapers/"; //Wallpaper path, only if you want to change this. Leave it if you don't know what this'll do!

    var IMGTYPE = "png"; //The filetype of all your images. Usually png, jpg or gif. All images must be the same filetype!



    //LOCKSCREEN CONFIG
    var LOCK_WPNUM = 4; //The number of wallpapers in your Wallpapers folder. CHANGE THIS!

    var LOCK_WALLPATH = "OverlayWallpapers/"; //Wallpaper path, only if you want to change this. Leave it if you don't know what this'll do! If you want this to be the same as your wallpaper path, change to "Wallpapers/"

    var LOCK_IMGTYPE = "png"; //The filetype of all your images. Usually png, jpg or gif. All images must be the same filetype!

    //There is no LOCK_CHANGELENGTH variable because the lockscreen's background changes every time you lock your phone.
    Last edited by Hoyane; 2010-10-16 at 04:52 PM.

  2. #2
    cmon! anyone???

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