claire_t
04-28-2011, 08:51 PM
Hi
This is probably such a simple problem to solve but i'm darned if i can work it out after a long time staring at code!!
I have created a page template, which has 4 rollover images for a menu. I have used this code on another site and it works! However I have created 4 pages from this template and in these pages the rollovers do not work when oped in a browser. But they do when I open the template in a browser! Any ideas anyone????
Thanks
<!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" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<style type="text/css">
#apDiv1 {
position:absolute;
left:3px;
top:4px;
width:260px;
height:65px;
z-index:1;
}
#apDiv2 {
position:absolute;
left:263px;
top:4px;
width:440px;
height:65px;
z-index:2;
}
#apDiv3 {
position:absolute;
left:2px;
top:69px;
width:700px;
height:129px;
z-index:3;
}
#apDiv4 {
position:absolute;
left:476px;
top:69px;
width:226px;
height:129px;
z-index:4;
}
#apDiv5 {
position:absolute;
left:2px;
top:199px;
width:133px;
height:36px;
z-index:5;
background-color: #FF9900;
}
#apDiv6 {
position:absolute;
left:135px;
top:199px;
width:567px;
height:36px;
z-index:6;
background-color: #FFCC66;
}
#apDiv7 {
position:absolute;
left:1px;
top:236px;
width:133px;
height:273px;
z-index:7;
}
#apDiv8 {
position:absolute;
left:168px;
top:235px;
width:250px;
height:280px;
z-index:8;
}
#apDiv9 {
position:absolute;
left:452px;
top:235px;
width:250px;
height:280px;
z-index:9;
}
#TopNav {
position:absolute;
left:264px;
top:34px;
width:435px;
height:28px;
z-index:10;
}
ul {
text-decoration: none;
list-style-type:none;
}
#TopNav li {
width:80px;
margin: 0px;
text-decoration: none;
text-align: center;
float: left;
}
</style>
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
<body>
<div id="apDiv1"><a href="http://www.habitat.org"><img src="../Images/topnavBG_01.jpg" width="260" height="65" alt="Habitat for Humanity International" /></a></div>
<div id="apDiv2"><img src="../Images/topnavBG_02.jpg" width="440" height="65" alt="Background image" /></div>
<div id="TopNav">
<ul>
<li><a href="getinvolved.htm"><img src="../Images/getinvolved.gif" alt="Get Involved" onmouseover="this.src='../Images/getinvolved_over.gif'" onmouseout="this.src='../Images/getinvolved.gif'"/></a>
</li>
<li><a href="how.htm"><img src="../Images/howitworks.gif" alt="How It Works" align="top" onmouseover="this.src='../Images/howitworks_over.gif'" onmouseout="this.src='../Images/howitworks.gif'"/></a></li>
<li><a href="truestories.htm"><img src="../Images/truestories.gif" alt="True Stories" onmouseover="this.src='../Images/truestories_over.gif'" onmouseout="this.src='../Images/truestories.gif'"/></a>
</li>
<li><a href="build.htm"><img src="../Images/wherewebuild.gif" alt="Where We Build" onmouseover="this.src='../Images/wherewebuild_over.gif'" onmouseout="this.src='../Images/wherewebuild.gif'"/></a></li>
</ul>
</div>
<!-- TemplateBeginEditable name="Header Graphic" -->
<div id="apDiv3"><img src="../Images/homepage_header1.jpg" width="474" height="129" alt="Header background" /></div>
<!-- TemplateEndEditable -->
<div id="apDiv5"><img src="../Images/welcome.gif" width="133" height="36" alt="Welcome" /></div>
<div id="apDiv6"><img src="../Images/rotatingquote3.gif" width="541" height="36" alt="Quote" /></div>
<!-- TemplateBeginEditable name="Left Navigation" -->
<div id="apDiv7">Left Navigation</div>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="Content Column 1" -->
<div id="apDiv8">Content Column 1</div>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="Content Column 2" -->
<div id="apDiv9">Content Column 2</div>
<!-- TemplateEndEditable -->
</body>
</html>
ps yes this is homeworkish (well an at home learning course) but please any help on this issue be very welcome!!
:thumbsup:
This is probably such a simple problem to solve but i'm darned if i can work it out after a long time staring at code!!
I have created a page template, which has 4 rollover images for a menu. I have used this code on another site and it works! However I have created 4 pages from this template and in these pages the rollovers do not work when oped in a browser. But they do when I open the template in a browser! Any ideas anyone????
Thanks
<!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" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<style type="text/css">
#apDiv1 {
position:absolute;
left:3px;
top:4px;
width:260px;
height:65px;
z-index:1;
}
#apDiv2 {
position:absolute;
left:263px;
top:4px;
width:440px;
height:65px;
z-index:2;
}
#apDiv3 {
position:absolute;
left:2px;
top:69px;
width:700px;
height:129px;
z-index:3;
}
#apDiv4 {
position:absolute;
left:476px;
top:69px;
width:226px;
height:129px;
z-index:4;
}
#apDiv5 {
position:absolute;
left:2px;
top:199px;
width:133px;
height:36px;
z-index:5;
background-color: #FF9900;
}
#apDiv6 {
position:absolute;
left:135px;
top:199px;
width:567px;
height:36px;
z-index:6;
background-color: #FFCC66;
}
#apDiv7 {
position:absolute;
left:1px;
top:236px;
width:133px;
height:273px;
z-index:7;
}
#apDiv8 {
position:absolute;
left:168px;
top:235px;
width:250px;
height:280px;
z-index:8;
}
#apDiv9 {
position:absolute;
left:452px;
top:235px;
width:250px;
height:280px;
z-index:9;
}
#TopNav {
position:absolute;
left:264px;
top:34px;
width:435px;
height:28px;
z-index:10;
}
ul {
text-decoration: none;
list-style-type:none;
}
#TopNav li {
width:80px;
margin: 0px;
text-decoration: none;
text-align: center;
float: left;
}
</style>
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
<body>
<div id="apDiv1"><a href="http://www.habitat.org"><img src="../Images/topnavBG_01.jpg" width="260" height="65" alt="Habitat for Humanity International" /></a></div>
<div id="apDiv2"><img src="../Images/topnavBG_02.jpg" width="440" height="65" alt="Background image" /></div>
<div id="TopNav">
<ul>
<li><a href="getinvolved.htm"><img src="../Images/getinvolved.gif" alt="Get Involved" onmouseover="this.src='../Images/getinvolved_over.gif'" onmouseout="this.src='../Images/getinvolved.gif'"/></a>
</li>
<li><a href="how.htm"><img src="../Images/howitworks.gif" alt="How It Works" align="top" onmouseover="this.src='../Images/howitworks_over.gif'" onmouseout="this.src='../Images/howitworks.gif'"/></a></li>
<li><a href="truestories.htm"><img src="../Images/truestories.gif" alt="True Stories" onmouseover="this.src='../Images/truestories_over.gif'" onmouseout="this.src='../Images/truestories.gif'"/></a>
</li>
<li><a href="build.htm"><img src="../Images/wherewebuild.gif" alt="Where We Build" onmouseover="this.src='../Images/wherewebuild_over.gif'" onmouseout="this.src='../Images/wherewebuild.gif'"/></a></li>
</ul>
</div>
<!-- TemplateBeginEditable name="Header Graphic" -->
<div id="apDiv3"><img src="../Images/homepage_header1.jpg" width="474" height="129" alt="Header background" /></div>
<!-- TemplateEndEditable -->
<div id="apDiv5"><img src="../Images/welcome.gif" width="133" height="36" alt="Welcome" /></div>
<div id="apDiv6"><img src="../Images/rotatingquote3.gif" width="541" height="36" alt="Quote" /></div>
<!-- TemplateBeginEditable name="Left Navigation" -->
<div id="apDiv7">Left Navigation</div>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="Content Column 1" -->
<div id="apDiv8">Content Column 1</div>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="Content Column 2" -->
<div id="apDiv9">Content Column 2</div>
<!-- TemplateEndEditable -->
</body>
</html>
ps yes this is homeworkish (well an at home learning course) but please any help on this issue be very welcome!!
:thumbsup: