Results 1 to 3 of 3

Thread: Thumbnail Popup Direction

  1. #1
    Thread Starter
    zaidrix's Avatar
    Join Date
    Jul 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbnail Popup Direction

    Hello,

    I really need the nice thumbnail popup image to be loaded onto the right side instead of the left side of the cursor as I have the website in RTL language and everything should be in the other way, I know the trick is in the code below but I just can't figure out how to do it, could you help me in that please?

    PHP Code:

    creates previews of images
    function imagePreview() {
        var 
    xOffset 10;
        var 
    yOffset 30;

        
    jQuery('a.preview').hover(function(e) {
            
    jQuery('body').append("<div id='preview'><img src='" jQuery(this).data('rel') + "' alt='' /></div>");
            
    jQuery('#preview').css('top', (e.pageY xOffset) + 'px').css('left', (e.pageX yOffset) + 'px').fadeIn('fast');
        }, function() {
            
    jQuery('#preview').remove();
        });

        
    jQuery('a.preview').mousemove(function(e) {
            
    jQuery('#preview').css('top', (e.pageY xOffset) + 'px').css('left', (e.pageX yOffset) + 'px');
        });

    Thanks

  2. #2
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  3. #3
    Thread Starter
    zaidrix's Avatar
    Join Date
    Jul 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Events list - Show featured image thumbnail instead of calendar thumbnail
    By cllzor in forum Vantage General Discussion (Legacy)
    Replies: 8
    Last Post: January 19th, 2016, 03:02 AM
  2. Thumbnail Popup
    By ajamm in forum Report ClassiPress Bugs
    Replies: 6
    Last Post: September 26th, 2012, 07:41 AM
  3. PLEASE point me in the right direction...
    By artfan1 in forum Report ClassiPress Bugs
    Replies: 31
    Last Post: November 11th, 2011, 12:56 PM
  4. RTL - Right to Left page direction
    By salota8550 in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: December 26th, 2010, 02:04 AM
  5. how to change theme direction to hebrew ( RTL )
    By clalit in forum ClassiPress General Discussion
    Replies: 4
    Last Post: September 5th, 2010, 06:50 PM