1. FrostyBrett's Avatar
    Hello ModMyI

    I've searched furiously though-out the internet to have my iphone change 24 lockscreen images every hour randomly. The closest I've gotten to this is this thread:

    http://modmyi.com/forums/iphone-2g-3...cler-pack.html

    (which just displays a black screen, I assume because my pictures are HD)

    and this JS file that changes the lockscreen every hour but not at random

    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: transparent;
                margin: 0;
                padding: 0px 0 0 0;
                height: 960px;
                width: 640px;
            }
    
            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: transparent">
        <img id="LBone"/>
        <img id="LBtwo"/>
    
        <script>
    	var images = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.jpg', '8.jpg', '9.jpg', '10.jpg', '11.jpg', '12.jpg', '13.jpg', '14.jpg', '15.jpg', '16.jpg', '17.jpg', '18.jpg', '19.jpg', '20.jpg', '21.jpg', '22.jpg', '23.jpg', '24.jpg'];
    	var rtimes = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]; 
    	
    	var LBfade_in = LBone;
    	var LBfade_out = LBtwo;
    	var LBidx = -1;
    	
    	function rotateLB() {
    		var today=new Date();
    		var h=today.getHours();
    		var curidx=0;
    		var i;
    		
    		for (i=((rtimes.length)-1);i>=0;i--) 
    		{
    			if (h<rtimes[i])	{curidx=i;}
    		}
    
    		if (curidx != LBidx) {
    			LBidx = curidx;
    			
    			LBfade_in.src = images[LBidx];
    			
    			var LBfade_tmp = LBfade_in;
    			LBfade_in = LBfade_out;
    			LBfade_out = LBfade_tmp;
    
    			LBfade_in.className='fade-out';
    			LBfade_out.className='fade-in';
    		
    		}
    		setTimeout(rotateLB,60*1000);	
    	}
    	
    	rotateLB();	
        </script>
    </body></html>
    So is it possible to have the lockscreen change at a set interval (1hour in my case) randomly? Is there a program I haven't found? I found Bosspaper which does wallpapers but not lockscreens.

    Thanks
    I'm not perfect, always correct me when I'm wrong

    2011-06-01 09:54 PM
LINK TO POST COPIED TO CLIPBOARD