JavaScript Menü - Probleme mit zuweisung eines Frames: Menü - Probleme mit zuweisung eines Frames

Habe ein Problem und zwar habe ich eine Frameseite erstellt. A und B. In A Sitzt das JavaScript Menü. In B die Seite in der alles geöffnet werden soll. Wenn ich im Menü nun etwas anklicke öffnet sich die Seite jedoch in demselben Fenster und NICHT im B Fenster. Erstelle ich ein HTML Menü funktioniert alles einwandfrei! Nehme an das etwas an der JavaScrift Codierung geändert werden muß, aber was? Kenne mich nämlich mit JavaScripts nicht aus, sondern nur mit HTML! Kann mir jemand helfen? Es ist sehr dringend. Für Antworten schonmal besten dank.

MFG Sebastian

Falls jemand interesse hat hier die JavaScript Codierung:

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>G-Streetz FFM Records</title>
<base target="Hauptframe">

<script type="text/javascript" language="JavaScript1.2" src="_pgtres/stlib.js"></script>

</head>

<body>

<p><!-- Sothink Widgets Begin, Do not edit it -->
<script id="Sothink Widgets:_pgtres\39079,8208912037_PageletServer.MenuTree.stm" type="text/javascript" language="JavaScript1.2">
<!--
stBM(1,"GStreetzFFM",[1,"","","_pgtres/blank.gif",0,"left","default","hand",1,0,22,-1,-1,"solid",5,"#c3c7d3","#c3c7d3","","repeat-y",1,"_pgtres/expand1_f.gif","_pgtres/expand1_uf.gif",9,9,0,"","","","",0,0,6,1,"center",0]);
stBS("p0",[0,0]);
stIT("p0i0",["","","_self","","","","",20,6,"8pt 'Arial'","#FFFFFF","none","transparent","","repeat-y","8pt 'Arial'","#000000","none","transparent","","repeat-y","8pt 'Arial'","#000000","none","transparent","","repeat-y","8pt 'Arial'","#000000","underline","transparent","","repeat-y",1]);
stIT("p0i1",["Menu: G-Streetz FFM",,,,,,,36,26,"12pt 'Andy'",,,,"_pgtres/XPgarybanner1.gif","no-repeat","12pt 'Andy'","#EDEDED",,,"_pgtres/XPgarybanner1.gif","no-repeat","12pt 'Andy'",,,,"_pgtres/XPgarybanner1.gif","no-repeat","12pt 'Andy'",,"none",,"_pgtres/XPgarybanner1.gif","no-repeat"],"p0i0");
stBS("p1",[,1],"p0");
stIT("p1i0",["Home","rechts.htm","_top",,,"_pgtres/home_f.gif","_pgtres/home_f.gif",,20,"12pt 'Andy'","#000000",,,"_pgtres/XPgrayline.gif",,"12pt 'Andy'","#999999",,,"_pgtres/XPgrayline.gif",,"12pt 'Andy'",,,,"_pgtres/XPgrayline.gif",,"12pt 'Andy'",,"none",,"_pgtres/XPgrayline.gif"],"p0i0");
stIT("p1i1",[" Starz","","_self",,,"_pgtres/Stern.gif","_pgtres/Stern.gif",16,16],"p1i0");
stBS("p2",[],"p0");
stIT("p2i0",["Baby Boy","starz-babyboy.htm",,,,"_pgtres/icon_19.gif","_pgtres/icon_19.gif",10,10],"p1i0");
stIT("p2i1",["Casper","starz-casper.htm"],"p2i0");
stIT("p2i2",["DJ Gee","starz-djgee.htm"],"p2i0");
stIT("p2i3",["SmOke A lOt","starz-smokealot.htm"],"p2i0");
stES();
stIT("p1i2",[" Muzik","muzik.htm","_top",,,"_pgtres/MP3.gif","_pgtres/MP3.gif"],"p1i1");
stIT("p1i3",[" Videoz","videoz.htm",,,,"_pgtres/Video.gif","_pgtres/Video.gif"],"p1i2");
stIT("p1i4",[" Picz",,,,,"_pgtres/Bild.gif","_pgtres/Bild.gif"],"p1i1");
stBS("p3",[],"p0");
stIT("p3i0",["Allz","picz-allz.htm"],"p2i0");
stIT("p3i1",[,"picz-babyboy.htm"],"p2i0");
stIT("p3i2",[,"picz-casper.htm"],"p2i1");
stIT("p3i3",[,"picz-djgee.htm"],"p2i2");
stIT("p3i4",[,"picz-smokealot.htm"],"p2i3");
stES();
stES();
stIT("p0i2",[],"p0i0");
stIT("p0i3",["Kaufen",,,,,,,30,,"bold 12pt 'Andy'","#000000",,,"_pgtres/XPgarybanner2.gif",,"bold 12pt 'Andy'","#666666",,,"_pgtres/XPgarybanner2.gif",,,,,,"_pgtres/XPgarybanner2.gif",,,,,,"_pgtres/XPgarybanner2.gif"],"p0i1");
stBS("p4",[],"p1");
stIT("p4i0",[" CD`s","cds.htm",,,,"_pgtres/CD2.gif","_pgtres/CD2.gif",,17],"p1i2");
stIT("p4i1",[" Kleidung",,,,,"_pgtres/Picz.gif","_pgtres/Picz.gif"],"p1i1");
stBS("p5",[],"p0");
stIT("p5i0",["T-Shirts","t-shirts.htm"],"p2i0");
stIT("p5i1",["Pullover","pullover.htm"],"p2i0");
stIT("p5i2",["Hosen","hosen.htm",,,,,,,,,,,,,,,"#000000"],"p2i0");
stES();
stES();
stIT("p0i4",[],"p0i0");
stIT("p0i5",["Sonstiges                            ",,,,,,,,,"bold 13pt 'Andy'",,,,,,"bold 13pt 'Andy'"],"p0i3");
stBS("p6",[],"p1");
stIT("p6i0",[" Kontaktz","kontaktz.htm",,,,"_pgtres/letter_c.gif","_pgtres/letter_c.gif",18,15],"p1i0");
stIT("p6i1",[" Gästebuch","http://www.1st-tools.de/gastbuch.php?id=62067",,,,"_pgtres/Buch.gif","_pgtres/Buch.gif",,15],"p1i2");
stES();
stIT("p0i6",[],"p0i0");
stES();
stEM();
//-->
</script>
<!-- Sothink Widgets End, Do not edit it --></p>
<p>&nbsp;</p>

