hi,
i having big problems dreamweaver rollovers in firefox. chrome , safari fine firefox
shifts rollovers 1 side , mysterious green colour appears??
here site:
http://dev.relume.co.uk/index_test_02.html
if can amazing scrathing head one.
here 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>
<link rel="shortcut icon" href="favicon.ico" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>relume - challenger spirit</title>
<style type="text/css">
body
{
margin: 0;
padding: 0;
}
</style>
<link href="css/global.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function mm_swapimgrestore() { //v3.0
var i,x,a=document.mm_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.osrc;i++) x.src=x.osrc;
}
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]; (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_swapimage() { //v3.0
var i,j=0,x,a=mm_swapimage.arguments; document.mm_sr=new array; for(i=0;i<(a.length-2);i+=3)
if ((x=mm_findobj(a[i]))!=null){document.mm_sr[j++]=x; if(!x.osrc) x.osrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body onload="mm_preloadimages('global_images/t_nav_home_o.gif','global_images/t_nav_our_resear ch_o.gif','global_images/t_nav_our_work_o.gif','global_images/t_nav_who_we_are_o.gif','glo bal_images/t_nav_blog_o.gif','global_images/t_nav_contact_o.gif','global_images/crashing_c ontradictions_o.jpg','global_images/blog/hult_hp_o.jpg','global_images/blog/horse_hp_o.jpg ','global_images/blog/netflix_hp_o.jpg','global_images/blog/dont_tell_me_hp_o.jpg','global _images/blog/valentines_hp_o.jpg','global_images/blog/conferences_hp_o.jpg','global_images /b_nav_resilience_o.gif','global_images/b_nav_ten_voices_o.gif','global_images/b_nav_emper ors_o.gif','global_images/b_nav_how_else_o.gif')">
<div id="page_cont">
<div id="header_cont">
<div id="header_nav_01"><a href="index.php" onmouseout="mm_swapimgrestore()" onmouseover="mm_swapimage('home','','global_images/t_nav_home_o.gif',1)"><img src="global_images/t_nav_home_n.gif" alt="home" name="home" width="120" height="118" border="0" id="home" /></a></div>
<div id="header_nav_02"><a href="research.php" onmouseout="mm_swapimgrestore()" onmouseover="mm_swapimage('research','','global_images/t_nav_our_research_o.gif',1)"><img src="global_images/t_nav_our_research_n.gif" alt="research" name="research" width="120" height="118" border="0" id="research" /></a></div>
<div id="header_nav_03"><a href="work_01.php" onmouseout="mm_swapimgrestore()" onmouseover="mm_swapimage('work','','global_images/t_nav_our_work_o.gif',1)"><img src="global_images/t_nav_our_work_n.gif" alt="work" name="work" width="120" height="118" border="0" id="work" /></a></div>
<div id="header_nav_04"><a href="people.php" onmouseout="mm_swapimgrestore()" onmouseover="mm_swapimage('who_we_are','','global_images/t_nav_who_we_are_o.gif',1)"><img src="global_images/t_nav_who_we_are_n.gif" alt="who_we_are" name="who_we_are" width="120" height="118" border="0" id="who_we_are" /></a></div>
<div id="header_nav_05"><a href="http://challengerspirit.relume.co.uk/" onmouseout="mm_swapimgrestore()" onmouseover="mm_swapimage('blog','','global_images/t_nav_blog_o.gif',1)"><img src="global_images/t_nav_blog_n.gif" alt="blog" name="blog" width="120" height="118" border="0" id="blog" /></a></div>
<div id="header_nav_06"><a href="contact.html" onmouseout="mm_swapimgrestore()" onmouseover="mm_swapimage('contact','','global_images/t_nav_contact_o.gif',1)"><img src="global_images/t_nav_contact_n.gif" alt="contact" name="contact" width="120" height="118" border="0" id="contact" /></a></div>
<div id="header_logo"></div>
</div>
</div>
</body>
</html>
your liberal use of position:absolute going come bite you.
here's why: http://apptools.com/examples/pagelayout101.php
to fix immediate problem, change in css code:
a:hover {
font-family: arial, helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #000;
background-color: #090;
position: absolute;
height: 148px;
width: 148px;
left: 0px;
top: 0px;
padding-left: 5px;
padding-bottom: -10px;
}
to this:
a:hover {font-weight: bold }
nancy o.
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment