Results 1 to 7 of 7

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


Thread: html photo widget want to change photo change time!

  1. #1
    Default html photo widget want to change photo change time!
    I have a photo widget and i would like the photos to change every 10 seconds instead of every min. i don't know how to do this can anyone change this for me if i send it to you. thanks!

  2. #2
    What's Jailbreak? ProEvo's Avatar
    Join Date
    Jul 2011
    Location
    Illinois
    Posts
    22
    Thanks
    3
    Thanked 3 Times in 2 Posts

    Which Photo Widget do you have?

    You should be able to SSH into the code and switch it easily. Don't forget IFile has a search feature.
    "Sure thing buddy"

    iP4 - 16G - Verizon - 5.0.1 - JB - GP
    White iP4 - 16G - Verizon - 5.0 - Vanilla
    iPad2 -32G - WiFi Only - 5.1.1 - JB A2.0

    Make sure to give thanks where thanks is due.

  3. #3
    its the envy remix that someone modded for me. ill send it to ya. PM would like pics to change every 10 sec! thanks

    you want me to email it too you not sure how to send in PM

    not sure what to change? thanks






    <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: 6s;
    position: absolute;
    width: 320px;
    height: auto;
    }

    img.fade-out {
    opacity: 0;
    }

    img.fade-in {
    opacity: 1;
    }
    </style>
    </head>
    <body style="color: black">

    <img src="Walls/1a.png"/>
    <img src="Walls/2a.png"/>
    <img src="Walls/3a.png"/>
    <img src="Walls/4a.png"/>
    <img src="Walls/5a.png"/>
    <img src="Walls/6a.png"/>
    <img src="Walls/7a.png"/>
    <img src="Walls/8a.png"/>
    <img src="Walls/9a.png"/>
    <img src="Walls/10a.png"/>
    <img src="Walls/11a.png"/>
    <img src="Walls/12a.png"/>
    <img src="Walls/13a.png"/>
    <img src="Walls/14a.png"/>
    <img src="Walls/15a.png"/>


    <script>

    var interval = 3 * 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 * 1000);
    };

    fade();
    </script>

    </body></html>
    Last edited by medicman67; 07-21-2011 at 02:02 PM.

  4. #4
    What's Jailbreak? ProEvo's Avatar
    Join Date
    Jul 2011
    Location
    Illinois
    Posts
    22
    Thanks
    3
    Thanked 3 Times in 2 Posts

    Are you using FakeClockUp or SpeedIntensifier? These tweaks increase animation.

    Have you tried manually editing this entry?

    var interval = 3 * 20; // Seconds between change

    Try something ridiculous like 3 * 100 and see what happens.
    "Sure thing buddy"

    iP4 - 16G - Verizon - 5.0.1 - JB - GP
    White iP4 - 16G - Verizon - 5.0 - Vanilla
    iPad2 -32G - WiFi Only - 5.1.1 - JB A2.0

    Make sure to give thanks where thanks is due.

  5. The Following User Says Thank You to ProEvo For This Useful Post:

    medicman67 (07-21-2011)

  6. #5
    that didnt change it?

    got it had to go smaller

    var interval = 3 * 20; // Seconds between change
    20 changed to 10

    thanks for your help
    Last edited by medicman67; 07-21-2011 at 02:55 PM.

  7. #6
    What's Jailbreak? ProEvo's Avatar
    Join Date
    Jul 2011
    Location
    Illinois
    Posts
    22
    Thanks
    3
    Thanked 3 Times in 2 Posts

    Glad I could help. Have a great day.
    "Sure thing buddy"

    iP4 - 16G - Verizon - 5.0.1 - JB - GP
    White iP4 - 16G - Verizon - 5.0 - Vanilla
    iPad2 -32G - WiFi Only - 5.1.1 - JB A2.0

    Make sure to give thanks where thanks is due.

  8. #7
    What's Jailbreak?
    Join Date
    May 2012
    Location
    San Clemente
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can anyone help me? How do I have the image sequence not randomize " imageArray.sort(randomize); "

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