Contagious
New Member
heya, well like the title says - i need a script the when a user hovers over a div another div (bellow it) becomes visable without moving other tags & divs on the page.
The image bellow illustrates this:
Heres my basic code, note the "margin-left:420px;" for the small hover button is just for structure (there will be other stuff filling the gap)
Help will be appreciated
- i suck at javascript...
The image bellow illustrates this:

Heres my basic code, note the "margin-left:420px;" for the small hover button is just for structure (there will be other stuff filling the gap)
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<style type="text/css">
#big_box {
width:450px;
min-height:200px
}
#header {
width:100%;
height:21px;
margin-top:0px;
}
#small_div {
width:30px;
background-color:#999;
margin-left:420px;
}
</style>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<body>
<div id="small_div">This</div>
<div id="big_box">
<div id="header">Header
</div>
</div>
</body>
</html>
Help will be appreciated