The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

2.2 Unlock / Jailbreak OS X | 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 > WinterBoard
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-14-2008, 08:32 PM
0okami.digital's Avatar
Green Apple
 
Join Date: Oct 2008
Posts: 51
Thanks: 8
Thanked 4 Times in 4 Posts
changing sauriks theme to do more than 2 bg images...?

Hey guys, i was taking a look at saruik's theme for winterboard. and i wanted to make some changes... i want to be able to do more than 2 images but im not exactly sure how to change things to make it happen.

Code:
<?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: black;
            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 style="color: black">
    <img id="one"/>
    <img id="two"/>

    <script>
        var images = ['ran_and_chen_01.jpg', 'ran_and_chen_02.jpg'];
        var index = 0;

        var fade_in = one;
        var fade_out = two;
        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, 15000);
        };

        fade();
    </script>
</body></html>
I was thinking to just add more to
Code:
        var images = ['ran_and_chen_01.jpg', 'ran_and_chen_02.jpg', 'ran_chen_03.jpg', 'ran_chen_04.jpg'];
and so on but that does not work quite right.

I read the page at saruik's web space but it refers me to apple developer for css stuff and apple wants 100.00 to join what appears to be forums and refference material.

Any hints welcome.

here's another thing i tried and still no luck...
one image loads, and when it fades i can see another image load but instantly switch to a different one...

so its still only fading two... and flashing one by.

Code:
<?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: black;
            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 style="color: black">
    <img id="one"/>
    <img id="two"/>
    <img id="three"/>


    <script>
        var images = ['ran_and_chen_01.jpg', 'ran_and_chen_02.jpg', 'ran_and_chen_03.jpg'];
        var index = 0;

        var fade_in = one;
        var fade_out = two;
        var fade_out = three;
        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, 15000);
        };

        fade();
    </script>
</body></html>

Last edited by 0okami.digital; 10-14-2008 at 08:32 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to 0okami.digital For This Useful Post:
scarthur68 (05-27-2009)
  #2 (permalink)  
Old 10-14-2008, 08:37 PM
cpjr's Avatar
plain jane vanilla
 
Join Date: Jul 2007
Device + Firmware: iPhone 3G[S] White 32GB 3.0 | iPhone 3G White 16GB 2.2.1
Operating System: Alum Macbook 2.4, 4GB Ram, 250GB HDD
Location: ATL
Posts: 7,944
Thanks: 71
Thanked 1,034 Times in 916 Posts
Send a message via AIM to cpjr

That entire script is wrote based on the use of 2 images.

Give me a minute and I will send you a file that will work.

Edit: Ok, take this script and edit only the list of image files for what you need. Add or subtract as many as you want. They will rotate every minute or so. You can change the timer also if you want.

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

img.fade-out {
opacity: 0;
}

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

<img src="wallpaper/Smoke.jpg"/>
<img src="wallpaper/Waterdrop.jpg"/>
<img src="wallpaper/Greenbulb.jpg"/>
<img src="wallpaper/Ghostgirl.png"/>

<script>
//
// Displays each <img> once in random order before
// randomizing the list again.
// Just add an <img> tag with your filename to add a pic,
// and change interval to control the cycle speed.

var interval = 4 * 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>
This part:
Quote:
<img src="wallpaper/Smoke.jpg"/>
<img src="wallpaper/Waterdrop.jpg"/>
<img src="wallpaper/Greenbulb.jpg"/>
<img src="wallpaper/Ghostgirl.png"/>
Each image has to be listed just like that.....also KEEP IN MIND I store my background images under /wallpaper in the main theme folder....so that why they are listed as wallpaper/image.jpeg.

Last edited by cpjr; 10-14-2008 at 08:45 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following 6 Users Say Thank You to cpjr For This Useful Post:
0okami.digital (10-14-2008), chis54 (10-31-2008), dublgrace (11-07-2008), Ice9812 (10-15-2008), rabittman2 (04-11-2009), scarthur68 (05-27-2009)
  #3 (permalink)  
Old 10-14-2008, 08:57 PM
0okami.digital's Avatar
Green Apple
 
Join Date: Oct 2008
Posts: 51
Thanks: 8
Thanked 4 Times in 4 Posts

Thanks!!!!! that works perfect!

Code:
<?xml version="1.0" encoding="UTF-16"?><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: 3s;
position: absolute;
width: 320px;
height: auto;
}

img.fade-out {
opacity: 0;
}

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

