The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> vertical rollover menu in dreamweaver
kristiegeorge
post Mar 14 2009, 02:23 PM
Post #1





Group: Members
Posts: 1
Joined: 14-March 09
Member No.: 8,066



Site: http://kjc312.aisites.com/project2/index.html

Problem High Lighted In BOLD: Basically when you click on the HOME button you can see that all the other buttons react also. That is the problem. I am unsure why this is happening.

Code: <!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>
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #ffffff;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #1A2330;
}
.thrColFixHdr #container {
width: 780px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 0px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}
.thrColFixHdr #header {
background: #ffffff;
padding: 0 10px 0 -5px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
}
.thrColFixHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
color: #9E9873;
margin-left: 0pt;
}
.thrColFixHdr #sidebar1 {
float: left; /* since this element is floated, a width must be given */
width: 150px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
background: #ffffff; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 15px 10px 15px 20px; /* padding keeps the content of the div away from the edges */
}
.thrColFixHdr #sidebar2 {
float: right; /* since this element is floated, a width must be given */
width: 160px; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 15px 10px 15px 20px; /* padding keeps the content of the div away from the edges */
background-color: #ffffff;
}
.thrColFixHdr #mainContent {
margin: 0 200px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
padding: 0 10px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
}
.thrColFixHdr #footer {
padding: 0 10px 0 0px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background:#D9BA1E;
font-size: 10px;
}
.thrColFixHdr #footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
h1 {
font-size: 30px;
color: #9E9873;
}
body,td,th {
font-size: 12%;
}
.style1 {
font-size: 12px
}
a {
font-weight: bold;
}
-->
</style>
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.thrColFixHdr #sidebar1 { width: 180px; }
.thrColFixHdr #sidebar2 { width: 190px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
.thrColFixHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
</head>

<body class="thrColFixHdr" onload="MM_preloadImages('images/home_active1.gif','images/home_active2.gif','images/hs_active1.gif','images/cs_active1.gif','images/cs_active2.gif','images/ac_active2.gif','images/ac_active3.gif','images/jobs3.gif','images/jobs2.gif','images/contact_active1.gif','images/contact_active2.gif','images/hs_active.gif','images/cs_active.gif','images/ac_active.gif','images/jobs1.gif','images/contact_active.gif','images/home_active.gif')">

<div id="container">
<div id="header">
<h1 align="left"><img src="images/banner.gif" alt="banner" width="781" height="175" longdesc="images/banner.gif" /></h1>
<!-- end #header --></div>
<div id="sidebar1"><a href="index.html" target="_top" onclick="MM_nbGroup('down','group1','home','images/home_active.gif',0)" onmouseover="MM_nbGroup('over','home','images/home_active1.gif','images/home_active2.gif',0)" onmouseout="MM_nbGroup('out')"><img src="images/home.gif" alt="home" name="home" border="0" id="home" onload="" /></a><br />
<a href="hs/index.html" target="_top" onclick="MM_nbGroup('down','group1','hs','images/hs.gif',0)" onmouseover="MM_nbGroup('over','hs','images/hs_active1.gif','images/home.gif',0)" onmouseout="MM_nbGroup('out')"><img src="images/hs.gif" alt="high school" name="hs" border="0" id="hs" onload="MM_nbGroup('init','group1','hs','images/hs_active.gif',0)" /></a><br />
<a href="cs/index.html" target="_top" onclick="MM_nbGroup('down','group1','cs','images/cs.gif',0)" onmouseover="MM_nbGroup('over','cs','images/cs_active1.gif','images/cs.gif',0)" onmouseout="MM_nbGroup('out')"><img src="images/cs.gif" alt="college" name="cs" border="0" id="cs" onload="MM_nbGroup('init','group1','cs','images/cs_active.gif',0)" /></a><br />
<a href="ac/index.html" target="_top" onclick="MM_nbGroup('down','group1','ac','images/ac.gif',0)" onmouseover="MM_nbGroup('over','ac','images/ac_active2.gif','images/ac.gif',0)" onmouseout="MM_nbGroup('out')"><img src="images/ac.gif" alt="after college" name="ac" border="0" id="ac" onload="MM_nbGroup('init','group1','ac','images/ac_active.gif',0)" /></a><br />
<a href="jobs.html" target="_top" onclick="MM_nbGroup('down','group1','jobs','images/jobs.gif',0)" onmouseover="MM_nbGroup('over','jobs','images/jobs3.gif','images/jobs.gif',0)" onmouseout="MM_nbGroup('out')"><img src="images/jobs.gif" alt="jobs" name="jobs" border="0" id="jobs" onload="MM_nbGroup('init','group1','jobs','images/jobs1.gif',0)" /></a><br />
<a href="contact.html" target="_top" onclick="MM_nbGroup('down','group1','contact','images/contact.gif',0)" onmouseover="MM_nbGroup('over','contact','images/contact_active1.gif','images/contact.gif',0)" onmouseout="MM_nbGroup('out')"><img src="images/contact.gif" alt="contact" name="contact" border="0" id="contact" onload="MM_nbGroup('init','group1','contact','images/contact_active.gif',0)" /></a></div>

<div id="sidebar2">
<h3>&nbsp;</h3>
<!-- end #sidebar2 --></div>
<div id="mainContent">
<h1>Welcome to SSB.NET</h1>
<p class="style1">SSB is the ultimate guide to finding the right direction for your life after highschool. Like most new college students and I ran into all the typical Freshman &quot;welcome mats&quot;! After that first year filled with insight both good and bad I realized the many reasons so many student either do not get a higher education, graduate college, or drop out all together. Direction is missing in this virtual world we know as the internet! On this website you will find every resource possible to prepare you for the life after highschool graduation. We have information on the following:</p>
<ul>
<li class="style1">Chooising the right college for you</li>
<li class="style1">Surviving the first year of college and beyond</li>
<li class="style1">Scholarships</li>
<li class="style1">Financial Aid 101</li>
<li class="style1">What direction to go in after college graduation</li>
<li class="style1">Other options besides getting a Bachelors! Yes, they do exist!</li>
<li class="style1">Employment: Jobs and Internships</li>
<li class="style1">Information for transfer students
<!-- end #mainContent -->
</li>
</ul>
</div>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<div id="footer">
<p align="center">Home | Highschool Students | College Students | After College | Jobs | Contact</p>
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 14 2009, 02:36 PM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 15,351
Joined: 9-August 06
Member No.: 6



I moved this to the JavaScript forum since the problem seems to be with the DW script.


--------------------
"Never go to excess, but let moderation be your guide."
- Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th August 2014 - 04:04 AM