Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
jQuery tooltip question
Old 12-08-2008, 05:57 PM jQuery tooltip question
Junior Talker

Posts: 1
Name: Rob Domin
Trades: 0
Hi,
I am a web designer just beginning to learn javascript. I'm trying to get the hover tooltip to appear on the right and top of the mouse instead of on the left and bottom. Here's the link: http://rockthedenim.com/store/
I tried modifying the following code with no success. Any help would be greatly appreciated:
Code:
function kriesi_tooltip(selector, selectname, atrribute){
jQuery(selector).each(function(i){
            if (jQuery(this).attr(atrribute) != ""){
                
            jQuery("body").append("<div class='"+selectname+"' id='"+selectname+i+"'><div><img class='tooltipimg' src='"+jQuery(this).attr(atrribute)+"' alt='' /></div><span><img src='"+ templateurl +"grafx/store/tooltip-trans.png' alt='' /></span</div>");
            
            jQuery(this).removeAttr(atrribute).mouseover(function(e){
                    jQuery("#"+selectname+i).css({display:"none", visibility:"visible"}).fadeIn(400);
            }).mousemove(function(e){
                    jQuery("#"+selectname+i).css({left:e.pageX+1, top:e.pageY+0});
            }).mouseout(function(){
                    jQuery("#"+selectname+i).css({display:"none", visibility:"hidden"});                  
            });
Thank you,
Rob
robd2000 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to jQuery tooltip question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36484 seconds with 12 queries