Eddie: Einblendbares Menü , Probleme bei window.open

Hi,

ich brauch jetzt mal die Hilfe von Spezialisten.

Ich hab auf der Webpage eine Navigationsleite, die bei Mouseover eingeblendet wird. Soweit sogut.

Das Problem das ich jetzt habe ist, daß ich es nicht auf die Reihe bekomme, die Links in der Navigationsleiste in einem neuen Fenster öffnen zu lassen.

Ich poste mal den Code bis dato :

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="de">
<STYLE>
<!--
.link {

color : blue;
 font-weight : solid;
 text-decoration : none;

}

A.link:hover {
 color : red;
}

A.link:active {
 color : blue;
 text-decoration : none;
 text-transform : none;
}
//-->
</STYLE>

<style>
<!--

#slidemenubar, #slidemenubar2{
position:absolute;
left:-160px;
width:170px;
top:180px;
border:1.0px solid blue;
background-color:yellow;
layer-background-color:yellow;
font:bold 12px Veranda;
line-height:30px;
}
-->
</style>

<title></title>

</head>

<body bgcolor="#FFFF00" leftmargin="0">

<p><script language="JavaScript1.2">

if (document.all)
document.write('<div id="slidemenubar2" style="left:-150" onMouseover="pull()" onMouseout="draw()">')
</script>
<layer id="slidemenubar" onMouseover="pull()" onMouseout="draw()">
<script language="JavaScript1.2">
var sitems=new Array()
var sitemlinks=new Array()

sitems[0]="Link1"
sitems[1]="Link2"
sitems[2]="Link3"

sitemlinks[0]="under_construction.htm"
sitemlinks[1]="under_construction.htm"
sitemlinks[2]="under_construction.htm"

for (i=0;i<=sitems.length-1;i++)
document.write('<a href='+sitemlinks[i]+'>'+sitems[i]+'</a><br>')

