johnhyde Posted October 9, 2018 Share Posted October 9, 2018 My knowledge of script is limited and I wondered what changes need to be made to 'image magnifier glass' to select a single image from say a drop down list (text description). Link to comment Share on other sites More sharing options...
justsomeguy Posted October 9, 2018 Share Posted October 9, 2018 If you're talking about this: https://www.w3schools.com/howto/howto_js_image_magnifier_glass.asp Most of that code is fine, but you need to add code to handle the change event on a select list and then you would update the image element on the page with the filename of whatever they chose from the select list. Link to comment Share on other sites More sharing options...
johnhyde Posted October 10, 2018 Author Share Posted October 10, 2018 I have attempted to change the image magnifier glass with some success, but the magnifier glass if moved quickly shows a glimpse of a previous image. I guess also that the select list could be written better. I would appreciate some advice. imgmod.html Link to comment Share on other sites More sharing options...
justsomeguy Posted October 10, 2018 Share Posted October 10, 2018 There's going to be loading time for the next image, if you want to avoid that then maybe you could disable the magnification until the image loads, or maybe there's another workaround. You could also try pre-loading all of the images. 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