Solved

JQuery slide effect

Posted on 2013-11-04
1
152 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

by Julian Matz As of jQuery (http://jquery.com/) 1.4 the .live() method (http://api.jquery.com/live/) supports custom events as well as some standard JavaScript events that it previously didn't support. Among these is the submit event. Unlike …
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

713 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