</script>
</layer>
<script language="JavaScript1.2">
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",400)
}
window.onload=regenerate2
if (document.all){
document.write('</div>')
themenu=document.all.slidemenubar2.style
rightboundary=0
leftboundary=-150
}
else{
themenu=document.layers.slidemenubar
rightboundary=150
leftboundary=10
}
function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()",50)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()",50)
}
function pullengine(){
if (document.all&&themenu.pixelLeft<rightboundary)
themenu.pixelLeft+=10
else if(document.layers&&themenu.left<rightboundary)
themenu.left+=10
else if (window.pullit)
clearInterval(pullit)
}
function drawengine(){
if (document.all&&themenu.pixelLeft>leftboundary)
themenu.pixelLeft-=10
else if(document.layers&&themenu.left>leftboundary)
themenu.left-=10
else if (window.drawit)
clearInterval(drawit)
}
</script>
</body>
</html>

  1. Das geht wie bei jedem anderen Link auch target="_blank" in den href mit eintragen.
    Gruss Sven

    Hi,

    ich brauch jetzt mal die Hilfe von Spezialisten.

    Ich hab auf der Webpage eine Navigationsleite, die bei Mouseover eingeblendet wird. Soweit sogut.

    Das Problem das ich jetzt habe ist, daß ich es nicht auf die Reihe bekomme, die Links in der Navigationsleiste in einem neuen Fenster öffnen zu lassen.

    Ich poste mal den Code bis dato :

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta http-equiv="Content-Language" content="de">
    <STYLE>
    <!--
    .link {

    color : blue;
    font-weight : solid;
    text-decoration : none;

    }

    A.link:hover {
    color : red;
    }

    A.link:active {
    color : blue;
    text-decoration : none;
    text-transform : none;
    }
    //-->
    </STYLE>

    <style>
    <!--

    #slidemenubar, #slidemenubar2{
    position:absolute;
    left:-160px;
    width:170px;
    top:180px;
    border:1.0px solid blue;
    background-color:yellow;
    layer-background-color:yellow;
    font:bold 12px Veranda;
    line-height:30px;
    }
    -->
    </style>

    <title></title>

    </head>

    <body bgcolor="#FFFF00" leftmargin="0">

    <p><script language="JavaScript1.2">

    if (document.all)
    document.write('<div id="slidemenubar2" style="left:-150" onMouseover="pull()" onMouseout="draw()">')
    </script>
    <layer id="slidemenubar" onMouseover="pull()" onMouseout="draw()">
    <script language="JavaScript1.2">
    var sitems=new Array()
    var sitemlinks=new Array()

    sitems[0]="Link1"
    sitems[1]="Link2"
    sitems[2]="Link3"

    sitemlinks[0]="under_construction.htm"
    sitemlinks[1]="under_construction.htm"
    sitemlinks[2]="under_construction.htm"

    for (i=0;i<=sitems.length-1;i++)
    document.write('<a href='+sitemlinks[i]+'>'+sitems[i]+'</a><br>')

    </script>
    </layer>
    <script language="JavaScript1.2">
    function regenerate(){
    window.location.reload()
    }
    function regenerate2(){
    if (document.layers)
    setTimeout("window.onresize=regenerate",400)
    }
    window.onload=regenerate2
    if (document.all){
    document.write('</div>')
    themenu=document.all.slidemenubar2.style
    rightboundary=0
    leftboundary=-150
    }
    else{
    themenu=document.layers.slidemenubar
    rightboundary=150
    leftboundary=10
    }
    function pull(){
    if (window.drawit)
    clearInterval(drawit)
    pullit=setInterval("pullengine()",50)
    }
    function draw(){
    clearInterval(pullit)
    drawit=setInterval("drawengine()",50)
    }
    function pullengine(){
    if (document.all&&themenu.pixelLeft<rightboundary)
    themenu.pixelLeft+=10
    else if(document.layers&&themenu.left<rightboundary)
    themenu.left+=10
    else if (window.pullit)
    clearInterval(pullit)
    }
    function drawengine(){
    if (document.all&&themenu.pixelLeft>leftboundary)
    themenu.pixelLeft-=10
    else if(document.layers&&themenu.left>leftboundary)
    themenu.left-=10
    else if (window.drawit)
    clearInterval(drawit)
    }
    </script>
    </body>
    </html>

    1. Hi Sven,

      kannst Du mir bitte sagen, wo genau ich target="_blank" einbauen soll ? Bekomme immer ein JavaScript Error. Irgendwas mach ich falsch ??

      for (i=0;i<=sitems.length-1;i++)
      document.write('<a href='+sitemlinks[i]+' target="_blank"'>'+sitems[i]+'</a><br>')

      Thanx
      Eddie
      ______________________________________

      Das geht wie bei jedem anderen Link auch target="_blank" in den href mit eintragen.
      Gruss Sven

      Hi,

      ich brauch jetzt mal die Hilfe von Spezialisten.

      Ich hab auf der Webpage eine Navigationsleite, die bei Mouseover eingeblendet wird. Soweit sogut.

      Das Problem das ich jetzt habe ist, daß ich es nicht auf die Reihe bekomme, die Links in der Navigationsleiste in einem neuen Fenster öffnen zu lassen.

      Ich poste mal den Code bis dato :

      <html>

      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
      <meta http-equiv="Content-Language" content="de">
      <STYLE>
      <!--
      .link {

      color : blue;
      font-weight : solid;
      text-decoration : none;

      }

      A.link:hover {
      color : red;
      }

      A.link:active {
      color : blue;
      text-decoration : none;
      text-transform : none;
      }
      //-->
      </STYLE>

      <style>
      <!--

      #slidemenubar, #slidemenubar2{
      position:absolute;
      left:-160px;
      width:170px;
      top:180px;
      border:1.0px solid blue;
      background-color:yellow;
      layer-background-color:yellow;
      font:bold 12px Veranda;
      line-height:30px;
      }
      -->
      </style>

      <title></title>

      </head>

      <body bgcolor="#FFFF00" leftmargin="0">

      <p><script language="JavaScript1.2">

      if (document.all)
      document.write('<div id="slidemenubar2" style="left:-150" onMouseover="pull()" onMouseout="draw()">')
      </script>
      <layer id="slidemenubar" onMouseover="pull()" onMouseout="draw()">
      <script language="JavaScript1.2">
      var sitems=new Array()
      var sitemlinks=new Array()

      sitems[0]="Link1"
      sitems[1]="Link2"
      sitems[2]="Link3"

      sitemlinks[0]="under_construction.htm"
      sitemlinks[1]="under_construction.htm"
      sitemlinks[2]="under_construction.htm"

      for (i=0;i<=sitems.length-1;i++)
      document.write('<a href='+sitemlinks[i]+'>'+sitems[i]+'</a><br>')

      </script>
      </layer>
      <script language="JavaScript1.2">
      function regenerate(){
      window.location.reload()
      }
      function regenerate2(){
      if (document.layers)
      setTimeout("window.onresize=regenerate",400)
      }
      window.onload=regenerate2
      if (document.all){
      document.write('</div>')
      themenu=document.all.slidemenubar2.style
      rightboundary=0
      leftboundary=-150
      }
      else{
      themenu=document.layers.slidemenubar
      rightboundary=150
      leftboundary=10
      }
      function pull(){
      if (window.drawit)
      clearInterval(drawit)
      pullit=setInterval("pullengine()",50)
      }
      function draw(){
      clearInterval(pullit)
      drawit=setInterval("drawengine()",50)
      }
      function pullengine(){
      if (document.all&&themenu.pixelLeft<rightboundary)
      themenu.pixelLeft+=10
      else if(document.layers&&themenu.left<rightboundary)
      themenu.left+=10
      else if (window.pullit)
      clearInterval(pullit)
      }
      function drawengine(){
      if (document.all&&themenu.pixelLeft>leftboundary)
      themenu.pixelLeft-=10
      else if(document.layers&&themenu.left>leftboundary)
      themenu.left-=10
      else if (window.drawit)
      clearInterval(drawit)
      }
      </script>
      </body>
      </html>