Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Executing my own code via springboard
is a discussion within theFile Mods
forums, a part of theiPhone Modding
section;Hi Everyone.... i have a created into my skin my very own random wallpaper changer using Javascript Looks like this .... // Type the number of images you are rotating.
...-
09-24-2012, 11:20 PM #1
Executing my own code via springboard
Hi Everyone.... i have a created into my skin my very own random wallpaper changer using Javascript
Looks like this ....
// Type the number of images you are rotating.
NumberOfImagesToRotate = 32;
// Specify the first and last part of the image tag.
FirstPart = '<img id="Wall" src="../Wallpapers/wallpaper';
MiddlePart = '.jpg">';
LastPart = '</img>';
function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + MiddlePart + LastPart);
}
Basically, every twenty minutes when the springboard weather app updates .... the wallpaper also changes, it's awesome and it's unique to my phone... see screenshot here..

So here's the thing, while it does automatically change every 20 minutes on its own, i would also like a backup option to manually force a change, and i'm looking for one of two ways to do this, or even both.
1> Can i basically create a shortcut icon to the springboard that links to this script? I press button, it changes.
OR
2> maybe create a shortcut SBsettings so i can open the menu, select the icon and it'll run the script and force a wallpaper change.
Is this possible?
I know nothing is creating my own apps, just a friend and i who worked on the java script to create a custom piece of code to randomise my wallpapers.
Ivan
-
10-05-2012, 09:50 AM #2
I wanted to check back and ask if this was asked in the wrong spot, or if it isn't possible or i'm asking the wrong group of people?
If any of the above, would love to be pointed in the right direction.
Ivan
-
10-11-2012, 07:40 AM #3
hey im not to sure how to help with this problem but would it be possible for you to email me this theme and tell me where to ssh it into my phone?
-
10-11-2012, 07:46 AM #4
Sorry i'm not ready to release this theme, it is also over 100meg (although only 37 if you remove ALL the wallpapers)
Maybe one day i'll release it but i don't feel confident yet.
Sorry.
-
10-11-2012, 11:14 AM #5
oh okay well it is an extremely interesting idea i hope you get to the point where you are ready to release it someday
-
11-10-2012, 07:41 PM #6Delirious
- Join Date
- Feb 2011
- Location
- New Zealand
- Posts
- 620
- Thanks
- 125
- Thanked 1,250 Times in 186 Posts




LinkBack URL
About LinkBacks
Reply With Quote

