Good morning all!
Need a little help with my JS. First, some background information.
I have a main menu with links to mini menus or sub-menus that pop-up when clicked.
The sub-menus have links which open other pages, targeted at the main window (main menu page).
I have the script on the main menu set-up such that when one sub-menu is opened, any other sub-menu currently opened, is closed. The script looks like this:
<script language="JavaScript" type="text/JavaScript">
window.name= "OpenWindow"
var openedWindow;
<!--
function CloseWindow(){
if (openedWindow != null) openedWindow.close();
}
function Photos150() {
CloseWindow();
openedWindow = window.open("D:/DarronMason's/LinksToPhotos1-50.htm","PhotoWindow","width=375,height=225,top=0,left=0");
}
function Photos51100() {
CloseWindow();
openedWindow = window.open("D:/DarronMason's/LinksToPhotos51-100.htm","PhotoWindow","width=375,height=225,top=0,left=0");
}
function Photos101150() {
CloseWindow();
openedWindow = window.open("D:/DarronMason's/LinksToPhotos101-150.htm","","width=400,height=225,top=0,left=0");
}
.
.
.
.
function MisDocs() {
CloseWindow();
openedWindow = window.open("D:/DarronMason's/LinksToMiscellaneousDocuments1-24.htm","","scrollbars=yes,width=215,height=183,top=0,left=0");
}
//-->
</script>
My problem is this, I want the sub-menus to ALWAYS stay in focus. This sub-menu is also the user's mode of navigation. However, when I use the onBlur="self.focus()" method, I can nolonger have the sub-menus close currently opened sub-menus (which is very important); the window refuses to close. I've tried having the pages open onFocus="self.blur()", but that isn't working the way I'd like it to either.
All help welcomed!
As always, thank you in advance for your time and your help.
~Darron
Need a little help with my JS. First, some background information.
I have a main menu with links to mini menus or sub-menus that pop-up when clicked.
The sub-menus have links which open other pages, targeted at the main window (main menu page).
I have the script on the main menu set-up such that when one sub-menu is opened, any other sub-menu currently opened, is closed. The script looks like this:
<script language="JavaScript" type="text/JavaScript">
window.name= "OpenWindow"
var openedWindow;
<!--
function CloseWindow(){
if (openedWindow != null) openedWindow.close();
}
function Photos150() {
CloseWindow();
openedWindow = window.open("D:/DarronMason's/LinksToPhotos1-50.htm","PhotoWindow","width=375,height=225,top=0,left=0");
}
function Photos51100() {
CloseWindow();
openedWindow = window.open("D:/DarronMason's/LinksToPhotos51-100.htm","PhotoWindow","width=375,height=225,top=0,left=0");
}
function Photos101150() {
CloseWindow();
openedWindow = window.open("D:/DarronMason's/LinksToPhotos101-150.htm","","width=400,height=225,top=0,left=0");
}
.
.
.
.
function MisDocs() {
CloseWindow();
openedWindow = window.open("D:/DarronMason's/LinksToMiscellaneousDocuments1-24.htm","","scrollbars=yes,width=215,height=183,top=0,left=0");
}
//-->
</script>
My problem is this, I want the sub-menus to ALWAYS stay in focus. This sub-menu is also the user's mode of navigation. However, when I use the onBlur="self.focus()" method, I can nolonger have the sub-menus close currently opened sub-menus (which is very important); the window refuses to close. I've tried having the pages open onFocus="self.blur()", but that isn't working the way I'd like it to either.
All help welcomed!
As always, thank you in advance for your time and your help.
~Darron