Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Menu Bar is not working

5 views
Skip to first unread message

hetal.t...@gmail.com

unread,
Nov 6, 2008, 10:02:15 AM11/6/08
to
I have a menu page and it is not working in FireFox 3.0
It was working in prev. FF versions, i am not able to figure out why!
If anybody can then i will appreciate it


<style type="text/css">

div.menuItemEnabled {
font-family: Charcoal, MS Sans Serif, Verdana, Helvetica; font-size:
8pt;
position: relative; left: 0; top: 0;
padding-top: 3; padding-bottom: 3;
}
div.menuItemDisabled {
font-family: Charcoal, MS Sans Serif, Verdana, Helvetica; font-size:
8pt;
color: darkgray;
position: relative; left: 0; top: 0;
padding-top: 3; padding-bottom: 3;
}

div.menu {
font-family: Charcoal, MS Sans Serif, Verdana, Helvetica; font-size:
8pt;
background-color: #C9D8FC; border: 2px buttonface outset;
padding-left: 0px; padding-right: 1px;
padding-top: 0px; padding-bottom: 1px;
position: absolute; top: -3; left: 75;
display: none;
}
div.subMenu {
font-family: Charcoal, MS Sans Serif, Verdana, Helvetica; font-size:
8pt;
background-color: #C9D8FC; border: 2px buttonface outset;
padding-left: 0px; padding-right: 1px;
padding-top: 0px; padding-bottom: 0px;
position: absolute; top: -2; left: 75;
display: none;
}

div.menuBar {
height: 25;
position: relative; top: 0; left: 0; padding-left: 5; padding-right:
5;
background-color: #C9D8FC; border: 1px buttonface outset;
}

span.menuBarOption {
position: relative; left: 1; top: 1; height: 17;
font-family: Charcoal, MS Sans Serif, Verdana, Helvetica; font-size:
8pt;
border: 1px solid #C9D8FC;
padding-left: 1px; padding-right: 2px; padding-top:2px; padding-
bottom:2px;
}

</style>

<script language="JavaScript">
<!-- Begin hiding from older browsers

isMac = false;//(navigator.appVersion.indexOf("Macintosh") != -1);
isIE = window.showModalDialog;
//alert(isIE);
var newwin
menuEventList = new Array(1);
menuEventList[0] = 0;

uniqueEventIdentifier = 1;

function menuEvent (secs, exeStatement) {
cancelMenuEvent ();

this.time = secs;
this.exeStatement = exeStatement;
this.identifier = uniqueEventIdentifier++;

menuEventList[0] = this;

window.setTimeout ( "utemenuEvent(" + menuEventList[0].identifier +
");", secs*1000 );
}
function executemenuEvent (eventIdentifier) {
if ( typeof ( menuEventList[0] ) == "object" )
if ( typeof ( menuEventList[0].exeStatement ) == "string" )
if ( menuEventList[0].identifier == eventIdentifier ) {
eval ( menuEventList[0].exeStatement );
menuEventList[0] = void 0;
}
}
function cancelMenuEvent () {
menuEventList[0] = void 0;
}

