Skip navigation
snowboardingrich
Currently Being Moderated

Dreamweaver rollovers acting strange in Firefox????

Jun 21, 2012 12:41 PM

Hi,

 

I am having big problems with my Dreamweaver rollovers  in firefox. Chrome and Safari are fine but Firefox

shifts the rollovers to one side and a mysterious green colour appears??

 

Here is the site:

http://dev.relume.co.uk/index_test_02.html

 

If anyone can help that would be amazing as I am scrathing my head with this one.

 

Here is the 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 - THE 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]; 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_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_ima ges/t_nav_our_research_o.gif','global_images/t_nav_our_work_o.gif','gl obal_images/t_nav_who_we_are_o.gif','global_images/t_nav_blog_o.gif',' global_images/t_nav_contact_o.gif','global_images/crashing_contradicti ons_o.jpg','global_images/blog/hult_hp_o.jpg','global_images/blog/hors e_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','globa l_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_rese arch_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.g if',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>

 
Replies
  • Currently Being Moderated
    Jun 21, 2012 5:03 PM   in reply to snowboardingrich

    Your liberal use of position:absolute is going to come back to bite you.

    Here's why:  http://apptools.com/examples/pagelayout101.php

     

    To fix your immediate problem, change this in your 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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points