<img src="Private/ran_and_chen_01.jpg"/>
<img src="Private/ran_and_chen_02.jpg"/>
<img src="Private/ran_and_chen_03.jpg"/>

<script>
//
// Displays each <img> once in random order before
// randomizing the list again.
// Just add an <img> tag with your filename to add a pic,
// and change interval to control the cycle speed.

var interval = 4 * 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>
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4 (permalink)  
Old 10-14-2008, 09:06 PM
cpjr's Avatar
plain jane vanilla
 
Join Date: Jul 2007
Device + Firmware: iPhone 3G[S] White 32GB 3.0 | iPhone 3G White 16GB 2.2.1
Operating System: Alum Macbook 2.4, 4GB Ram, 250GB HDD
Location: ATL
Posts: 7,944
Thanks: 71
Thanked 1,034 Times in 916 Posts
Send a message via AIM to cpjr

Good!

You can also do your lockscreen background in the same manor. Only difference is you will save the file as "LockBackground.html" instead of background.html.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following 3 Users Say Thank You to cpjr For This Useful Post:
0okami.digital (10-14-2008), ashpepe (03-16-2009), NogoNogo (10-17-2008)
  #5 (permalink)  
Old 10-14-2008, 10:48 PM
0okami.digital's Avatar
Green Apple
 
Join Date: Oct 2008
Posts: 51
Thanks: 8
Thanked 4 Times in 4 Posts

Actually for the lock screen i was hoping to throw an animated gif

Click the image to open in full size.

..but im having issues getting it working. i think i'll save that for another thread though... I Gotta do some searching first.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6 (permalink)  
Old 10-14-2008, 10:51 PM
cpjr's Avatar
plain jane vanilla
 
Join Date: Jul 2007
Device + Firmware: iPhone 3G[S] White 32GB 3.0 | iPhone 3G White 16GB 2.2.1
Operating System: Alum Macbook 2.4, 4GB Ram, 250GB HDD
Location: ATL
Posts: 7,944
Thanks: 71
Thanked 1,034 Times in 916 Posts
Send a message via AIM to cpjr

Hahaha, ok. Well, you can do that to, same deal takes an html script.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7 (permalink)  
Old 10-15-2008, 12:44 AM
iPhoneaholic
 
Join Date: May 2008
Device + Firmware: Iphone 1st gen 8gig 3.0 redsnOw
Operating System: xp
Location: Scranton
Posts: 478
Thanks: 142
Thanked 174 Times in 138 Posts

Quote:
Originally Posted by cpjr View Post
That entire script is wrote based on the use of 2 images.

Give me a minute and I will send you a file that will work.

Edit: Ok, take this script and edit only the list of image files for what you need. Add or subtract as many as you want. They will rotate every minute or so. You can change the timer also if you want.



This part:


Each image has to be listed just like that.....also KEEP IN MIND I store my background images under /wallpaper in the main theme folder....so that why they are listed as wallpaper/image.jpeg.
wow thanks so much for this ....i edited it to go with the blackberry theme with 5 wallpapers...and then i figured out how to change my weather+clock widget from wallpaper.html to widget.html.....it wasnt working for me but then i figured out i had the edit the wallpaper.js to look at the widget instead of wallpaper.....im not familiar with html code but i knew it had to be something simple like that so trial and error until i got it but again thanks for the wallpaper changing code....
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8 (permalink)  
Old 10-15-2008, 01:20 AM
heath_rox's Avatar
Livin the iPhone Life
 
Join Date: Nov 2007
Device + Firmware: 1st Gen IPhone all sizes/unlocked 2.0
Operating System: OSX Leopard
Location: Liberty City
Posts: 1,275
Thanks: 117
Thanked 167 Times in 115 Posts
Send a message via MSN to heath_rox

Quote:
Originally Posted by 0okami.digital View Post
Actually for the lock screen i was hoping to throw an animated gif

Click the image to open in full size.

..but im having issues getting it working. i think i'll save that for another thread though... I Gotta do some searching first.
why hast the post been changed? that image in highly inappropriate! i thought this was a PG13 forum?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9 (permalink)  
Old 10-15-2008, 01:52 AM
SundayDuffer's Avatar
Moderator
 
Join Date: Aug 2007
Device + Firmware: iPhone 3G White (Pwned)
Operating System: MacBook Pro OSX
Location: Northern California
Posts: 1,213
Thanks: 23
Thanked 141 Times in 128 Posts
Send a message via Yahoo to SundayDuffer

