Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Tip Positioning using an Imagemap
21st September, 10:53 (This post was last modified: 21st September 11:26 by Chris Rouxel.)
Post: #1
[Solved] Tip Positioning using an Imagemap
Hi all

First off, what a great little bit of kit QTip is!

Secondly, I'm wondering if i can get a little help.

I'm running QTip on an image map, but I'm finding on certain screen sizes the tip will disappear off the edge of the page and is unreadable.

I've tried using tip positioning abut no mapper what I try the tip is still defaulting to the bottom right.

can you have a look at what I'm doing wrong, and if there is a workaround?

JS Code
<script 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: {
			padding: 10,
			width: 350,
			lineHeight: 1.5,
			background: '#000',
			fontSize: 12,
            name: 'dark', // Give it the preset dark style
            border: {
               width: 0, 
               radius: 2 
            }, 
            tip: 'topLeft'
 
         }
      });
   });
});
</script>


Any help wins an internet cookie!

Thanks

Chris.
Sorry guys, solved it.

forgot to include

JS Code
adjust: {screen: true}


Duh....
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 61 7th May 22:08
Last Post: dangerman
  [Solved] Ajax imagemap data problem carelmeyer 0 941 1st May 17:39
Last Post: carelmeyer
  [Solved] Custom positioning? clorentzen 4 213 10th April 19:06
Last Post: clorentzen
  [Solved] Positioning tooltip inside page dmilne 1 505 30th September 14:56
Last Post: Craig
  [Solved] iPad positioning markedwards 7 2,515 5th September 10:10
Last Post: Boykids
  Safari qtip positioning grumpygamer 1 700 20th April 13:52
Last Post: grumpygamer
  [Solved] Tooltip positioning issues on thumbnail. escape 2 687 5th April 04:14
Last Post: kiddailey
  [Solved] I don't understand positioning at all. Help, please? bensonmi 1 484 11th February 18:22
Last Post: Craig
  Problems with qTip and imagemap JavaGuy 2 989 10th February 18:03
Last Post: JavaGuy
  [Solved] Positioning question olaw 1 729 8th December 15:26
Last Post: Craig



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