sourcecode Dreamweaver

  • Hallo Elke, zu dem Navigationsmenu, das ich so als script von einer designsite heruntergeladen habe( http://www.dynamicdrive.com), und das ansonsten sehr gut funktioniert,fand ich jetzt noch einen hinweis:
    Menu links targetting: when an item or header is clicked on, the associated link string is checked. if it is a null string, nothing is done. if the string starts with "jacascript:", the code that follows is executed. For anything else,the string is taken to be a url and the windows location is set to that value, causing the link to be followed.
    To setup a menu link so that the url loads in another frame, use the following javascript :url:
    javascript:parent.framename.location=http://dynamicdrive.com
    where "framename" is the name of the frame you wish to target.
    wahrscheinlich ist das der schlüssel zu der Frage, aber ich verstehe nicht genug html um das korrekt auszuführen. Vielleicht schaffst du es.
    die url der website, auf der das script laufen soll, ist
    http://www.advancedleadership.de
    liebe grüsse-
    Ulrich

  • hallo ulrich,
    ich hab mir das script nochmal angesehen und mir die beschreibung
    durchgelesen.
    versuche folgendes:
    ergänze deine links in dem menü um
    javascript:parent.mainFrame.location=dein_link
    beispiel:
    dhtmlMenu = new NavBarMenu(80, 125);
    dhtmlMenu.addItem(new NavBarMenuItem("Training"));
    dhtmlMenu.addItem(new NavBarMenuItem("Managementtraining",
    "javascript:parent.mainFrame.location=managementtraining.htm"));
    dhtmlMenu.addItem(new NavBarMenuItem("Emotionale Intelligenz",
    "javascript:parent.mainFrame.location=emotionale intelligenz.htm"));
    dhtmlMenu.addItem(new NavBarMenuItem("SeniorLeadership",
    "javascript:parent.mainFrame.location=seniorleadership.htm"));
    dhtmlMenu.addItem(new NavBarMenuItem("Heroes Journey",
    "javascript:parent.mainFrame.location=heroes journey.htm"));
    dhtmlMenu.addItem(new NavBarMenuItem("Gruppendynamik",
    "javascript:parent.mainFrame.location=gruppendynamik.htm"));
    myNavBar1.addMenu(dhtmlMenu)
    achte aber unbedingt darauf, dass nach dem = ein einfaches hochkomma folgen
    muss. KEINE anführungszeichen!!!!
    das gleiche gilt für das ende des links nach ..htm ein einfaches hochkomma
    und dann erst anführungszeichen.
    wenn es funktioniert würde ich mich freuen wenn du mir nochmal kurz bescheid
    gibst.
    natürlich auch wenn´s nicht funktioniert hat ;o)
    grüsse
    elke