heathrox, i dont see anything wrong with the gif...what do you see that i dont?

cpjr??? you see anything wrong?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10 (permalink)  
Old 10-15-2008, 06:38 AM
heath_rox's Avatar
Livin the iPhone Life
 
Join Date: Nov 2007
Device + Firmware: 1st Gen IPhone all sizes/unlocked 2.0
Operating System: OSX Leopard
Location: Liberty City
Posts: 1,275
Thanks: 117
Thanked 167 Times in 115 Posts
Send a message via MSN to heath_rox

Quote:
Originally Posted by SundayDuffer View Post
heathrox, i dont see anything wrong with the gif...what do you see that i dont?

cpjr??? you see anything wrong?
what is that skin colored patch in her skirt pants if thats no what i think it is please forgive me
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11 (permalink)  
Old 10-15-2008, 07:18 AM
dirtybird1977's Avatar
My iPhone is a Part of Me
 
Join Date: Dec 2007
Device + Firmware: 16 gig White 3G iPhone 2.2.1
Operating System: Unfortunately still WinVista
Posts: 501
Thanks: 9
Thanked 114 Times in 78 Posts

Quote:
Originally Posted by heath_rox View Post
what is that skin colored patch in her skirt pants if thats no what i think it is please forgive me
LOL...the back of her shirt.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #12 (permalink)  
Old 10-15-2008, 01:32 PM
iPhoneaholic
 
Join Date: May 2008
Device + Firmware: Iphone 1st gen 8gig 3.0 redsnOw
Operating System: xp
Location: Scranton
Posts: 478
Thanks: 142
Thanked 174 Times in 138 Posts

Quote:
Originally Posted by cpjr View Post
That entire script is wrote based on the use of 2 images.

Give me a minute and I will send you a file that will work.

Edit: Ok, take this script and edit only the list of image files for what you need. Add or subtract as many as you want. They will rotate every minute or so. You can change the timer also if you want.



This part:


Each image has to be listed just like that.....also KEEP IN MIND I store my background images under /wallpaper in the main theme folder....so that why they are listed as wallpaper/image.jpeg.
Hi cpjr,

i was wondering if its possible to modify this code so that there is an icon folder attached to every wallpaper?.....so basically everytime a wallpaper changes the icons would change with it....so it would be like a rotating "full" theme......

what do you think is it possible?

Thank you
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #13 (permalink)  
Old 10-15-2008, 11:39 PM
heath_rox's Avatar
Livin the iPhone Life
 
Join Date: Nov 2007
Device + Firmware: 1st Gen IPhone all sizes/unlocked 2.0
Operating System: OSX Leopard
Location: Liberty City
Posts: 1,275
Thanks: 117
Thanked 167 Times in 115 Posts
Send a message via MSN to heath_rox

Quote:
Originally Posted by dirtybird1977 View Post
LOL...the back of her shirt.
o yea sorry
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #14 (permalink)  
Old 10-15-2008, 11:41 PM
cpjr's Avatar
plain jane vanilla
 
Join Date: Jul 2007
Device + Firmware: iPhone 3G[S] White 32GB 3.0 | iPhone 3G White 16GB 2.2.1
Operating System: Alum Macbook 2.4, 4GB Ram, 250GB HDD
Location: ATL
Posts: 7,944
Thanks: 71
Thanked 1,034 Times in 916 Posts
Send a message via AIM to cpjr

Quote:
Originally Posted by Ice9812 View Post
Hi cpjr,

i was wondering if its possible to modify this code so that there is an icon folder attached to every wallpaper?.....so basically everytime a wallpaper changes the icons would change with it....so it would be like a rotating "full" theme......

what do you think is it possible?

Thank you
Pmed you.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to cpjr For This Useful Post:
Ice9812 (10-15-2008)
  #15 (permalink)  
Old 10-16-2008, 12:43 AM
0okami.digital's Avatar
Green Apple
 
Join Date: Oct 2008
Posts: 51
Thanks: 8
Thanked 4 Times in 4 Posts

pm!? boooo! I'd love to read that response too! ^_^
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 > WinterBoard

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

Forum Jump


Go to Top
ModMyI

All times are GMT -6. The time now is 11:50 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 | Dedicated Server Hosting by SingleHop | Copyright © 2007-09 by ModMy, LLC. All rights reserved.

RSS / Contact Us / / ModMyi Home / Archive / Privacy Statement / Top


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408