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:29
javascript openNewWindow & swapimage
Poster: TrOn
Dated: Sunday July 28 2002 - 12:16:23 BST
I've searched thru the forum and haven't found an answer for this yet. I have a menu like this:
Code:
function openNewWindow(winURL,winWidth,winHeight,winConfig){
mmConfig=""
mmConfig="width="+winWidth+","
mmConfig+="height="+winHeight+","
mmConfig+=winConfig
var mmWin=open(winURL,"",mmConfig);
mmWin.focus();
}
mmConfig=""
mmConfig="width="+winWidth+","
mmConfig+="height="+winHeight+","
mmConfig+=winConfig
var mmWin=open(winURL,"",mmConfig);
mmWin.focus();
}
Code:
,"<img src=but1.gif border=0>","javascript:openNewWindow('link.html') swapimage=but1_f2.gif;",,,0
The problem is, that the second swapimage (in this case but1_f2.gif) isn't shown. The link works, but I guess the function openNewWindow stops the execution of swapimage. Any ideas on how to fix it?
Poster: TrOn
Dated: Sunday July 28 2002 - 12:52:17 BST
Heh, fixed it.
Code:
,"<img src=but1.gif border=0>","show-menu=top3","javascript:openNewWindow(\"odpiranje_windowopen.txt\") swapimage=but1_f2.gif;","",0
Fantastic menu BTW! One of the few, that supports almost everything (frames, noframes,..) and also has a working pagecheck routine.
Keep it up!