Solved

JQuery slide effect

Posted on 2013-11-04
1
143 Views
Last Modified: 2014-11-14
Hi,

I have a list of 6 client logos which i have changed so that they have jquery popups as you hover over them.

http://www.bluebean.org.uk/sites/bigcreative/

I have them working but as floated <a> links. The issue i have is that the box appears above the centre of each one, so if you hover over the first or last logo then the box could be cut off by the screen, depending on how its being viewed. Is there a way i can prevent this also add in the same effect that is used on the bottom of the following page, so it follows the cursor and has a bounce to it?

https://www.tsohost.com/

Thanks,
0
Comment
Question by:Andy6350
1 Comment
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39624242
Instead of reinventing the wheel as they say, I have used qtip for a number of years http://qtip2.com/   There is a function to keep the tip inside the viewport http://qtip2.com/plugins#viewport

$('.selector').qtip({
    content: {
        text: 'If I go off-screen, my positioning corners will adjust. Resize your browser window to see!'
    },
    position: {
        viewport: $(window)
    }
});

Open in new window


You can style the tip as you like with css.   It is worth checking out.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi all! Recently there was EE question and the person wanted to have a multi-column textbox <div> selection, so as a first step to answer I provided a link but that was not complete with JavaScript selection, but had a good style sheet. So as a ques…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now