Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: HTML-image-slideshow
is a discussion within theSkinning / Themes Discussion
forums, a part of theDesign and Media For the iPhone / iPod Touch
section;Hi all, i made a theme that is separated in background and single widgets that i can change. one of the widgets is an image-slideshow, it slides only images that
...-
11-16-2012, 03:08 PM #1
HTML-image-slideshow
Hi all,
i made a theme that is separated in background and single widgets that i can change. one of the widgets is an image-slideshow, it slides only images that i have to type into the html-code but i want just slide all my pictures from the 100APPLE folder. do someone know how i can set up a folder and it slides all images inside the folder?
here is my the code:
<html>
<head>
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="firstimage.jpg"
var image2=new Image()
image2.src="picture2.jpg"
var image3=new Image()
image3.src="picture3.jpg"
var image4=new Image()
image4.src="picture4.jpg"
var image5=new Image()
image5.src="picture5.jpg"
var image6=new Image()
image6.src="picture6.jpg"
var image7=new Image()
image7.src="picture7.jpg"
var image8=new Image()
image8.src="picture8.jpg"
var image9=new Image()
image9.src="picture9.jpg"
//-->
</script>
</head>
<style>
body {
background-color: transparent;
margin: 0;
padding: 20px;
height: 96px;
width: 95px;
margin-top: 201px;
margin-left: 194px;
}
</style>
<body background="image.png">
<br><br> <img src="firstimage.jpg" name="slide" width="96" height="95" />
<script>
<!--
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src" )
if (step<9)
step++
else
step=1
//call function "slideit()" every 30.5 seconds
setTimeout("slideit()",4500)
}
slideit()
//-->
</script>
</body>
</html>
so instead of image1 to 9 i just want to use all pictures from here file://localhost/var/mobile/Media/DCIM/100APPLE/
hope someone can help me.
Greetz, Wilson
-
11-17-2012, 09:39 AM #2
no one knows?




LinkBack URL
About LinkBacks
Reply With Quote