Which web or browser technology is the best solution for my requirement? [closed]

General Tech Technology & Software 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Technology & Software related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I have a requirement to build a website where the user can choose a design from a standard template and a number of optional parts. So for example, it could be selecting an outfit, where there is a fixed template image of a person, and the user selects different colour trousers, shirts, socks etc from a scrolling list of images. When the user selects a particular item from the list, the image appears on the template giving an indication of the overall look.

It doesn't have to be too fancy with any moving images or transitions, but just the ability to overlay fixed images onto the template.

What would be my best choice of technology and way of going about it? Standard HTML? Css? Javascript? Something more server orientated such as JSP? Would appreciate any input.

profilepic.png
manpreet 2 years ago

You can solve it in many ways, it mostly depends on your requirements and what you're comfortable with doing.

Personally I would have done it with plain javascript based on the description you gave.

Requirements:

  • Change images during runtime.

    JavaScript does a good job with this.

  • Predefined coordinates for where the overlay needs to be positioned.

    Some type of storage for the coordinates, simplest possible would be hardcoded values in your script.

  • Ability to position the image as an overlay at said coordinates.

    CSS with position: absolute; can be used for this.

  • Image stacking and index logic.

    Can be done with JavaScript.

This is the simplest solution to the problem given. If you have more complex needs like zooming or resizing, you may want to check out .


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.