function menuBarMouseOut () {
if (isMac) {
tempEvent = new menuEvent (3, 'if (document.menuIsActive)
{ document.currentMenu.style.display=\'none\';
document.currentMBarOpt.style.border=\'1px solid #C9D8FC\';
document.currentMBarOpt.style.backgroundColor=\'#C9D8FC\';
document.currentMBarOpt.style.color=\'black\';
document.menuIsActive=false; }')
}
}
function menuBarBlur () {
document.currentMenu.style.display='none';
unblockMenu();
document.currentMBarOpt.style.border='1px solid lightgrey';
document.menuIsActive = false;
}

function menuBarOptionMouseOver (menuBarOptionId, menuId) {
if (document.menuIsActive) {
blockMenu(menuId);
}
if (document.menuIsActive) {
document.currentMenu.style.display = 'none';
document.currentMBarOpt.style.border='1px solid #C9D8FC';
document.currentMBarOpt.style.backgroundColor='#C9D8FC';
document.currentMBarOpt.style.color='black';
}
if (isMac) {
menuId.style.top=16;
if (document.menuIsActive) {
menuBarOptionId.style.border='1px solid darkblue';
menuBarOptionId.style.backgroundColor='darkblue';
menuBarOptionId.style.color='white';
menuId.style.display = 'block';
}
}
else {
if (document.menuIsActive) {
menuBarOptionId.style.border='1px buttonface inset';
menuId.style.display = 'block';
}
else {
if (typeof (document.currentMBarOpt) == 'object') {
document.currentMBarOpt.style.border='1px solid #C9D8FC';
}
menuBarOptionId.style.border='1px buttonface outset';
}
}
menuBarOptionId.style.cursor='default';
document.currentMenu=menuId;
document.currentMBarOpt=menuBarOptionId;
blockMenu(menuId);
}
function menuBarOptionMouseOut (menuBarOptionId) {
if (!document.menuIsActive) {
menuBarOptionId.style.border='1px solid #C9D8FC';
}
}


function blockMenu(menuId) {
if (isIE) {
var menublocker = document.getElementById("menublocker");
menublocker.style.top = DL_GetElementTop(menuId);
menublocker.style.left = DL_GetElementLeft(menuId);
menublocker.style.width = menuId.clientWidth+5;
menublocker.style.height = menuId.clientHeight+5;
menublocker.style.display = 'block';
menublocker.style.zIndex = menuId.style.zIndex - 10;

menublocker.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
}
}

function unblockMenu() {
if (isIE) {
var menublocker = document.getElementById("menublocker");
menublocker.style.display = 'none';
}
}

function blockChildMenu(menuId) {
if (isIE) {
var menublocker = document.getElementById("menublocker2");
menublocker.style.top = DL_GetElementTop(menuId);
menublocker.style.left = DL_GetElementLeft(menuId);
menublocker.style.width = menuId.clientWidth+5;
menublocker.style.height = menuId.clientHeight+5;
menublocker.style.display = 'block';
menublocker.style.zIndex = menuId.style.zIndex - 10;

menublocker.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
}
}
function unblockChildMenu() {
if (isIE) {
var menublocker = document.getElementById("menublocker2");
menublocker.style.display = 'none';
}
}


function menuBarOptionMouseDown (menuBarOptionId, menuId) {
blockMenu(menuId);
// alert("test");

if (isIE)
{
//alert(menuId);

menubar.focus ();
}

if(isIE && newwin != null)
{
newwin.focus();
newwin=null;
}

blockMenu(menuId);
if (isMac) {
menuBarOptionId.style.border='1px solid darkblue';
menuBarOptionId.style.backgroundColor='darkblue';
menuBarOptionId.style.color='white';
}
else {

menuBarOptionId.style.border='1px buttonface inset';
}

menuId.style.display = 'block';


document.menuIsActive=true;
blockMenu(menuId);

}

function menuClick () {
if (isMac) {
document.currentMenu.style.display='none';
document.currentMBarOpt.style.border='1px solid #C9D8FC';
document.currentMBarOpt.style.backgroundColor='#C9D8FC';
document.currentMBarOpt.style.color='black';
}
}

function menuOptionCellMouseOver (cell) {
cell.style.cursor='default';
cell.style.backgroundColor='darkblue';
cell.style.color='white';
//alert("test");
}
function menuOptionCellMouseOut (cell) {
cell.style.backgroundColor='#C9D8FC';
cell.style.color='black';
}

function menuOptionDivMouseDown (url) {
if (! isMac) {
document.currentMenu.style.display='none';
document.currentMBarOpt.style.border='1px solid #C9D8FC';
document.menuIsActive = false;
window.location.href=url + '&rnd=' + Math.random(); //refresh page
}
}


// added 05/24/07 new function to pop a new window and supply
options. These
// options are the same as a naitive window.open and are passed
// unchanged. We will wait 1/4 of second and then
focus on the
// new window.

function menuOptionDivMouseDownNWopts(url,window_name,window_options)
{

if (! isMac) {
document.currentMenu.style.display='none';
document.currentMBarOpt.style.border='1px solid #C9D8FC';
document.menuIsActive = false;
final_url = url + '&rnd=' + Math.random();
newwin = window.open(final_url,window_name,window_options);
setTimeout('newwin.focus()',250); // wait 1/4 second then set focus
newwin.focus();
}
}


function menuOptionDivMouseDownNW (url) {
if (! isMac) {
document.currentMenu.style.display='none';
document.currentMBarOpt.style.border='1px solid #C9D8FC';
document.menuIsActive = false;
final_url = url + '&rnd=' + Math.random();
window.open(final_url);
}
}


function menuOptionDivMouseDownNW_NR (url) {
if (! isMac) {
document.currentMenu.style.display='none';
document.currentMBarOpt.style.border='1px solid #C9D8FC';
document.menuIsActive = false;

final_url = url
newwin = window.open(final_url);
newwin.focus();
}
}

function menuOptionDivClick (url) {
if (isMac) {
document.currentMenu.style.display='none';
document.currentMBarOpt.style.border='1px solid #C9D8FC';
document.menuIsActive = false;
window.location.href=url + '&rnd=' + Math.random(); //refresh page
}
}

function menuOptionDivClickNW (url) {
if (isMac) {
document.currentMenu.style.display='none';
document.currentMBarOpt.style.border='1px solid #C9D8FC';
document.menuIsActive = false;
final_url = url + '&rnd=' + Math.random();
window.open(final_url);

}
}


function menuOptionDivClickNW_NR (url) {
if (isMac) {
document.currentMenu.style.display='none';
document.currentMBarOpt.style.border='1px solid #C9D8FC';
document.menuIsActive = false;

final_url = url
newwin = window.open(final_url);
newwin.focus();

}

}


function DL_GetElementLeft(eElement)
{
//alert(eElement);
if(eElement)
{
var nLeftPos = eElement.offsetLeft; // initialize var to
store calculations
var eParElement = eElement.offsetParent; // identify first
offset parent element
//alert(eElement.offsetParent);
while (eParElement.offsetParent != null)
{ // move up through
element hierarchy
tempPos = eParElement.offsetLeft;
if (eParElement.offsetParent.offsetParent != null) {
nLeftPos += eParElement.offsetLeft; // appending left offset
of each parent
}
eParElement = eParElement.offsetParent; // until no more offset
parents exist
}
return nLeftPos; // return the number
calculated
}
}

function DL_GetElementTop(eElement)
{
var nTopPos = eElement.offsetTop; // initialize var to
store calculations
var eParElement = eElement.offsetParent; // identify first
offset parent element
while (eParElement != null)
{ // move up through
element hierarchy
nTopPos += eParElement.offsetTop; // appending top
offset of each parent
eParElement = eParElement.offsetParent; // until no more
offset parents exist
}
return nTopPos; // return the number
calculated
}


//End hiding-->
</script>

</head>

<center>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="5">
<!--
{editorialMenu}
-->


<div id="menubar" class="menuBar"
onmouseout="menuBarMouseOut();"
onmouseover="cancelMenuEvent();"
onblur="menuBarBlur ()"
>

<IFRAME id=menublocker name=menublocker style="DISPLAY: none; LEFT:
0px; POSITION: absolute; TOP: 0px" src="javascript:false;"
frameBorder="0" scrolling="no"></IFRAME>
<IFRAME id="menublocker2" name=menublocker2 style="DISPLAY: none;
LEFT: 0px; POSITION: absolute; TOP: 0px" src="javascript:false;"
frameBorder="0" scrolling="no"></IFRAME>

<span id="GettingStartedMenuBarOpt" class="menuBarOption"
onmouseover="menuBarOptionMouseOver (GettingStartedMenuBarOpt,
startedMenu)"
onmouseout="menuBarOptionMouseOut (GettingStartedMenuBarOpt)"
onmousedown="menuBarOptionMouseDown (GettingStartedMenuBarOpt,
startedMenu)"
>

