?
Solved

Looking for hover triggered side flyout panel

Posted on 2009-05-13
3
Medium Priority
?
2,240 Views
Last Modified: 2012-05-06
I have gone through google, jquery, and everything I know trying to find a script for a right to left flyout panel that is triggered on hover. I have found plenty of drop down panels but I don't know how to modify them to go right to tleft and to do it on hover.

I am creating a help section that sits on the right side of a lightbox popup. When they hover over a bar on the right side of the box it will flyin a panel containing help options.

I am already using jQuery so to stick with that would be nice.

Any help is appreciated!

Thanks!!!
0
Comment
Question by:Shaye Larsen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
alien109 earned 2000 total points
ID: 24377303
something like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Language" content="en-us" />
 
<title></title>
 
<style type="text/css">
 
#container {
	width:200px;
	height:200px;
	position:relative;
	overflow:hidden;
	background-color:#eee;
	border:1px solid #000;
}
 
#panel {
	position:absolute;
	left:180px;
	clear:both;
	width:200px;
}
 
#handle {
	width:20px;
	height:200px;
	background-color:#999;
	float:left;
	border-right:1px solid #000;
}
 
#content {
	background-color:#ccc;
	width:180px;
	height:200px;
	float:left;
}
 
</style>
 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
	$("#panel").hover(function() {
		$(this).stop().animate({left:"0px"}, 300);
	},
	function() {
		$(this).stop().animate({left:"180px"}, 300);
	});
});
 
</script>
 
</head>
<body>
 
 
 
<div id="container">
	<div id="panel">
		<div id="handle"></div>
		<div id="content"></div>
	</div>
</div>
 
</body>
 
</html>

Open in new window

0
 
LVL 1

Author Closing Comment

by:Shaye Larsen
ID: 31581171
Perfect! Thanks! I had to make one small adjustment. The one pixel border wasn't accounted for in the width of the panel which caused the float:left on its two child divs to stack instead of sitting side by side. So increasing that to 201px fixed it.

Thanks again! Genius!
0
 
LVL 1

Author Comment

by:Shaye Larsen
ID: 24378407
Good to see you again!

I had to make one small adjustment. The one pixel border wasn't accounted for in the width of the panel which caused the float:left on its two child divs to stack instead of sitting side by side. So increasing that to 201px fixed it. Great script!
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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)
Suggested Courses

762 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