ugrás a tartalomhoz

Menü ami nem megy Firefox alatt

bacsit · 2009. Ápr. 2. (Cs), 16.17
Sziasztok nem tudom hogy hol van a bibi IE alatt működik Firefox alatt nem. Valaki tud nekem segíteni?

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Car Tuning World</title>
<STYLE type="text/css">

A:Hover {
color: #ff9900;
text-decoration: none;
text-transform: uppercase;
font-weight:bold;
}
A {
color: #ff9900;
text-decoration: none;
font-size: 10pt;
font-family: Verdana, Arial;
}

body {
background-image: url();
background-repeat: no-repeat;
background-color: #000000;
}
</STYLE>
<script language="javascript" src="ufo.js"></script>
<SCRIPT LANGUAGE="JavaScript">

ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))

if (ns4) {
layerRef="document.layers";
styleRef="";
} else {
layerRef="document.all";
styleRef=".style";
}

function afficheCalque(calque)
{
eval(layerRef + '["' + calque +'"]' + styleRef + '.visibility = "visible"');
}

function cacheCalque(calque)
{
eval(layerRef + '["' + calque +'"]' + styleRef + '.visibility = "hidden"');
}

</SCRIPT>
</head>

<body>
<CENTER>
<table border=0 align="left" cellpadding=0 cellspacing=0>
<TR valign="top">
<TD>
<DIV STYLE="background-color:visible; width:70" onMouseOver="afficheCalque('div1')" onMouseOut="cacheCalque('div1')">
<CENTER><a href="main.htm" target="mainFrame" onMouseOver="afficheCalque('div1')" onMouseOut="cacheCalque('div1')">Főoldal</a>
</CENTER>
</DIV>
</TD>

<TD>
<DIV STYLE="background-color:visible; width:65" onMouseOver="afficheCalque('div2')" onMouseOut="cacheCalque('div2')">
<CENTER><a href=# onMouseOver="afficheCalque('div2')" onMouseOut="cacheCalque('div2')">Motor</a></CENTER>
</DIV>
<DIV id="div2" onMouseOver="afficheCalque('div2')" onMouseOut="cacheCalque('div2')" style="position:relative; layer-background-color:visible; background-color:visible; width:65; border-width:thin; border-color:white; border-style: solid; visibility: hidden">
<a href="turbo.html" target="mainFrame">Turbo</a><br>
<a href="nitro.htm" target="mainFrame">Nitro</a>
<a href="szurok.htm" target="mainFrame"><br>Szűrők</a><br>
</DIV>
</TD>

<TD>
<DIV STYLE="background-color:visible; width:65" onMouseOver="afficheCalque('div6')" onMouseOut="cacheCalque('div6')">
<CENTER><a href=# onMouseOver="afficheCalque('div6')" onMouseOut="cacheCalque('div6')">Futómű</a></CENTER>
</DIV>
<DIV id="div6" onMouseOver="afficheCalque('div6')" onMouseOut="cacheCalque('div6')" style="position:relative; layer-background-color:visible; background-color:visible; width:65; border-width:thin; border-color:white; border-style: solid; visibility: hidden">
<a href="ultetes.htm" target="mainFrame" onMouseOver="afficheCalque('div6')" onMouseOut="cacheCalque('div6')">Ültetés</a><br>
<a href="rugok.htm" target="mainFrame" onMouseOver="afficheCalque('div6')" onMouseOut="cacheCalque('div6')">Rugók</a><br>
<a href="gumik.htm" target="mainFrame" onMouseOver="afficheCalque('div6')" onMouseOut="cacheCalque('div6')">Gumik</a></DIV>
</TD>

<TD>
<DIV STYLE="background-color:visible; width:60" onMouseOver="afficheCalque('div3')" onMouseOut="cacheCalque('div3')">
<CENTER><a href="#" onMouseOver="afficheCalque('div3')" onMouseOut="cacheCalque('div3')">Optika</a></CENTER>
</DIV>
<div id="div3" onMouseOver="afficheCalque('div3')" onMouseOut="cacheCalque('div3')" style="position:relative; layer-background-color:visible; background-color:visible; width:60; border-width:thin; border-color:white; border-style: solid; visibility: hidden">
<a href="kulso.htm" target="mainFrame" onMouseOver="afficheCalque('div3')" onMouseOut="cacheCalque('div3')">Külső</a><a href="kulso.htm"><br>
</a><a href="belso.htm" target="mainFrame" onMouseOver="afficheCalque('div3')" onMouseOut="cacheCalque('div3')">Belső</a><br>
</DIV>
</TD>

<TD>
<DIV STYLE="background-color:visible; width:130" onMouseOver="afficheCalque('div4')" onMouseOut="cacheCalque('div4')">
<CENTER><a href=# onMouseOver="afficheCalque('div4')" onMouseOut="cacheCalque('div4')">Galéria</a></CENTER>
</DIV>
<DIV id="div4" onMouseOver="afficheCalque('div4')" onMouseOut="cacheCalque('div4')" style="position:relative; layer-background-color:visible; background-color:visible; width:130; border-width:thin; border-color:white; border-style: solid; visibility: hidden">
<a href="galeria_autok.htm" target="mainFrame" onMouseOver="afficheCalque('div4')" onMouseOut="cacheCalque('div4')">Autók</a><br>
<a href="galeria_csajok.htm" target="mainFrame" onMouseOver="afficheCalque('div4')" onMouseOut="cacheCalque('div4')">Autók & Csajok</a></DIV>
</TD>

<TD>
<DIV STYLE="background-color:visible; width:95" onMouseOver="afficheCalque('div5')" onMouseOut="cacheCalque('div5')">
<CENTER><a href="elsosegely.htm" target="mainFrame" onMouseOver="afficheCalque('div5')" onMouseOut="cacheCalque('div5')">Elsősegély</a>
</CENTER>
</DIV>
</TD>

<TD>
<DIV STYLE="background-color:visible; width:65" onMouseOver="afficheCalque('div7')" onMouseOut="cacheCalque('div7')">
<CENTER><a href="link.htm" target="mainFrame" onMouseOver="afficheCalque('div7')" onMouseOut="cacheCalque('div7')">Linkek</a>
</CENTER>
</DIV>
</TD>

<TD>
<p id="single"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var FO = { movie:"mp3player.swf", width:"150", height:"20", majorversion:"7", build:"0", bgcolor:"#000000", flashvars:"file=mp3/low.mp3" };
UFO.create(FO, "single");
</script>
</TD>

</TR>
</TABLE>
</CENTER>

</body>
</html>
 
1

IE4, NS4

Poetro · 2009. Ápr. 2. (Cs), 18.17
Te komolyan egy olyan kódot akarsz használni, amit Netscape4-re és IE4-re írtak?

Egyébként:

      function afficheCalque(calque) {
        var div = document.getElementById(calque);
        if (div) {
          div.style.visibility = 'visible';
        }
      }

      function cacheCalque(calque) {
        var div = document.getElementById(calque);
        if (div) {
          div.style.visibility = 'hidden';
        }
      }
2

elnézte...

eashlon · 2009. Ápr. 2. (Cs), 20.39
mert ma már 2odika van, csak viccelni akart :)