I’m pretty new to JS and dont have much knowledge, i need some very good guide or a file which is already rdy to do the following:
i got a video page, which has images in it, each image is a link to a different video, i want to make it so when 2 lines of images reached, there’ll be a button named Next (or anything, doesn’t matter) to lead to the Next page of images, note that i want only the part iwth the images to change while using those buttons, not the whole page,
i want it to work so after each line of videos it’ll have buttons to go next / prev page, for now all of the images are around one big UL tag but i’ll change it so each line will be surrounded by UL tag after some1 will give me the proper solution to do that
You could try putting a <div> around your images that is as wide as your first row and the height of two images. Set the CSS overflow and clip to auto and you will have a vertical scroll bar that will allow you to scroll through your total list which may be many rows long.
AllanP’s is definitely the simplest and easiest to implement. However, I started working on my JavaScript solution before he posted, so I don’t want to waste it: