Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
image map not working with ie6
12th November, 21:21
Post: #1
image map not working with ie6
Hey There,

Having issues in IE6 using an image map.

The tooltip shows, but the actual "title" box shows as well. The problem seems to correct itself if you hover over, point somewhere else, then hover again.

It happens on your image map demo page as well.

Any ideas?
Find all posts by this user
Quote this message in a reply
23rd November, 00:21
Post: #2
image map not working with ie6
mcorkum, try manually removing the title attribute from the elements after the qTip call like so:

JS Code
$(element).qtip().removeAttr('title');

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
4th December, 15:01 (This post was last modified: 4th December 15:02 by supun.)
Post: #3
image map not working with ie6
I'm also having a problem with ie6 and ie7 in an imagemap, my tootips just dont appear.

This is my code:

JS Code
// Create the tooltips only when document ready
$(document).ready(function()
{
 
var contents = [
   'content.php?contentid=67',
   'content.php?contentid=63',
   'content.php?contentid=62',
   'content.php?contentid=64',
   'content.php?contentid=65',
   'content.php?contentid=66',
   'content.php?contentid=68'
];
 
 
   // Use the each() method to gain access to each elements attributes
   $('area').each(function(i)
   {
      $(this).qtip(
      {
         content: {
            url: contents<span style="font-style: italic;">, // Use the ALT attribute of the area map
      },
 
effect: {
   type: 'fade',      // Determines the type of animation that occurs on position adjustment (slide/fade/none)
   duration: 120,      // Determines the duration of the above effect
   threshold: 1      // If update of the tooltip position requires a movement along either axis [i]greater than</span> this value, no animation occurs.
},
 
   style: { 
      width: 346,
      padding: 20,
      border: {
         width: 3,
         radius: 3,
         color: '#000'
      },
      name: 'light' // Inherit from preset style
   },
   position: {
      corner: {
         target: 'leftMiddle',
         tooltip: 'rightMiddle'
      }
   }
      });
   });
});
Find all posts by this user
Quote this message in a reply
4th December, 20:11
Post: #4
image map not working with ie6
fitzu, make sure to check for leading commas in your code before trying to test it out in IE, as it will send out an error and halt the script if you ahve any.

Here's the correct code:
JS Code
// Create the tooltips only when document ready
$(document).ready(function()
{
 
var contents = [
   'content.php?contentid=67',
   'content.php?contentid=63',
   'content.php?contentid=62',
   'content.php?contentid=64',
   'content.php?contentid=65',
   'content.php?contentid=66',
   'content.php?contentid=68'
];
 
 
   // Use the each() method to gain access to each elements attributes
   $('area').each(function(i)
   {
      $(this).qtip(
      {
         content: {
            url: contents<span style="font-style: italic;"> // Use the ALT attribute of the area map
      },
 
effect: {
   type: 'fade',      // Determines the type of animation that occurs on position adjustment (slide/fade/none)
   duration: 120,      // Determines the duration of the above effect
   threshold: 1      // If update of the tooltip position requires a movement along either axis [i]greater than</span> this value, no animation occurs.
},
 
   style: { 
      width: 346,
      padding: 20,
      border: {
         width: 3,
         radius: 3,
         color: '#000'
      },
      name: 'light' // Inherit from preset style
   },
   position: {
      corner: {
         target: 'leftMiddle',
         tooltip: 'rightMiddle'
      }
   }

});
});
});

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
7th December, 12:24
Post: #5
image map not working with ie6
Many thanks Craig, that fixed my problem.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  qtip only working the first time harjits 0 12 18th May 14:23
Last Post: harjits
  [Solved] qTip2 inside map infowindow costales 3 191 15th April 08:29
Last Post: costales
  [Solved] Center tooltip on page and also use a thumb image to popup the real image ChileCaliente 2 255 26th March 22:54
Last Post: ChileCaliente
  [Solved] Problem with my map area installation timtimd 1 241 14th March 17:34
Last Post: Craig
  Dynamic contenct not working property in sortable cleung 5 733 8th December 18:45
Last Post: Craig
  [Solved] add an image to the qtip? knowlton 2 999 21st October 04:58
Last Post: nevf
  Youtube demo not working on ffox 6 & 7 ivanmayes 2 696 11th October 17:14
Last Post: ivanmayes
  [Solved] Why is this not working - Link nested in tooltip needed 1 543 12th September 17:10
Last Post: Craig
  [Solved] Many tooltips on image map causing slow down purplespider 2 1,051 2nd September 15:15
Last Post: purplespider
  [Solved] Dynamic content based off map area befeetback 1 1,046 25th August 18:23
Last Post: Craig



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