<!-- Tools Menu -->
<div id="startedMenu"
style="
font-family: Charcoal, MS Sans Serif, Verdana, Helvetica;
font-size:18pt;
background-color: #C9D8FC; border: 2px buttonface outset;
padding-left: 0px; padding-right: 1px;
padding-top: 1px; padding-bottom: 1px;
position: absolute; top: 18; left: -1;
display: none;
"
onclick="menuClick ()"
>
<table cellpadding="0" cellspacing="0" border="0"
ID="Table1">


<tr
onmouseover="menuOptionCellMouseOver (this);"
onmouseout="menuOptionCellMouseOut (this);"
>

<td colspan="2" nowrap>
<div id="Div26" class="menuItemEnabled"
onmousedown="menuOptionDivMouseDown
('am_man_getting_startedasc?a=<%=strAffiliate%>&launch=logo')"
onclick="menuOptionDivClick ('am_man_getting_startedasc?
a=<%=strAffiliate%>&launch=logo')"
>&nbsp;&nbsp;&nbsp;&nbsp;Upload Your
Logo...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
</td>
</tr>

<tr
onmouseover="menuOptionCellMouseOver (this);"
onmouseout="menuOptionCellMouseOut (this);"
>

<td colspan="2" nowrap>
<div id="Div27" class="menuItemEnabled"
onmousedown="menuOptionDivMouseDown
('am_man_getting_startedasc?a=<%=strAffiliate%>&launch=users')"
onclick="menuOptionDivClick ('am_man_getting_startedasc?
a=<%=strAffiliate%>&launch=users')"
>&nbsp;&nbsp;&nbsp;&nbsp;Import
Users...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
</td>
</tr>