</body>

</html>

  1. Moin

    dein Menü benötigt die Funktion stIT() (und noch ein paar ähnliche) die sich hier befinden:

    <script type="text/javascript" language="JavaScript1.2" src="_pgtres/stlib.js"></script>

    Ohne den Inhalt dieser Datei zu kennen ist Hilfe kaum möglich.

    Tipp: trenne dich von Frontpage, der schafft nicht Probleme, der ist eins.

    Gruß
    rfb

    1. Hier der JavaScript Menü Code:

      <html>

      <head>
      <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
      <meta name="ProgId" content="FrontPage.Editor.Document">
      <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
      <title>G-Streetz FFM Records</title>
      <base target="Hauptframe">

      <script type="text/javascript" language="JavaScript1.2" src="_pgtres/stlib.js"></script>

      </head>

      <body>

      <p><!-- Sothink Widgets Begin, Do not edit it -->
      <script id="Sothink Widgets:_pgtres\39079,8208912037_PageletServer.MenuTree.stm" type="text/javascript" language="JavaScript1.2">
      <!--
      stBM(1,"GStreetzFFM",[1,"","","_pgtres/blank.gif",0,"left","default","hand",1,0,22,-1,-1,"solid",5,"#c3c7d3","#c3c7d3","","repeat-y",1,"_pgtres/expand1_f.gif","_pgtres/expand1_uf.gif",9,9,0,"","","","",0,0,6,1,"center",0]);
      stBS("p0",[0,0]);
      stIT("p0i0",["","","_self","","","","",20,6,"8pt 'Arial'","#FFFFFF","none","transparent","","repeat-y","8pt 'Arial'","#000000","none","transparent","","repeat-y","8pt 'Arial'","#000000","none","transparent","","repeat-y","8pt 'Arial'","#000000","underline","transparent","","repeat-y",1]);
      stIT("p0i1",["Menu: G-Streetz FFM",,,,,,,36,26,"12pt 'Andy'",,,,"_pgtres/XPgarybanner1.gif","no-repeat","12pt 'Andy'","#EDEDED",,,"_pgtres/XPgarybanner1.gif","no-repeat","12pt 'Andy'",,,,"_pgtres/XPgarybanner1.gif","no-repeat","12pt 'Andy'",,"none",,"_pgtres/XPgarybanner1.gif","no-repeat"],"p0i0");
      stBS("p1",[,1],"p0");
      stIT("p1i0",["Home","rechts.htm","_top",,,"_pgtres/home_f.gif","_pgtres/home_f.gif",,20,"12pt 'Andy'","#000000",,,"_pgtres/XPgrayline.gif",,"12pt 'Andy'","#999999",,,"_pgtres/XPgrayline.gif",,"12pt 'Andy'",,,,"_pgtres/XPgrayline.gif",,"12pt 'Andy'",,"none",,"_pgtres/XPgrayline.gif"],"p0i0");
      stIT("p1i1",[" Starz","","_self",,,"_pgtres/Stern.gif","_pgtres/Stern.gif",16,16],"p1i0");
      stBS("p2",[],"p0");
      stIT("p2i0",["Baby Boy","starz-babyboy.htm",,,,"_pgtres/icon_19.gif","_pgtres/icon_19.gif",10,10],"p1i0");
      stIT("p2i1",["Casper","starz-casper.htm"],"p2i0");
      stIT("p2i2",["DJ Gee","starz-djgee.htm"],"p2i0");
      stIT("p2i3",["SmOke A lOt","starz-smokealot.htm"],"p2i0");
      stES();
      stIT("p1i2",[" Muzik","muzik.htm","_top",,,"_pgtres/MP3.gif","_pgtres/MP3.gif"],"p1i1");
      stIT("p1i3",[" Videoz","videoz.htm",,,,"_pgtres/Video.gif","_pgtres/Video.gif"],"p1i2");
      stIT("p1i4",[" Picz",,,,,"_pgtres/Bild.gif","_pgtres/Bild.gif"],"p1i1");
      stBS("p3",[],"p0");
      stIT("p3i0",["Allz","picz-allz.htm"],"p2i0");
      stIT("p3i1",[,"picz-babyboy.htm"],"p2i0");
      stIT("p3i2",[,"picz-casper.htm"],"p2i1");
      stIT("p3i3",[,"picz-djgee.htm"],"p2i2");
      stIT("p3i4",[,"picz-smokealot.htm"],"p2i3");
      stES();
      stES();
      stIT("p0i2",[],"p0i0");
      stIT("p0i3",["Kaufen",,,,,,,30,,"bold 12pt 'Andy'","#000000",,,"_pgtres/XPgarybanner2.gif",,"bold 12pt 'Andy'","#666666",,,"_pgtres/XPgarybanner2.gif",,,,,,"_pgtres/XPgarybanner2.gif",,,,,,"_pgtres/XPgarybanner2.gif"],"p0i1");
      stBS("p4",[],"p1");
      stIT("p4i0",[" CD`s","cds.htm",,,,"_pgtres/CD2.gif","_pgtres/CD2.gif",,17],"p1i2");
      stIT("p4i1",[" Kleidung",,,,,"_pgtres/Picz.gif","_pgtres/Picz.gif"],"p1i1");
      stBS("p5",[],"p0");
      stIT("p5i0",["T-Shirts","t-shirts.htm"],"p2i0");
      stIT("p5i1",["Pullover","pullover.htm"],"p2i0");
      stIT("p5i2",["Hosen","hosen.htm",,,,,,,,,,,,,,,"#000000"],"p2i0");
      stES();
      stES();
      stIT("p0i4",[],"p0i0");
      stIT("p0i5",["Sonstiges                            ",,,,,,,,,"bold 13pt 'Andy'",,,,,,"bold 13pt 'Andy'"],"p0i3");
      stBS("p6",[],"p1");
      stIT("p6i0",[" Kontaktz","kontaktz.htm",,,,"_pgtres/letter_c.gif","_pgtres/letter_c.gif",18,15],"p1i0");
      stIT("p6i1",[" Gästebuch","http://www.1st-tools.de/gastbuch.php?id=62067",,,,"_pgtres/Buch.gif","_pgtres/Buch.gif",,15],"p1i2");
      stES();
      stIT("p0i6",[],"p0i0");
      stES();
      stEM();
      //-->
      </script>
      <!-- Sothink Widgets End, Do not edit it --></p>
      <p>&nbsp;</p>

      </body>

      </html>

      1. Wo sind denn hier die Java Spezialisten? Habe jetzt mal die Datei vom JavaScript geöffnet und mir den Quelltext angesehen. Dort habe ich erstaunlicherweise auch den Parameter TARGET gefunden. Habe dort hinter jedem Menüeintrag "Hauptframe" reingeschrieben und das ganze auf den Server gemacht. Funktioniert immer noch nicht! Ich bin Verzweifelt...

        Hier der Quelltext vom JavaScript:
        Den Quelltext vom Menü findet Ihr oben!
        Die Seite ist Online. Schaut auch mal rein und klickt auf Kontaktz, dann wisst Ihr was ich meine.

        <?xml version="1.0" encoding="utf-8"?>
        <sothink_tree>
          <description>
            <temp_depict></temp_depict>
            <temp_title>FP39079,9234722222</temp_title>
            <version>2.00</version>
            <prog_id>PageletServer.MenuTree</prog_id>
            <update_time>39079.923472222</update_time>
            <preview_path></preview_path>
          </description>
          <global>
            <top_state>2</top_state>
            <tree_name>GStreetzFFM</tree_name>
            <tree_width>-1</tree_width>
            <tree_height>-1</tree_height>
            <tree_align>0</tree_align>
            <node_indent>22</node_indent>
            <show_line>0</show_line>
            <show_expand>1</show_expand>
            <show_expand_top>0</show_expand_top>
            <expand_top_allalong>0</expand_top_allalong>
            <click_text_expand>1</click_text_expand>
            <show_row_bg>1</show_row_bg>
            <single_expand>1</single_expand>
            <spacing>6</spacing>
            <padding>1</padding>
            <bg_color>#c3c7d3</bg_color>
            <bg_transparent>0</bg_transparent>
            <bg_image></bg_image>
            <bg_tile>2</bg_tile>
            <border_style>1</border_style>
            <border_width>5</border_width>
            <border_color>#c3c7d3</border_color>
            <border_synchronize>1</border_synchronize>
            <expand_img>C:\Programme\SourceTec\Sothink Tree Menu\Templates\Base\expand1_f.gif</expand_img>
            <collapse_img>C:\Programme\SourceTec\Sothink Tree Menu\Templates\Base\expand1_uf.gif</collapse_img>
            <expandbt_width>9</expandbt_width>
            <expandbt_height>9</expandbt_height>
            <button_align>1</button_align>
            <line_top></line_top>
            <line_center></line_center>
            <line_bottom></line_bottom>
            <line_vertical></line_vertical>
            <cursor_nolink>default</cursor_nolink>
            <cursor_link>hand</cursor_link>
            <script_path></script_path>
            <image_path></image_path>
            <link_prefix></link_prefix>
            <save_state>0</save_state>
            <encode>1</encode>
          </global>
          <ul>
            <li class="item"><a href="" target="Hauptframe"></a></li>
            <li class="pop_item"><a href="" target="Hauptframe">Menu: G-Streetz FFM</a></li>
            <ul>
              <li class="item"><a href="rechts.htm" target="Hauptframe">Home</a></li>
              <li class="pop_item"><a href="" target="Hauptframe">&amp;nbsp; 1_Starz</a></li>
              <ul>
                <li class="item"><a href="starz-babyboy.htm" target="Hauptframe">Baby Boy</a></li>
                <li class="item"><a href="starz-casper.htm" target="Hauptframe">Casper</a></li>
                <li class="item"><a href="starz-djgee.htm" target="Hauptframe">DJ Gee</a></li>
                <li class="item"><a href="starz-smokealot.htm" target="Hauptframe">SmOke A lOt</a></li>
              </ul>
              <li class="item"><a href="muzik.htm" target="Hauptframe">&amp;nbsp; 1_Muzik</a></li>
              <li class="item"><a href="videoz.htm" target="Hauptframe">&amp;nbsp; 1_Videoz</a></li>
              <li class="pop_item"><a href="" target="Hauptframe">&amp;nbsp; 1_Picz</a></li>
              <ul>
                <li class="item"><a href="picz-allz.htm" target="Hauptframe">Allz</a></li>
                <li class="item"><a href="picz-babyboy.htm" target="Hauptframe">Baby Boy</a></li>
                <li class="item"><a href="picz-casper.htm" target="Hauptframe">Casper</a></li>
                <li class="item"><a href="picz-djgee.htm" target="Hauptframe">DJ Gee</a></li>
                <li class="item"><a href="picz-smokealot.htm" target="Hauptframe">SmOke A lOt</a></li>

        </ul>
            </ul>
            <li class="item"><a href="" target="Hauptframe"></a></li>
            <li class="pop_item"><a href="" target="Hauptframe">Kaufen</a></li>
            <ul>
              <li class="item"><a href="cds.htm" target="Hauptframe">&amp;nbsp; 1_CD`s</a></li>
              <li class="pop_item"><a href="" target="Hauptframe">&amp;nbsp; 1_Kleidung</a></li>
              <ul>
                <li class="item"><a href="t-shirts.htm" target="Hauptframe">T-Shirts</a></li>
                <li class="item"><a href="pullover.htm" target="Hauptframe">Pullover</a></li>
                <li class="item"><a href="hosen.htm" target="Hauptframe">Hosen</a></li>

        </ul>
            </ul>
            <li class="item"><a href="" target="Hauptframe"></a></li>
            <li class="pop_item"><a href="" target="Hauptframe">Sonstiges_&amp;nbsp; 28</a></li>
            <ul>
              <li class="item"><a href="kontaktz.htm" target="_Hauptframe">&amp;nbsp; 1_Kontaktz</a></li>
              <li class="item"><a href="http://www.1st-tools.de/gastbuch.php?id=62067" target="_Hauptframe">&amp;nbsp; 1_G?tebuch</a></li>

        </ul>
            <li class="item"><a href="" target="Hauptframe"></a></li>
          </ul>
          <layer>
            <setting is_expand="0" apply_sub_level="0"></setting>
            <node state="0" status_default="1" font_out_face="Arial" font_out_color="#FFFFFF" font_out_size="8" font_out_size_unit="0" font_out_style="0" font_over_face="Arial" font_over_color="#000000" font_over_size="8" font_over_size_unit="0" font_over_style="0" font_sel_out_face="Arial" font_sel_out_color="#000000" font_sel_out_size="8" font_sel_out_size_unit="0" font_sel_out_style="0" font_sel_over_face="Arial" font_sel_over_color="#000000" font_sel_over_size="8" font_sel_over_size_unit="0" font_sel_over_style="4" icon_width="20" icon_height="6" bg_out_color="#006699" bg_out_transparent="1" bg_out_tile="2" bg_over_color="#8FB4FF" bg_over_transparent="1" bg_over_tile="2" bg_sel_out_color="#8FB4FF" bg_sel_out_transparent="1" bg_sel_out_tile="2" bg_sel_over_color="#8FB4FF" bg_sel_over_transparent="1" bg_sel_over_tile="2" condition_invisible="0">
              <tip_text></tip_text>
              <status></status>
              <expand></expand>
              <collapse></collapse>
              <child></child>
              <bg_out_image></bg_out_image>
              <bg_over_image></bg_over_image>
              <bg_sel_out_image></bg_sel_out_image>
              <bg_sel_over_image></bg_sel_over_image>
              <prefix></prefix>
              <suffix></suffix>
            </node>
            <node state="2" status_default="1" font_out_face="Andy" font_out_color="#FFFFFF" font_out_size="12" font_out_size_unit="0" font_out_style="0" font_over_face="Andy" font_over_color="#EDEDED" font_over_size="12" font_over_size_unit="0" font_over_style="0" font_sel_out_face="Andy" font_sel_out_color="#000000" font_sel_out_size="12" font_sel_out_size_unit="0" font_sel_out_style="0" font_sel_over_face="Andy" font_sel_over_color="#000000" font_sel_over_size="12" font_sel_over_size_unit="0" font_sel_over_style="0" icon_width="36" icon_height="26" bg_out_color="#FFFFFF" bg_out_transparent="1" bg_out_tile="0" bg_over_color="#FFFFFF" bg_over_transparent="1" bg_over_tile="0" bg_sel_out_color="#FFFFFF" bg_sel_out_transparent="1" bg_sel_out_tile="0" bg_sel_over_color="#FFFFFF" bg_sel_over_transparent="1" bg_sel_over_tile="0" condition_invisible="0">
              <tip_text></tip_text>
              <status></status>
              <expand></expand>
              <collapse></collapse>
              <child></child>
              <bg_out_image>C:\Programme\SourceTec\Sothink Tree Menu\Templates\Base\XPgarybanner1.gif</bg_out_image>
              <bg_over_image>C:\Programme\SourceTec\Sothink Tree Menu\Templates\Base\XPgarybanner1.gif</bg_over_image>
              <bg_sel_out_image>C:\Programme\SourceTec\Sothink Tree Menu\Templates\Base\XPgarybanner1.gif</bg_sel_out_image>
              <bg_sel_over_image>C:\Programme\SourceTec\Sothink Tree Menu\Templates\Base\XPgarybanner1.gif</bg_sel_over_image>
              <prefix></prefix>
              <suffix></suffix>

        Den Rest lasse ich mal weg da nur noch fast das selbe kommt wie die letzten 5 Zeilen. Sind nur Verweise der Bilder!!!

        1. Moin

          Wo sind denn hier die Java Spezialisten?

          Pst, dein Problem betrifft JavaScript, das ist was ganz anderes als Java!

          Habe jetzt mal die Datei vom JavaScript geöffnet und mir den Quelltext angesehen.

          Du hast in diese Datei geschaut: http://www.g-streetz.de/_pgtres/stlib.js ?

          Nein, offensichtlich nicht.

          Und um ehrlich zu sein hab ich keine Lust dieses Codegewusel auseinanderzunehmen.
          Sinnvoller ist es wohl, du fragst dort, wo du es gedownloaded hast.

          Oder du verzichtest auf Frames.
          JavaScript-Navigation und Frames kombiniert ist bereits dermaßen barrierebehaftet, dass du damit garantiert nie ernsthaft bei google aufgenommen wirst, siehe Der Suchmaschinen-Robot und der Webdesigner

          Gruß
          rfb

          1. Hi, es war nicht direkt diese Datei es war die mit der langen Nummer, aber im selben Ordner. Da steht im Prinzip das gleiche drin nur etwas übersichtlicher so wie ich es gepostet habe. Was schlägst du mir denn vor was ich nehmen soll um eine Page zu erstellen die in etwa genauso aussehen soll? Das Menü sollte jedoch so in der Art sein...

            1. Moin

              wende dich an  die Scriptschreiber! Die haben das extra so kompliziert geschrieben damit sie unentbehrlich sind. Lass ihnen die Freude.

              Oder nimm ein anderes Script oder verzichte sowohl auf dies Menü als auch auf Frames.

              Gruß
              rfb