Jump to content

website url edit


lennardh

Recommended Posts

hey, I'm pretty new to html so I don't know if this is even possible...

how do i make a next/previous button that shows a image from another website, like: hello.com/images/1000/ and when i click next it automatically changes 1000 to 1001, 1002, 1003, ... so it's like hello.com/images/1001/   -  hello.com/images/1002/      .......

 

I hope someone can answer this. (if it's even possible)

 

thanks!

Link to comment
Share on other sites

i actually tried this, but it isn't exactly what i meant, i mean like if you put in the code: hello.com/images/290/

and then on the website you can click next and the code automatically changes the part ''290'' to ''291'' and so on...

so I don't have to put all image links in the code..

Link to comment
Share on other sites

But! you are already putting most of link in the code anyway, if its just changing image number difference anyway?

You have to identify if images exist, before  initiating next or previous showing of images, identify when to stop or return to start to loop again.

You could store all the number image file names in array, and loop through those, but these would require someone manually adding to array by hand.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...