<tr
onmouseover="menuOptionCellMouseOver (this);"
onmouseout="menuOptionCellMouseOut (this);"
>

<td colspan="2" nowrap>
<div id="Div28" class="menuItemEnabled"
onmousedown="menuOptionDivMouseDown
('am_man_getting_startedasc?a=<%=strAffiliate%>&launch=newsletter')"
onclick="menuOptionDivClick ('am_man_getting_startedasc?
a=<%=strAffiliate%>&launch=newsletter')"
>&nbsp;&nbsp;&nbsp;&nbsp;Create & Send
Newsletter...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
</td>
</tr>

</table>
</div>
&nbsp;Getting&nbsp;Started&nbsp;</span>

<!-- Reports Menu -->
<span id="MeetingsMenuMBarOpt" class="menuBarOption"
onmouseover="menuBarOptionMouseOver (MeetingsMenuMBarOpt,
MeetingsMenu)"
onmouseout="menuBarOptionMouseOut (MeetingsMenuMBarOpt)"
onmousedown="menuBarOptionMouseDown (MeetingsMenuMBarOpt,
MeetingsMenu)"
>
<div id="MeetingsMenu"
style="
font-family: Charcoal, MS Sans Serif, Verdana, Helvetica;
font-size:8pt;
background-color: #C9D8FC; border: 2px buttonface outset;
padding-left: 0px; padding-right: 1px;
padding-top: 1px; padding-bottom: 1px;
position: absolute; top: 18; left: -1;
display: none;
"
onclick="menuClick ()"
>
<table cellpadding="0" cellspacing="0" border="0">
<tr
onmouseover="menuOptionCellMouseOver (this);"
onmouseout="menuOptionCellMouseOut (this);"
>
<td colspan="2">
<div id="Div7" class="menuItemEnabled"
onmousedown="menuOptionDivMouseDown ('setup_meetingasc?
meeting_type_id=<%=meeting_type_id%>&a=<%=strAffiliate%>')"
onclick="menuOptionDivClick ('setup_meetingasc?
meeting_type_id=<%=meeting_type_id%>&a=<%=strAffiliate%>')"

>&nbsp;&nbsp;&nbsp;&nbsp;meeting_type_n&nbsp;&nbsp;&nbsp;&nbsp;</div>
</td>
</table>
</div>
&nbsp;Meetings&nbsp;</span>


<!-- Reports Menu -->
<span id="reportsMenuMBarOpt" class="menuBarOption"
onmouseover="menuBarOptionMouseOver (reportsMenuMBarOpt,
reportMenu)"
onmouseout="menuBarOptionMouseOut (reportsMenuMBarOpt)"
onmousedown="menuBarOptionMouseDown (reportsMenuMBarOpt,
reportMenu)"
>
<div id="reportMenu"
style="
font-family: Charcoal, MS Sans Serif, Verdana, Helvetica;
font-size:8pt;
background-color: #C9D8FC; border: 2px buttonface outset;
padding-left: 0px; padding-right: 1px;
padding-top: 1px; padding-bottom: 1px;
position: absolute; top: 18; left: -1;
display: none;
"
onclick="menuClick ()"
>
<table cellpadding="0" cellspacing="0" border="0">


<tr
onmouseover="menuOptionCellMouseOver (this);"
onmouseout="menuOptionCellMouseOut (this);"
>
<td colspan="2">
<div id="Div45" class="menuItemEnabled"
onmousedown="menuOptionDivMouseDown ('a_custom_reportasc?
typeField=nulls&a=<%=strAffiliate%>&tab=reports')"
onclick="menuOptionDivClick ('a_custom_reportasc?
typeField=nulls&a=<%=strAffiliate%>&tab=reports')"

>&nbsp;&nbsp;&nbsp;&nbsp;Executive&nbsp;Summary&nbsp;&nbsp;&nbsp;&nbsp;</
div>
</td>
</tr>
<%if IsOptionOn(strOptionArray, OPT_ADVANCED_PRESCREEN) =
"1" then%>

<tr
onmouseover="menuOptionCellMouseOver (this);"
onmouseout="menuOptionCellMouseOut (this);"
>


</table>
</div>
&nbsp;Reports&nbsp;</span>

0 new messages