java script - firefox RIESENPROBELM

  • bitte helft mir +g+

    habe eine navigation mit java. im quellcode steht nur wos von internet explorer und netscape.. kann mir da jemand helfen, dass ich daf auch für firefox schreibe!?!?!

    wäre net! liebe grüße

  • <script language="JavaScript">
    <!--
    ns=window.navigator.appName == "Netscape"
    ie=window.navigator.appName == "Microsoft Internet Explorer"

    function openIt(x) {
    if(ns) {
    showbox= document.layers[x+1];
    showbox.visibility = "show";
    showbox.top=30;

    var items = 3 ;
    for (i=1; i<items; i++) {
    elopen=document.layers[i]
    if (i != (x + 1)) {
    elopen.visibility = "hide" }
    }
    }

    if(ie) {
    curEl = event.toElement

    showBox = document.all.box[x];
    showBox.style.visibility = "visible";
    showBox.style.top = 238;

    var items = 3 ;
    for (i=0; i<items; i++) {
    elOpen=document.all.box[i]
    barEl=document.all.mnubar[i]
    if (i != x){
    elOpen.style.visibility = "hidden"

    }
    }
    }
    }

    function closeIt() {
    var items = 3 ;
    for (i=0; i<items; i++) {
    if(ie){
    document.all.box[i].style.visibility = "hidden"
    barEl=document.all.mnubar[i]

    }
    if(ns){ document.layers[i+1].visibility = "hide"}
    }
    }

    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];}
    }

    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>

    das is mal der code... habs im dreamweaver gemacht....und hab eben das problem, dass im firefox des menü afoch net geht.

    wär nett, wenn mir wer helfen könnte ;)

  • Zitat von DarkSyranus

    wenns geht auch noch den rest, plz

    ... oder besser mal die URL, dann kann ich mal schauen ob es nicht eine viel einfachere Lösung ohne Javascript, dafür aber mit Stylesheets gibt.

    G.a.d.M.

    Ronald

  • <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>

    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1">
    <title>vorlage</title>


    <style type="text/css">
    a {font:9pt Maiandra GD; color: white; text-decoration: none}
    a:hover {color: #FFFFFF; text-decoration: none}
    a.plain:hover {font-size:9pt; color: white; text-decoration: none}
    a:visited{color: #FFFFFF}
    a:link { color:#FFFFFF}
    a:active { color:#FFFFFF}


    #box {
    position:absolute;
    visibility:hidden;
    top: 177px;
    }
    #gbox {background-color:#10ac4a}
    #bbox {background-color:#21a8cb}
    #rbox {background-color:darkred}
    #brbox {background-color:#ab7020}
    #l1box {background-color:#c0c010}
    #l2box {background-color:#87c41a}
    #ybox {background-color:#efc400}

    #mnubar
    {font-family: "Maiandra GD", Arial;
    font-size:13px;
    font-weight: bolder;
    font-style:italic}

    body { background-color: #000000;
    scrollbar-face-color: #000000;
    SCROLLBAR-TRACK-COLOR: #000000;
    scrollbar-arrow-color: #CEAA20;
    scrollbar-base-color: #000000;
    scrollbar-shadow-color : #CEAA20;
    SCROLLBAR-3DLIGHT-COLOR: #CEAA20;
    SCROLLBAR-DARKSHADOW-COLOR: #000000;
    scrollbar-highlight-color: #000000;}
    body,td,th {
    font-family: "Maiandra GD", Arial;
    font-size: 12px;}

    .button
    {font-weight: bold;
    font-family:"Maiandra GD", Arial;
    color: #FFFFFF;
    font-style: italic;
    font-size: 13px;}

    .h1
    {font-weight: bold;
    font-family:"Maiandra GD", Arial;
    color: #CEAA20;
    font-style: italic;
    font-size: 16px;}

    .text
    {font-family: Tahoma;
    font-weight:normal;
    color: #FFFFFF;
    font-style:normal;
    font-size: 12px;}

    .Stil1 {color: #CC9933}
    </style>


    <script language="JavaScript">
    <!--
    ns=window.navigator.appName == "Netscape"
    ie=window.navigator.appName == "Microsoft Internet Explorer"

    function openIt(x) {
    if(ns) {
    showbox= document.layers[x+1];
    showbox.visibility = "show";
    showbox.top=30;

    var items = 3 ;
    for (i=1; i<items; i++) {
    elopen=document.layers
    if (i != (x + 1)) {
    elopen.visibility = "hide" }
    }
    }

    if(ie) {
    curEl = event.toElement

    showBox = document.all.box[x];
    showBox.style.visibility = "visible";
    showBox.style.top = 238;

    var items = 3 ;
    for (i=0; i<items; i++) {
    elOpen=document.all.box[i]
    barEl=document.all.mnubar[i]
    if (i != x){
    elOpen.style.visibility = "hidden"

    }
    }
    }
    }

    function closeIt() {
    var items = 3 ;
    for (i=0; i<items; i++) {
    if(ie){
    document.all.box[i].style.visibility = "hidden"
    barEl=document.all.mnubar[i]

    }
    if(ns){ document.layers[i+1].visibility = "hide"}
    }
    }

    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];}
    }

    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>

    <body onLoad="MM_preloadImages('../../buttons/test1/button1_f2.gif','buttons/philosophie/philosophie_f2.gif','buttons/geschichte/geschichte_r1_c1_f2.gif','buttons/familie/familie_r1_c1_f2.gif','buttons/keller/keller_r1_c1_f2.gif','buttons/rieden/rieden_r1_c1_f2.gif','buttons/auszeichnungen/ausszeichnungen_f2.gif','buttons/selektion/selektion_f2.gif','buttons/sortiment/weißwein_f2.gif','buttons/test/test_r1_c2_f2.gif','buttons/weingut/philosophie_r2_c2_f2.gif','buttons/weingut/philosophie_r2_c4_f2.gif','buttons/weingut/philosophie_r2_c6_f2.gif','buttons/weingut/philosophie_r2_c8_f2.gif','buttons/weingut/philosophie_r2_c10_f2.gif','buttons/weingut/philosophie_r2_c12_f2.gif','buttons/weingut/philosophie_r2_c14_f2.gif','buttons/sortiment/sortiment_r2_c2_f2.gif','buttons/sortiment/sortiment_r2_c4_f2.gif','buttons/sortiment/sortiment_r2_c6_f2.gif','buttons/urlaub/urlaub_r2_c2_f2.gif','buttons/urlaub/urlaub_r2_c4_f2.gif')">
    <table align="center">
    <td align="center" valign="middle">
    <tr>


    </p>


    </p>


    </p>
    </tr>
    </td>


    <td align="right" valign="middle">
    <table width="900" height="393" border="0" align="center" cellpadding="0" cellspacing="0">

    <tr>
    <td colspan="6" height="100" width="904" align="right"> </td>
    </tr>

    <tr>
    <td width="230"></td>

    <td width="50" height="22" align="left" nowrap bgcolor="#000000">
    <div align="left" class="button">[i]News
    http://#</div></td>

    <td width="50" align="left" height="22" bgcolor="#000000">
    <div align="left" class="button">Weingut</div></td>

    <td width="50" height="22" align="left" nowrap bgcolor="#000000">
    <div align="left" class="button">Sortiment </div> </td>

    <td nowrap width="90" align="left" height="22" bgcolor="#000000">
    <div align="left" class="button">Urlaub</div></td>

    <td width="220" align="right" height="22" bgcolor="#000000">
    <div align="right" class="button">Kontakt</div>
    </div></td>
    </tr>


    <tr align="right" valign="middle">
    <td colspan="6" width="904"> </td>
    </tr>

    <tr valign="top" bordercolor="#FFFFFF" height="200">
    <td height="200" colspan="6" width="90">
    <table width="900" border="0" height="200">
    <tr>
    <td></td>
    <td></td>
    </tr>


    <td height="200" width="900">

    <table width="100%" align="left" cellspacing="0" height="200">

    <td>
    <div align="center">

    <table width="99%" align="left" cellspacing="0" height="200">
    <tr>

    <td width="17%" align="left" valign="middle" height="200">
    <div align="right">
    </div></td>

    <td width="2%" height="200"> </td>

    <td width="81%" align="left" valign="middle" height="200">
    <div id="Rollbalken" style="position:relative; right:0%; top:0px; width:99%; height:193px; z-index:1; overflow: auto;">

    <table width="95%" align="left" cellspacing="0" height="200">
    <tr>

    <td width="52%" align="left" valign="middle" height="200"> <div align="right">
    <p align="left" class="h1">Kontakt ...</p>
    <p align="left" class="text">
    Weingut Direder

    Mitterstockstall 1a

    3470 Kirchberg am Wagram </p>
    <p align="left" class="text">
    Telefon: +43 22 79 / 26 59

    Fax: +43 22 79 / 26 59 26 </p>

    <p align="left" class="text">weingut@direder.at </p>
    <p align="left" class="text">&Ouml;ffnungszeiten:

    Montag bis Freitag: 8.30 - 12.00 und 13.00 - 18.30

    Samstag: 13.00 - 17.00 </p>
    <p align="left" class="text">Sonn- und Feiertag nach telefonishcer Vereinbarung </p>
    <p align="left" class="text"></p>
    </div>
    </td>
    <td width="48%" align="left" valign="middle"></td>
    </tr>
    </table>


    </td>
    </tr>
    </table>
    <p align="left"></p>
    </div>
    </div>
    </td>
    </tr>
    <tr>
    <td>
    <table border="1" frame="above" cellpadding="0" cellspacing="0" width="900">

    <tr>
    <td height="22" valign="top">

    <table width="900" border="0" height="22" vspace="0" frame="above">

    <tr height="22" valign="top">
    <td width="484" height="22" align="left" valign="top" nowrap bgcolor="#000000">
    <div align="left">Englisch</div> </div></td>

    <td width="277" height="22" align="right" valign="top" nowrap bgcolor="#000000">
    <div align="right">Sitemap</div></td>

    <td width="125" height="22" align="right" valign="top" nowrap bgcolor="#000000">
    <div align="right">Impressum</div></td>

    </tr>

    </table>

    </table>

    </table>
    </td>
    </table>

    <div onmouseover="closeIt()" > </div>


    <div id=box style=left:344px>
    <table border="0" cellspacing="1" bgcolor ="#000000">
    <tr bgcolor="#000000">
    <td width="80" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    <td width="80" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    <td width="60" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    <td width="50" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    <td width="50" ><div align="center"><span class="buton"><font color="#FFFFFF">

    </font></span></div></td>
    <td width="100" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    <td width="110" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    </tr>
    </table>
    </div>


    <div id=box style=left:444px>
    <table border="0" cellspacing="1" bgcolor ="black">
    <tr bgcolor="#000000">
    <td width="80" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    <td width="80" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    <td width="80" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    </tr>
    </table>
    </div>


    <div id=box style=left:562px>
    <table border="0" cellspacing="1" bgcolor ="black">
    <tr bgcolor="#000000">
    <td width="100" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    <td width="100" ><div align="center"><span class="button"><font color="#FFFFFF">

    </font></span></div></td>
    </tr>
    </table>
    </div>


    <div id=box style=left:596px>
    <table border="0" cellspacing="1" bgcolor ="black">
    <tr bgcolor="#000000">
    <td width="100" ><div align="center"><span class="button"><font color="#FFFFFF"></font></span></div></td>
    <td width="100" ><div align="center"><span class="button"><font color="#FFFFFF"></font></span></div></td>
    <td width="100" ><div align="center"><span class="button"><font color="#FFFFFF"></font></span></div></td>
    </tr>
    </table>
    </div>

    <map name="Map">
    <area shape="rect" coords="2,0,68,20" href="#" onClick="MM_openBrWindow('formular.htm','Formular','width=500,height=600')">
    </map>
    <map name="Map2">
    <area shape="rect" coords="3,-1,367,133" href="#" onClick="MM_openBrWindow('pics/karte/karte_groß.jpg','Anfahrtsplan','width=600,height=220')">
    </map>
    </body>
    </html>


    ... des is nu de "rohsite" da steht nu nix online oda so.... wär nett wenn ma da wer helfen kann :)

    lg

  • Sorry - aber ich nicht, das auszumüllen dauert ja Stunden, wofür du natürlich nichts kannst.
    Wahnsinn, was Dreamweaver für eine Menge Unsinn schreibt, der orientiert sich wohl an Frontpage.

    Ungesehen behaupte ich, daß man das gleiche Ergebnis auch mit 1/3 des Quelltextes erreichen kann.

    Stell es doch mal online - irgenwo auf einen kostenlosen Testwebspace.

    G.a.d.M.

    Ronald

  • Einen FTP-Explorer brauchst du, um die Seiten auf den Server zu bekommen.
    Da gibt es mehrere Varianten, ich empfehle SmartFTP.
    Du kannst dir aber auch für den Firefox die FTP-Erweiterungen bei http://erweiterungen.de herunterladen.
    Oder du richtest dir mit dem Windows-Explorer eine Netzwerkverbindung zum Webspace ein - die ist allerdings etwas unkonfortabler und auch langsamer, als die speziellen Programme.

    G.a.d.M.

    Ronald
    ... der jetzt erst mal etwas länger weg ist