Solved

JQuery slide effect

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
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…

760 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

18 Experts available now in Live!

Get 1:1 Help Now