HTML Image Map Tutorial

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 65

  • @uniquechannelname3402
    @uniquechannelname3402 2 роки тому +4

    I can't put into words how much I appreciate this, I can't believe it worked. Thank you so much!

    • @PortfolioCourses
      @PortfolioCourses  2 роки тому

      You're very welcome, I'm so glad to hear that it helped you out! :-)

  • @mongevoltaireartlabasbas9305
    @mongevoltaireartlabasbas9305 2 роки тому +1

    Great tutorial Mister. It's straightforward and it is not confusing.

    • @PortfolioCourses
      @PortfolioCourses  2 роки тому

      Thank you for the kind feedback, I'm glad you enjoyed it! 😀

  • @AhadQasimi
    @AhadQasimi 7 місяців тому

    Thank you for sharing this video. I was wondering if it's possible to create an image map on a video?

  • @jadeho-lam8675
    @jadeho-lam8675 7 місяців тому

    It's great tutorial ! How can I share the image with other people?

  • @CYANERION
    @CYANERION 2 роки тому +1

    Very simple and straightforward, Thank you for this very useful information

  • @drakelazerus
    @drakelazerus Рік тому

    Thank you for this! How would I set it up, to where my image links to another image and pulls up that image, rather than link to a website?

    • @PortfolioCourses
      @PortfolioCourses  Рік тому

      You're welcome! :-) In terms of "linking to an image" if you provide a path/URL to an image in the "href" attribute then you will get a link to an image. But that would load the image almost as if a website was being loaded, except only the image will be displayed. If you want to alter the content of the existing page to display an image, you would want to use JavaScript to do that.

  • @soniferous
    @soniferous 7 місяців тому +1

    How do image map perform when resizing the page or to different devices? Is it fixed or can it be dynamic?

    • @mrvfino
      @mrvfino Місяць тому

      Did you find a solution for this? I'm thinking about using the coordinates within the image itself.

  • @chrisogle001
    @chrisogle001 4 місяці тому

    Great video. Thanks!

  • @smlzin13
    @smlzin13 2 роки тому

    Thanks for the video.
    What if I want to know where the user is clicking at an image?
    How can I get the X and Y of an click at an image?

    • @PortfolioCourses
      @PortfolioCourses  2 роки тому

      You're welcome! :-) To the best of my knowledge, you would need to use JavaScript to do that, and the solution would look something like the answer to the question here: stackoverflow.com/questions/49807088/javascript-get-x-y-coordinates-of-click-in-image.

  • @robmatt
    @robmatt Рік тому

    God sent you to us! Thank you very much for this tutorial. It helps me a lot.

    • @PortfolioCourses
      @PortfolioCourses  Рік тому

      You've very welcome, I'm so glad to hear the tutorial was helpful for you! :-)

  • @wei48221
    @wei48221 Рік тому

    Awesome! It's exactly what I am looking for.

    • @PortfolioCourses
      @PortfolioCourses  Рік тому

      Excellent, I’m really glad to hear this was helpful! :-)

  • @EverythingHP
    @EverythingHP Рік тому

    Can you do this to the background image instead of the image? And can you gave it link to another page in the website instead of a link?

    • @PortfolioCourses
      @PortfolioCourses  Рік тому +1

      It doesn't look like there is any easy way to make the background image of a website an image, people online seem to be suggesting solutions involving JavaScript:
      stackoverflow.com/questions/34644103/image-map-a-background-image
      stackoverflow.com/questions/7844399/responsive-image-map
      github.com/davidjbradshaw/image-map-resizer
      And yes, you can make the link go anywhere you like. :-) BTW cool channel!

    • @EverythingHP
      @EverythingHP Рік тому

      @@PortfolioCourses Thank you!!!

    • @PortfolioCourses
      @PortfolioCourses  Рік тому

      You’re welcome! :-)

  • @sostheneshamamba3486
    @sostheneshamamba3486 8 місяців тому

    Wow👏👏👏 lesson well explained 🎉

  • @Only1pasco
    @Only1pasco 6 місяців тому

    Now I can do my project

  • @yoominchoi910
    @yoominchoi910 Рік тому

    Hi, thank you for the tutorial! Would there any way that I can put mouse hover event on each area?

    • @PortfolioCourses
      @PortfolioCourses  Рік тому

      You’re welcome Yoomin! :-) I don’t have a video covering that topic but you should be able to add a mouse hover effect/event using JavaScript, maybe this link will help: nestcode.co/en/blog/create-an-interactive-image-map-and-highlight-on-areas-when-mouseover

  • @smurfy123888
    @smurfy123888 2 роки тому

    Thank you for the tutorial. I wanted to ask if i can assign a value when you click an image. Is it possible?

    • @PortfolioCourses
      @PortfolioCourses  2 роки тому +1

      You're welcome! :-) And with JavaScript, yes, this would be possible. We could setup a function to assign a value, and then set that function up to run when the image is clicked. I don't have a tutorial on this yet, but searching for "image click javascript event" might give you some tutorials perhaps.

    • @smurfy123888
      @smurfy123888 2 роки тому

      @@PortfolioCourses thank you so much for your response. I will look into it.

    • @PortfolioCourses
      @PortfolioCourses  2 роки тому +1

      @@smurfy123888 You're welcome! 🙂

  • @arnoldotoho
    @arnoldotoho 2 роки тому

    Very concise. Thank you.

  • @sagianakar8605
    @sagianakar8605 Рік тому

    You are a king thank you so much

  • @mvabhishek9296
    @mvabhishek9296 Рік тому

    well and superb explanation sir😇😇

    • @PortfolioCourses
      @PortfolioCourses  Рік тому

      I'm very glad to hear you enjoyed the explanation! :-)

  • @Anonymous-zi5wr
    @Anonymous-zi5wr 9 місяців тому

    How do you map a picture that has a thousands of points?

  • @mehking2350
    @mehking2350 2 роки тому

    Thanks a lot sir this was helpful 🙏

  • @JohnT-GNM
    @JohnT-GNM Рік тому

    what is the code editor being used here ?

    • @PortfolioCourses
      @PortfolioCourses  Рік тому

      Atom: en.wikipedia.org/wiki/Atom_(text_editor). It's no longer updated, and I switched to Visual Studio Code. But it was a good lightweight editor. :-)

  • @fasihabdullah9960
    @fasihabdullah9960 2 роки тому

    What if we have a webpage where the size of a picture is dynamic (in the sense that it depends on the size of the wrapper/container div)?
    How to make a more dynamic map where size of window/image will not affect clickable areas?

    • @PortfolioCourses
      @PortfolioCourses  2 роки тому +3

      Great question Fasih! 😀 We actually can't "natively" make an image map responsive. We would need to use something like JavaScript to dynamically alter the image map. There are things like jQuery plugins that will do this for us automatically though. This article discusses these points more: www.madcapsoftware.com/blog/how-to-implement-responsive-image-maps-in-your-html5-outputs/.

    • @fasihabdullah9960
      @fasihabdullah9960 2 роки тому

      @@PortfolioCourses I see thanks.

    • @PortfolioCourses
      @PortfolioCourses  2 роки тому

      You’re welcome! :-)

  • @mrkdeyyt4596
    @mrkdeyyt4596 8 місяців тому

    sir, what if my image was too big so I tired to use width and height but I think it affects the coords

    • @PortfolioCourses
      @PortfolioCourses  8 місяців тому

      Hmm, can you re-size it?

    • @mrkdeyyt4596
      @mrkdeyyt4596 8 місяців тому

      @@PortfolioCourses is there a way to resize it?

    • @PortfolioCourses
      @PortfolioCourses  8 місяців тому

      Programs like Paint and PhotoShop can do that, or even online programs like this one: imageresizer.com/

  • @kingtube13
    @kingtube13 2 роки тому +1

    thank you ...

  • @funkyspin2506
    @funkyspin2506 Рік тому

    What about responsive image sir

    • @PortfolioCourses
      @PortfolioCourses  Рік тому

      Hmm, maybe one day I can make a video on responsive image maps! :-)

  • @RohitKumar-jn6js
    @RohitKumar-jn6js Рік тому

    HOw to apply dynamic image mapping

    • @PortfolioCourses
      @PortfolioCourses  Рік тому

      I don't have a video on that topic yet Rohit. :-( You might be able to find something helpful online, for example: stackoverflow.com/questions/13321067/dynamically-resizing-image-maps-and-images.

  • @ravenor4495
    @ravenor4495 2 роки тому

    My problem is i dont undestand the x and y how u will know where is x or y

    • @PortfolioCourses
      @PortfolioCourses  2 роки тому +3

      Great question! 🙂 You can use a tool like this to help you get the x and y values: www.image-map.net/. There are many tools like this, for example: www.image-maps.com/. You could also use something like photoshop, when you go over the image with your cursor it should show the x and y values somewhere.

    • @arnoldotoho
      @arnoldotoho 2 роки тому

      Are you familiar with graphs? I believe the x and y coordinates use the x/y axes principles.

    • @IT-sq5rj
      @IT-sq5rj 2 роки тому

      Use paint. Down the bottom are the Coords

  • @cloudsystem3740
    @cloudsystem3740 2 роки тому

    wow

  • @learnnottogiveaf8747
    @learnnottogiveaf8747 Рік тому

    God bless you