The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > Design and Media For the iPhone / iPod Touch > Skinning / Themes Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-30-2009, 10:25 PM
What's Jailbreak?
 
Join Date: Apr 2009
Posts: 28
Thanks: 1
Thanked 0 Times in 0 Posts
Rotating Backgrounds

Hello All,

So I am using Saurik theme with winterboard to do a rotating background. I am having trouble. With two images it works perfect, but with more the images run through the rotation once and then they start to not fade properly. They kinda fade and while fading to the next images a different will pop for a split second. After a few rotations its back in sync and then it goes out again.

Here is my code for the Wallpaper.html file for the theme. Can anyone see what Im doing wrong.

<?xml version="1.0" encoding="UTF-16"?>
<html><head>
<base href="Private/"/>
<!--meta name="viewport" content="width=320, minimum-scale=1.0, maximum-scale=1.0"/-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<style>
body {
background-color: none;
margin: 0;
padding: 20px 0 0 0;
height: 442px;
width: 320px;
}

img {
-webkit-transition-property: opacity;
-webkit-transition-duration: 2s;
position: absolute;
width: 320px;
height: auto;
}

img.fade-out {
opacity: 0;
}

img.fade-in {
opacity: 1;
}
</style>


</head><body onload="onLoad()">
<img id="one"/>
<img id="two"/>
<img id="three"/>
<img id="four"/>
<img id="five"/>
<img id="six"/>
<img id="seven"/>
<img id="eight"/>


<script>
var images = ['Sam.png', 'Sam2.png', 'Sam3.png', 'Sam4.png', 'Sam5.png', 'Sam6.png', 'Sam7.png', 'Sam8.png'];
var index = 0;

var fade_in = one;
var fade_out = two;
var fade_in = three;
var fade_out = four;
var fade_in = five;
var fade_out = six;
var fade_in = seven;
var fade_out = eight;


fade_in.src = images[0];
fade_out.src = images[images.length - 1];

var fade = function () {
fade_in.src = images[index];
index = (index + 1) % images.length;

fade_in.className = 'fade-out';
fade_out.className = 'fade-in';

var fade_tmp = fade_in;
fade_in = fade_out;
fade_out = fade_tmp;

setTimeout(fade, 10000);
};

fade();
</script>
</body></html>
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 07-01-2009, 08:47 PM
Green Apple
 
Join Date: May 2009
Posts: 47
Thanks: 3
Thanked 5 Times in 5 Posts

i want to do this also.. i have a total of 9 walls that i want to rotate on a certain time interval and transition...
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 07-01-2009, 10:44 PM
mwcoexec's Avatar
Green Apple
 
Join Date: Feb 2009
Device + Firmware: iPhone 3G on 3.0
Operating System: Windows XP
Location: Charlotte, NC
Posts: 69
Thanks: 24
Thanked 12 Times in 8 Posts
Send a message via AIM to mwcoexec

I used a theme called Time of Day and modified the code to get 6 different backgrounds that rotate depending on the time of day. They don't fade in and out, but they are set to rotate every few hours.

Credit for the Time of Day theme goes to the creator, all I did was alter it to use the wallpapers of my choosing on the intervals I wanted.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > Design and Media For the iPhone / iPod Touch > Skinning / Themes Discussion

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 04:29 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top