www.webdeveloper.com
Results 1 to 5 of 5

Thread: Need help adding pop up text box to image

  1. #1
    Join Date
    Oct 2010
    Posts
    4

    Need help adding pop up text box to image

    I would like to add a pop up text box to an image so that when the image is highlighted (not necessarily clicked on) a pop up box appears with text.

    Can someone please provide me with a code for this.

    Thanks.

  2. #2
    Join Date
    Mar 2010
    Location
    Minneapolis
    Posts
    32
    hmm, wouldn't that be just adding "alt" to your image tag?

    <img src="yourimage.jpg" alt="text here">

  3. #3
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Quote Originally Posted by dominicbelfiori View Post
    hmm, wouldn't that be just adding "alt" to your image tag?

    <img src="yourimage.jpg" alt="text here">
    No, that would be the title attribute. alt text is displayed when the image is not available.
    At least 98% of internet users' DNA is identical to that of chimpanzees

  4. #4
    Join Date
    Mar 2010
    Location
    Minneapolis
    Posts
    32
    ahh you're right. Woops >_< Good catch Fang!

  5. #5
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    You can use javascript and/or AJAX to provide the popup as a sort of "Tool Tip"
    Here's one link to get you started:
    http://www.dyn-web.com/code/tooltips/
    Lots of examples, you should find something to work for you or Google for more info "javascript tool tips"
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles