Avatar of purplesoup
purplesoupFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

JavaScript display of multiple images within a png file

I believe it is possible to have a png file with multiple images on it, and have them rendered separately using JavaScript., However I've not been able to find out how to do this. Can anyone assist me?

Just to be clear, I can follow this
https://www.quora.com/How-do-you-insert-an-image-in-Javascript#

But what I'm looking for it something more  flexible, where the png file has various images positioned within it, and the JavaScript can access the images separately, to overlay one image on top of another, not simply adjust the offset of each image.
CSSImages and PhotosJavaScript

Avatar of undefined
Last Comment
purplesoup
ASKER CERTIFIED SOLUTION
Avatar of David S.
David S.
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of purplesoup
purplesoup
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Thank you this was very helpful!
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo