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 > WinterBoard
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-14-2008, 09:32 PM
0okami.digital's Avatar
Green Apple
 
Join Date: Oct 2008
Posts: 58
Thanks: 11
Thanked 5 Times in 5 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 09: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-28-2009)
  #2  
Old 10-14-2008, 09:37 PM
cpjr's Avatar
plain jane vanilla (missing 3k posts)
 
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,463
Thanks: 121
Thanked 1,288 Times in 1,142 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 09: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-28-2009)
  #3  
Old 10-14-2008, 09:57 PM
0okami.digital's Avatar
Green Apple
 
Join Date: Oct 2008
Posts: 58
Thanks: 11
Thanked 5 Times in 5 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  
Old 10-14-2008, 10:06 PM
cpjr's Avatar
plain jane vanilla (missing 3k posts)
 
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,463
Thanks: 121
Thanked 1,288 Times in 1,142 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  
Old 10-14-2008, 11:48 PM
0okami.digital's Avatar
Green Apple
 
Join Date: Oct 2008
Posts: 58
Thanks: 11
Thanked 5 Times in 5 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  
Old 10-14-2008, 11:51 PM
cpjr's Avatar
plain jane vanilla (missing 3k posts)
 
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,463
Thanks: 121
Thanked 1,288 Times in 1,142 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  
Old 10-15-2008, 01:44 AM
My iPhone is a Part of Me
 
Join Date: May 2008
Device + Firmware: Iphone 1st gen 16gig 3.0 redsnOw
Operating System: xp
Location: Scranton
Posts: 510
Thanks: 158
Thanked 184 Times in 144 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  
Old 10-15-2008, 02: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,289
Thanks: 117
Thanked 169 Times in 116 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  
Old 10-15-2008, 02: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,504
Thanks: 32
Thanked 177 Times in 161 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  
Old 10-15-2008, 07: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,289
Thanks: 117
Thanked 169 Times in 116 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  
Old 10-15-2008, 08:18 AM
dirtybird1977's Avatar
My iPhone is a Part of Me
 
Join Date: Dec 2007
Device + Firmware: 16 gig White 3G iPhone 3.0
Operating System: Unfortunately still WinVista
Posts: 509
Thanks: 9
Thanked 119 Times in 79 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  
Old 10-15-2008, 02:32 PM
My iPhone is a Part of Me
 
Join Date: May 2008
Device + Firmware: Iphone 1st gen 16gig 3.0 redsnOw
Operating System: xp
Location: Scranton
Posts: 510
Thanks: 158
Thanked 184 Times in 144 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  
Old 10-16-2008, 12:39 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,289
Thanks: 117
Thanked 169 Times in 116 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  
Old 10-16-2008, 12:41 AM
cpjr's Avatar
plain jane vanilla (missing 3k posts)
 
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,463
Thanks: 121
Thanked 1,288 Times in 1,142 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-16-2008)
  #15  
Old 10-16-2008, 01:43 AM
0okami.digital's Avatar
Green Apple
 
Join Date: Oct 2008
Posts: 58
Thanks: 11
Thanked 5 Times in 5 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



Go to Top
ModMyI

All times are GMT -6. The time now is 07:37 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 / / Top