"A.N:" <axelkorup2nospamimage.dk> skrev i en meddelelse
news:4009afcc$0$167$edfadb0f@dtext02.news.tele.dk...
> Hej alle
>
> Jeg har en Javascript menu, hvordan for jeg f.eks. Historie til at åbne
> historie.html i en indbygget
> ramme ved navn I1??
Jeg har fundet dette, men hvor skal den sættes ind?
2) Menu links targetting
When an item or header is clicked on, the associated link string is checked.
If it's a null string, nothing is done. If the string starts with
"javascript:" the code that follows is executed. For anything else, the
string is taken to be a URL and the window's 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.
> Venlig hilsen
> Axel
>
> dhtmlMenu = new NavBarMenu(100, 120);
> dhtmlMenu.addItem(new NavBarMenuItem("Velkommen", ""));
> dhtmlMenu.addItem(new NavBarMenuItem("Historie", "historien.html"));
> dhtmlMenu.addItem(new NavBarMenuItem("Vejviser", "hjemmebanen.html"));
> dhtmlMenu.addItem(new NavBarMenuItem("Træningstider",
> "traeningstider.html"));
> dhtmlMenu.addItem(new NavBarMenuItem("Billedalbum", "billedalbum.html"));
> dhtmlMenu.addItem(new NavBarMenuItem("Kontigent", "kontigent.html"));
> myNavBar1.addMenu(dhtmlMenu);
>
>