Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ImageMap with alt
26th June, 18:36
Post: #1
ImageMap with alt
Hey,
Excellent plugin!

Question: How would I specify which property the content of the tooltips would come from?

I had the image map tooltip working with title, but I needed to switch to alt to make IE happy. Any ideas?
Find all posts by this user
Quote this message in a reply
26th June, 23:33
Post: #2
ImageMap with alt
medltito,

Upgrade to the latest branch release, it checks both title and alt attributes for content: http://bazaar.launchpad.net/~craig.craig...runk/files

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
3rd August, 19:04
Post: #3
ImageMap with alt
craig Wrote:medltito,

Upgrade to the latest branch release, it checks both title and alt attributes for content: http://bazaar.launchpad.net/~craig.craig...runk/files

Sorry for the late reply.

On a related note, are you aware of any way to suppress the tooltip generated by IE6+7? It seems that even with the tooltip data in the alt attribute AND a blank title attribute, IE6+7 like to display the browser tooltip anyway. What results is an ugly combination of qTip and IE's built in tooltip.
Find all posts by this user
Quote this message in a reply
3rd August, 19:48
Post: #4
ImageMap with alt
Just make sure to remove the attributes after the qTip call:

JS Code
$('.selector').qtip({}).removeAttr('title').removeAttr('alt')

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
11th August, 19:00
Post: #5
ImageMap with alt
I am having this exact same problem. I have an image map and in IE, the default IE alt as well as the qTip shows up. Craig's solution looks wonderful but I'm not sure where to put the code provided. I'm very new to javascript and jQuerty.

Here is my code, where do I put Craig's code?

JS Code
<script class="example" type="text/javascript"> 
// Create the tooltips only when document ready
$(document).ready(function()
{
   // Use the each() method to gain access to each elements attributes
   $('area').each(function()
   {
      $(this).qtip(
      {
         content: $(this).attr('alt'), // Use the ALT attribute of the area map
         style: {
            name: 'light', // Give it the preset dark style
            border: {
               width: 0, 
 
               radius: 4 
            }, 
            tip: true // Apply a tip at the default tooltip corner
         },
    position: {
      corner: {
         target: 'rightMiddle',
         tooltip: 'leftMiddle'
      }
     }
 
      });
   });
});
</script>
Find all posts by this user
Quote this message in a reply
11th August, 20:41
Post: #6
ImageMap with alt
I actually found the solution to my question. This works great!

JS Code
o<strong></strong>nmouseover="this.alt='';showtip('my tooltip')" o<strong></strong>nmouseout="hidetip()"
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] One Imagemap w/ Tooltip, another without? dangerman 0 59 7th May 22:08
Last Post: dangerman
  [Solved] Ajax imagemap data problem carelmeyer 0 939 1st May 17:39
Last Post: carelmeyer
  Problems with qTip and imagemap JavaGuy 2 986 10th February 18:03
Last Post: JavaGuy
  [Solved] How to format text in alt tag? adolfo 2 1,297 30th October 06:41
Last Post: kiddailey
  [Solved] Tip Positioning using an Imagemap Chris Rouxel 0 954 21st September 10:53
Last Post: Chris Rouxel
  [Solved] qTip showing when ALT tag not provided jarheaddoug 0 1,269 14th July 01:17
Last Post: jarheaddoug
  passing alt attribute from alexgraham 0 52 22nd March 22:15
Last Post: alexgraham
  [Solved] Alt tag is still showing... tonynoriega 1 1,604 4th February 17:22
Last Post: dustmoo
  [Solved] IE 6, 7, and 8 (compatibility view) showing alt tags on hover of image cgfarmer 10 1,508 13th January 13:39
Last Post: cgfarmer
  Tooltip position incorrect on imagemap area (only in FF) ajohnson1 2 1,744 8th September 15:43
Last Post: ajohnson1



User(s) browsing this thread: 1 Guest(s)