Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:08
Another NS 7.1 oddity
Poster: mckee __at__ newsstand.com
Dated: Wednesday October 1 2003 - 20:13:39 BST
Using this code when moving the mouse over menu items and expecting sub-menus to drop down or pop-out depending on orientation only every other menu works. Clicking on the in between menu gets it to open and changes which ones do and don't. Does not happen in IE.
I have tried dropping the close and open delays to 1, removed the fade in the over Filter and eliminated the outFilter completely to no avail.
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenudom.js" type=text/javascript></SCRIPT>
<script>
_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_followSpeed=5 // Follow scrolling speed
_followRate=40 // Follow scrolling Rate
_subOffsetTop=5 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset
var showText = true;
var showTB = true;
with(menuStyle=new mm_style())
{
onbgcolor="lightgrey";
oncolor="black";
offbgcolor="lightgrey";
offcolor="black";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="T_arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='##777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
with(menuStyle2=new mm_style())
{
onbgcolor="lightgrey";
oncolor="black";
offbgcolor="lightgrey";
offcolor="black";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="lightgrey";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="T_arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='##777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
with(milonic=new menuname("Issues"))
{
style=menuStyle;
top=0;
left=0;
alwaysvisible=1;
orientation="horizontal";
followscroll="1";
if(showText)
{
itemwidth="100%";
aI("image=ns-icon1.jpg;text=NewsStand;url=http://mckeewwwn;status=NewsStand;");
aI("image=pref1.jpg;text=Preferences;showmenu=Prefs;status=Preferences;");
aI("image=search1.jpg;text=Search;showmenu=Search;status=Search;");
aI("image=paper.jpg;text=Issues;showmenu=Pubs;statu=My Publications;");
aI("image=alert1.jpg;text=Alerts;showmenu=Alerts;statu=Alerts;");
aI("image=help1.jpg;text=Help;url=http://support.newsstand.com;target=_blank;status=Help;");
}
else
{
aI("image=ns-icon1.jpg;url=http://mckeewwwn;status=NewsStand;");
aI("image=pref1.jpg;showmenu=Prefs;status=Preferences;");
aI("image=search1.jpg;showmenu=Search;status=Search;");
aI("image=paper.jpg;showmenu=Pubs;statu=My Publications;");
aI("image=alert1.jpg;showmenu=Alerts;statu=Alerts;");
aI("image=help1.jpg;url=http://support.newsstand.com;target=_blank;status=Help;");
}
}
with(milonic=new menuname("Pubs"))
{
style=menuStyle2;
overflow="scroll";
aI("text=Barron's;showmenu=Barrons190148;status=Barron's;");
aI("text=Boston Herald;showmenu=BostonHerald194221;status=Boston Herald;");
aI("text=Harvard Business Review;showmenu=HarvardBusinessReview191023;status=Harvard Business Review;");
aI("text=International Herald Tribune;showmenu=InternationalHeraldTribune191269;status=International Herald Tribune;");
aI("text=International Herald Tribune;showmenu=InternationalHeraldTribune191270;status=International Herald Tribune;");
aI("text=The New York Times;showmenu=TheNewYorkTimes191273;status=The New York Times;");
aI("text=The New York Times;showmenu=TheNewYorkTimes191277;status=The New York Times;");
aI("text=The New York Times;showmenu=TheNewYorkTimes191274;status=The New York Times;");
aI("text=The New York Times;showmenu=TheNewYorkTimes191271;status=The New York Times;");
aI("text=The New York Times;showmenu=TheNewYorkTimes191268;status=The New York Times;");
aI("text=The Scotsman;showmenu=TheScotsman193578;status=The Scotsman;");
aI("text=The New York Times Advance Sunday;showmenu=TheNewYorkTimesAdvanceSunday191276;status=The New York Times Advance Sunday;");
aI("text=The New York Times Magazine;showmenu=TheNewYorkTimesMagazine191275;status=The New York Times Magazine;");
}
with(milonic=new menuname("Barrons190148"))
{
style=menuStyle;
aI("text=2003-09-29;url=javascript:doDownload(20121)");
}
with(milonic=new menuname("BostonHerald194221"))
{
style=menuStyle;
aI("text=2003-09-29;url=javascript:doDownload(20061)");
}
with(milonic=new menuname("HarvardBusinessReview191023"))
{
style=menuStyle;
aI("text=2003-10-01;url=javascript:doDownload(20117)");
aI("text=2003-09-01;url=javascript:doDownload(18305)");
}
with(milonic=new menuname("InternationalHeraldTribune191269"))
{
style=menuStyle;
aI("text=2003-09-10;url=javascript:doDownload(18962)");
}
with(milonic=new menuname("InternationalHeraldTribune191270"))
{
style=menuStyle;
aI("text=2003-09-10;url=javascript:doDownload(18962)");
}
with(milonic=new menuname("TheNewYorkTimes191273"))
{
style=menuStyle;
aI("text=2003-09-30;url=javascript:doDownload(20119)");
aI("text=2003-09-29;url=javascript:doDownload(20077)");
aI("text=2003-09-28;url=javascript:doDownload(20074)");
aI("text=2003-09-27;url=javascript:doDownload(20073)");
aI("text=2003-09-26;url=javascript:doDownload(20008)");
aI("text=2003-09-25;url=javascript:doDownload(19977)");
aI("text=2003-09-24;url=javascript:doDownload(19935)");
aI("text=More;url=/index.cfm?fuseaction=pace2;status=more");
}
with(milonic=new menuname("TheNewYorkTimes191277"))
{
style=menuStyle;
aI("text=2003-09-30;url=javascript:doDownload(20119)");
aI("text=2003-09-29;url=javascript:doDownload(20077)");
aI("text=2003-09-28;url=javascript:doDownload(20074)");
aI("text=2003-09-27;url=javascript:doDownload(20073)");
aI("text=2003-09-26;url=javascript:doDownload(20008)");
aI("text=2003-09-25;url=javascript:doDownload(19977)");
aI("text=2003-09-24;url=javascript:doDownload(19935)");
aI("text=More;url=/index.cfm?fuseaction=pace2;status=more");
}
with(milonic=new menuname("TheNewYorkTimes191274"))
{
style=menuStyle;
aI("text=2003-09-30;url=javascript:doDownload(20119)");
aI("text=2003-09-29;url=javascript:doDownload(20077)");
aI("text=2003-09-28;url=javascript:doDownload(20074)");
aI("text=2003-09-27;url=javascript:doDownload(20073)");
aI("text=2003-09-26;url=javascript:doDownload(20008)");
aI("text=2003-09-25;url=javascript:doDownload(19977)");
aI("text=2003-09-24;url=javascript:doDownload(19935)");
aI("text=More;url=/index.cfm?fuseaction=pace2;status=more");
}
with(milonic=new menuname("TheNewYorkTimes191271"))
{
style=menuStyle;
aI("text=2003-09-30;url=javascript:doDownload(20119)");
aI("text=2003-09-29;url=javascript:doDownload(20077)");
aI("text=2003-09-28;url=javascript:doDownload(20074)");
aI("text=2003-09-27;url=javascript:doDownload(20073)");
aI("text=2003-09-26;url=javascript:doDownload(20008)");
aI("text=2003-09-25;url=javascript:doDownload(19977)");
aI("text=2003-09-24;url=javascript:doDownload(19935)");
aI("text=More;url=/index.cfm?fuseaction=pace2;status=more");
}
with(milonic=new menuname("TheNewYorkTimes191268"))
{
style=menuStyle;
aI("text=2003-09-30;url=javascript:doDownload(20119)");
aI("text=2003-09-29;url=javascript:doDownload(20077)");
aI("text=2003-09-28;url=javascript:doDownload(20074)");
aI("text=2003-09-27;url=javascript:doDownload(20073)");
aI("text=2003-09-26;url=javascript:doDownload(20008)");
aI("text=2003-09-25;url=javascript:doDownload(19977)");
aI("text=2003-09-24;url=javascript:doDownload(19935)");
aI("text=More;url=/index.cfm?fuseaction=pace2;status=more");
}
with(milonic=new menuname("TheScotsman193578"))
{
style=menuStyle;
aI("text=2003-09-26;url=javascript:doDownload(20112)");
aI("text=2003-09-24;url=javascript:doDownload(19930)");
}
with(milonic=new menuname("TheNewYorkTimesAdvanceSunday191276"))
{
style=menuStyle;
aI("text=2003-09-28;url=javascript:doDownload(20122)");
aI("text=2003-09-21;url=javascript:doDownload(19728)");
}
with(milonic=new menuname("TheNewYorkTimesMagazine191275"))
{
style=menuStyle;
aI("text=2003-09-28;url=javascript:doDownload(20078)");
aI("text=2003-09-21;url=javascript:doDownload(19686)");
}
with(milonic=new menuname("Alerts"))
{
style=menuStyle;
overflow="scroll";
aI("text=Alerts would be displayed here;");
}
with(milonic=new menuname("Prefs"))
{
style=menuStyle2;
aI("text=Edit Reader Settings;showmenu=settings;status=Reader Settings;separatorcolor=#2D729D");
aI("text=Account Information;url=/index.cfm?AccountSetting;");
aI("text=Account Settings;url=/index.cfm?AccountSetting;separatorcolor=#2D729D");
aI("image=S_checkmark.jpg;text=Show Icons and Text;url=javascript:changeTextDisp();separatorcolor=#2D729D");
aI("text=Help;url=http://support.newsstand.com;target=_blank;status=Help;");
aI("text=Disable Toolbar;url=javascript:disable();");
}
with(milonic=new menuname("settings"))
{
style=menuStyle;
aI("text=Profile...;url=javascript:alert('Show Profile Window'):status=Reader Settings;");
aI("text=Download...;url=javascript:alert('Pop Download Options Window');");
aI("text=Viewer...;url=javascript:alert('Pop Viewer Options Window');");
aI("text=Media...;url=javascript:alert('Pop Media Options Window');");
aI("text=General...;url=javascript:alert('Pop General Options Window');");
aI("text=Server...;url=javascript:alert('Pop Server Options Window');");
aI("text=EDM Server...;url=javascript:alert('Pop EDM Server Options Window');");
aI("text=Message Manager...;url=javascript:alert('Pop Message Manager Options Window');");
aI("text=Advanced...;url=javascript:alert('Pop Advanced Options Window');");
}
with(milonic=new menuname("Search"))
{
style=menuStyle;
aI("text=<FORM METHOD=GET ACTION=javascript:rdrSearch(this) name=search><table><tr><td><input name=q size=11></td></tr><tr><td><input type=submit value=Search></td></tr></table></form>;type=form;align=center");
}
drawMenus();
function rdrSearch(frm)
{
alert(frm.search.q.value);
}
function changeTextDisp()
{
var url = "/index.cfm?fuseaction=introduction";
if(url.indexOf("?") == -1)
window.location.href=url+"?showText="+!showText;
else if(url.indexOf("showText") == -1)
window.location.href=url+"&showText="+!showText;
else if(url.indexOf("showText=false") > -1)
window.location.href=url.replace("showText=false", "showText=true");
else
window.location.href=url.replace("showText=true", "showText=false");
}
function disable()
{
var url = "/index.cfm?fuseaction=introduction";
if(url.indexOf("?") == -1)
window.location.href=url+"?showTB="+!showTB;
else if(url.indexOf("showTB") == -1)
window.location.href=url+"&showTB="+!showTB;
else if(url.indexOf("showTB=false") > -1)
window.location.href=url.replace("showTB=false", "showTB=true");
else
window.location.href=url.replace("showTB=true", "showTB=false");
}
</script>