Antje Hofmann: Popop-Sitemap steuert Frameset

Beitrag lesen

Hallo Willi,

var anzlink = new Array();

^^^^^^^^^^^^
split erzeugt automatisch ein Array, diese Zeile kannst du weglassen

var anzlink = tmp.split("");
  if (anzlink[0]!=""){
    parent.frames.submenu.location.href=anzlink[1];
    parent.frames.main.location.href=anzlink[2];}}

Die Zählung beginnt bei 0 bei deinem Aufruf übergibst du einen nicht existierenden Link

Funktionieren sollte es korrigiert so:

function quicklink(URL){
  tmp = URL;
  var anzlink = tmp.split("");
  if (anzlink[0]!=""){
    parent.frames.submenu.location.href=anzlink[0];
    parent.frames.main.location.href=anzlink[1];}}

Viele Grüße
Antje

<img src="http://pc-anfaenger.de/pca/sam/pcanfaenger.gif" alt="">