Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:35
load two pages with one link
Poster: Snopsy
Dated: Friday June 14 2002 - 22:12:10 BST
Hello,
i will load two different pages in two different Frames. How do i do this?
I have testet it with a function who loads two pages in two frames, but i can't load the function in the menu-scipt. Then i becomes an error-message.
my Function is (the functions is above the menu-script):
Code:
function start_mich()
{
parent.mitte.location = "mich.html";
parent.hilfe.location = "hilfe.html";
}
function start_urlaub()
{
parent.mitte.location = "urlaub.html";
parent.hilfe.location = "hinweis.html";
}
{
parent.mitte.location = "mich.html";
parent.hilfe.location = "hilfe.html";
}
function start_urlaub()
{
parent.mitte.location = "urlaub.html";
parent.hilfe.location = "hinweis.html";
}
my load is:
Code:
addmenu(menu=["test",
,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
,"mich","start_mich()",,,1
,"urlaub","start_urlaub()",,,1
])
,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
,"mich","start_mich()",,,1
,"urlaub","start_urlaub()",,,1
])
Can Someone help me??
BYE Snopsy[/code]
Poster: hippysalamanca
Dated: Tuesday June 25 2002 - 13:00:13 BST
I modifyed this function like this
function openwin(url,url2)
{
nwin=window.open(url,"bottom");
window.open(url2,"up");
nwin.focus();
}
and the menus are this way
addmenu(menu=["estructura",,,170,1,"",menu1,,"",effect,,,,,,,,,,,,
,"Presidencia y CoordinaciĆ³n", "javascript:openwin(\"presidencia_y_coordinacion.htm\",\"navegacion/26.html\")",,,1
,"Cultursa", "javascript:openwin(\"cultursa.htm\",\"navegacion/01.html\")",,,1
,"Junta de Gobierno", "javascript:openwin(\"junta_de_gobierno.htm\",\"navegacion/01.html\")",,,1
,"ComisiĆ³n Ejecutiva", "javascript:openwin(\"comision_ejecutiva.htm\",\"navegacion/01.html\")",,,1
])
that way it work perfectly