lennardh Posted September 30, 2017 Share Posted September 30, 2017 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 More sharing options...
dsonesuk Posted September 30, 2017 Share Posted September 30, 2017 (edited) That is mainly done by using JavaScript https://www.w3schools.com/howto/howto_js_slideshow.asp but you may need to ask permission before using another sites images first. Edited September 30, 2017 by dsonesuk 1 Link to comment Share on other sites More sharing options...
lennardh Posted October 3, 2017 Author Share Posted October 3, 2017 thanks! it's for personal use now so I think i'll be fine Link to comment Share on other sites More sharing options...
lennardh Posted October 4, 2017 Author Share Posted October 4, 2017 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 More sharing options...
dsonesuk Posted October 4, 2017 Share Posted October 4, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now