View Full Version : I Need Help With Images Next-prew
HELP ME FAST
11-23-2006, 02:04 PM
Hi !
Im very new in this please help me i have trouble
I have 2 page.
On first page have button to page 2
On page 2 i wont Image object and 3 buttnons.
1button - next image
2button - prew image
3button - back to page 1
I have folder in my prject IMAGESOS with 1000 images
I need when open page 2 show image in image object first alphabetic
when clik next buton show second alphabetic image if clik prew button
show image alphabetic-1
What is code to page 2 for image object and button next and prew
Sorry for my english is not a good !
Thanks!
HELP ME FAST
11-23-2006, 02:05 PM
Hi !
Im very new in this please help me i have trouble
I have 2 page.
On first page have button to page 2
On page 2 i wont Image object and 3 buttnons.
1button - next image
2button - prew image
3button - back to page 1
I have folder in my prject IMAGESOS with 1000 images
I need when open page 2 show image in image object first alphabetic
when clik next buton show second alphabetic image if clik prew button
show image alphabetic-1
What is code to page 2 for image object and button next and prew
Sorry for my english is not a good !
Thanks!
yosik
11-24-2006, 02:30 AM
To order images alphabetically is a bit complicated, but if you can rename them with sequential numbers (pic1.jpg, pic2.jpg, etc..), it gets easier.
Lets say you have 1000 images in the Docs/images directory inside your project. Name them as above.
Put an image object in your Page2.
In the onShow event of the page, put the following actions:
i=1;
Image.Load("image1", "Autoplay//Docs//images//pic"..i);
Then in the onClick event of the NEXT Button, put the following actions:
i = i+1;
if(i>1000) then
i = 1;
end
Image.Load("image1", "Autoplay//Docs//images//pic"..i..".jpg");
Then in the onClick event of the PREVIOUS Button, put the following actions:
i = i-1;
if(i<1) then
i = 1000;
end
Image.Load("image1", "Autoplay//Docs//images//pic"..i..".jpg");
Good luck
Yossi
HELP ME FAST
11-24-2006, 05:10 AM
Thanks!
I try this but i need show in alphabetic witout rename pictures it's posible?
it's possible like background image change on button it's not nessery
change image on image object without image object 2 button for changing
background image NEXT and PREVIOUS image alphabetic?
I don't know thing do?
when clik on buton on page 1 open page 2 and
like object image be global variabe name is SOS.
first value of SOS is first alphabetic image.
Button NEXT chanche SOS value and show on image object next alphabetic image, Button PREVIOUS chanche SOS value and show on image object previous alphabetic image
usernameCasper
11-24-2006, 05:49 AM
http://www.indigorose.com/forums/showthread.php?t=13197&highlight=slideshow
P.S.: Try to use the search button
Greets,
Casper
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.