Alyssa-Charlie Posted May 5, 2023 Share Posted May 5, 2023 (edited) I need to use a two-dimensional array to ensure that when you press a button three web pages automatically follow each other and return to the starting position. Each web page displays a photo with an audio file. I don't have the faintest idea where to start. This is what I have so far: <?php class mum{ VAR imgArray = new Array(); imgArray[0] = new Image(); imgArray[0].src = 'http://localhost/Inzendopdracht%204%20afbeeldingen/um-gaatopen.jpg'; imgArray[1] = new Image(); imgArray[1].src = 'http://localhost/Inzendopdracht%204%20afbeeldingen/um-open.jpg'; imgArray[5] = new Image(); imgArray[5].src = 'http://localhost/Inzendopdracht%204%20afbeeldingen/um-gaatdicht.jpg'; function nextImage(element) Edited May 5, 2023 by Alyssa-Charlie Quote Link to comment https://forums.phpfreaks.com/topic/316256-array-en-images/ Share on other sites More sharing options...
requinix Posted May 5, 2023 Share Posted May 5, 2023 I assume that's supposed to be Javascript code? Describe what it is you need to do, in detail, then post the full code you've written so far and explain what sort of problem you're having with it. Quote Link to comment https://forums.phpfreaks.com/topic/316256-array-en-images/#findComment-1608075 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.