Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Thursday February 8 2018 - 06:02:18

Conversion help needed. Embeding in table cell & Flash/M


Poster: ripnoel
Dated: Sunday December 7 2003 - 4:16:27 GMT

Hello all,

It's been a while. I just upgraded to 5.0 and ran my js through the converter. It seemed to work ok but none of my text in submenus are right justified as they should be. I might also add that I am placing my menu in a table cell which I did seem to get converted ok.

What has happened to the "righttoleft=1;" is it now gone. I could not find a reference to it anywhere?

Question #2 ... the main reason for my upgrade was a hope that the MAC/Flash submenu problem might have found a solution. I have a flash movie immediately to the left of my menu and all of my submenus are rolling out behind this flash movie only on MACs. Unfortunately, most of the designers that hire me are on Macs ;~( . I am not using div tags but have built this site to center itself in the monitor regardless of screen size.

It would probably be easiest to just take a quick glance at my sight.
207.170.215.9/index.asp
the 3.0 menu which is lining up the submenus correctly is at:
207.170.215.9/index2.asp

My Flash layering problem appears only on MACs so far all PCs seem to be seeing the menu ok.

I sure would appreciate any help. I am REALLY needing to get the doors open on this site ASAP as I am expecting a high level client to be looking early next week.

Thanks
Rip

PS
Here is my html table cell embeded code:

<td colspan="3" align="left" valign="top" bgcolor="#FFFFFF"><p>
<script>
with(milonic=new menuname("mainmenu")){
itemwidth=115;
style=style1;
alwaysvisible=1;
alignment="left";
aI("text=Videography / Film;showmenu=video;url=/video/index.asp;")
aI("text=Post-production;showmenu=postproduction;url=/post/index.asp;")
aI("text=Gallery /Stock;showmenu=gallery;url=/media/gallery.asp;")
aI("text=Photography;showmenu=photography;url=/photography/index.asp;")
aI("text=Retouching;showmenu=retouching;url=/retouching/index.asp;")
aI("text=Client List;showmenu=client_list;url=/clients/index.asp;")
aI("text=Our Crew;showmenu=our_crew;url=/crew/index.asp;")
aI("text=Search;showmenu=search;url=/search/index.asp;")
aI("text=$ $ $;showmenu=$$$;url=/accounting/index.asp;")
}
drawMenus();
</script>
<!-- Orig Melonic Table placement script call
<script language="JavaScript" type="text/JavaScript">
PlaceMenu("mainmenu")
</script>
//-->
&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

<---------------- CUT ----------------->
Here is my menu_data.js code:


if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
effect1="Fade(duration=0.2);Alpha(style=0,opacity=10);Shadow(color='#FFFFFF', Direction=135, Strength=0)"
effect2="Pixelate(squares=20, duration=0.5);Alpha(style=0,opacity=10);Shadow(color='#ffffff', Direction=280, Strength=0)"
}
else
{
effect1="Shadow(color='#FFFFFF', Direction=135, Strength=0)"
effect2="Shadow(color='#FFFFFF', Direction=280, Strength=0)"
}

_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=0;
_subOffsetLeft=-5;


with(style1=new mm_style()){
offcolor="black";
offbgcolor="#ffffff";
oncolor="red";
onbgcolor="#ffffff";
bordercolor="#ffffff";
borderstyle="solid";
bordercolor="black";
fontsize=10;
fontstyle="normal";
fontweight="normal";
fontfamily="Verdana, Arial";
high3dcolor="#ffffff";
low3dcolor="#ffffff";
pagecolor="white";
pagebgcolor="blue";
headercolor="#ffffff";
headerbgcolor="#ffffff";
}

with(style2=new mm_style()){
offcolor="black";
offbgcolor="#FFFFFF";
oncolor="red";
onbgcolor="#FFFFFF";
bordercolor="#FFFFFF";
borderstyle="solid";
bordercolor="black";
fontsize=10;
fontstyle="normal";
fontweight="normal";
fontfamily="Verdana, Arial";
subimage="/js/nsiMainMenu/arrow.gif";
high3dcolor="#666666";
low3dcolor="#000099";
pagecolor="white";
pagebgcolor="blue";
headercolor="#ffffff";
headerbgcolor="#cccccc";
}



with(milonic=new menuname("video")){
itemwidth=135;
borderwidth=1;
style=style2;
align="right";
position="absolute";
aI("text=View Samples&nbsp;---;url=/media/gallery.asp?categoryid=36;")
aI("text=Prod. Capabilities&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/video/video_capabilities.asp;")
aI("text=Talent & Producing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/video/talent_producing.asp;")
aI("text=Location Scouting&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/video/video_location_scouting.asp;")
aI("text=Script Writing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/video/script_writing.asp;")
aI("text=Job Quote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/video/video_job_quote.asp;")
}

with(milonic=new menuname("postproduction")){
position="absolute";
itemwidth=135;
borderwidth=1;
style=style2;
alignment="right";
righttoleft=1;
aI("text=View Samples&nbsp;---;url=/postprod/post_samples.asp;")
aI("text=Edit Capabilities&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/post/post_capabilities.asp;")
aI("text=Media Eencoding&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/post/media;_encoding.asp")
aI("text=DVD Authoring&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/post/dvd_authoring.asp;")
aI("text=Duplication&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/post/duplication.asp;")
aI("text=Job Quote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/post/post_job_quote.asp;")
}

with(milonic=new menuname("gallery")){
position="absolute";
itemwidth=135;
borderwidth=1;
style=style2;
alignment="right";
righttoleft=1;
aI("text=Main Categories All&nbsp;---;url=/media/gallery.asp;")
aI("text=Client Area (Private)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/clients/media/gallery.asp;")
aI("text=Film & Video Reels&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/media/gallery.asp?categoryid=36;")
aI("text=Still Portfolios&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/media/gallery.asp?categoryid=42;")
aI("text=Stock Sales&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/media/gallery.asp?categoryid=34;")
aI("text=Studio Services&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/media/gallery.asp?categoryid=15;")
}

with(milonic=new menuname("photography")){
position="absolute";
itemwidth=135;
borderwidth=1;
style=style2;
alignment="right";
righttoleft=1;
aI("text=View Samples&nbsp;---;url=/media/gallery.asp?categoryid=42;")
aI("text=Digital Capabilities&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/photography/still_digital_capabilities.asp;")
aI("text=Film Capabilities&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/photography/still_film_capabilities.asp;")
aI("text=Location Scout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/photography/still_location_scouting.asp;")
aI("text=Job Quote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/photography/still_job_quote.asp;")
}

with(milonic=new menuname("retouching")){
position="absolute";
itemwidth=135;
borderwidth=1;
style=style2;
alignment="right";
righttoleft=1;
aI("text=View Samples&nbsp;---;url=/media/gallery.asp?categoryid=18;")
aI("text=Image Optimize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/retoughing/image_optimizing.asp;")
aI("text=Upload File&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/retoughing/ret_upload.asp;")
aI("text=Job Quote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/retoughing/ret_job_quote.asp;")
}

with(milonic=new menuname("client_list")){
position="absolute";
itemwidth=135;
borderwidth=1;
style=style2;
alignment="right";
righttoleft=1;
aI("text=Testimonials&nbsp;---;url=/clients/testimonials.asp;")
aI("text=Leave Feedback&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/clients/feedback.asp;")
aI("text=Get Our Mailings&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/clients/promo.asp;")
}

with(milonic=new menuname("our_crew")){
position="absolute";
itemwidth=135;
borderwidth=1;
style=style2;
alignment="right";
righttoleft=1;
aI("text=Crew Bios&nbsp;---;url=/crew/bios.asp;")
aI("text=Join Us&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/crew/apply_to_join_us.asp;")
}

with(milonic=new menuname("search")){
position="absolute";
itemwidth=135;
borderwidth=1;
style=style2;
alignment="right";
righttoleft=1;
aI("text=Search&nbsp;---;url=/search/index.asp;")
aI("text=Site Map&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/search/site_map.asp;")
}

with(milonic=new menuname("$$$")){
position="absolute";
itemwidth=145;
borderwidth=1;
style=style2;
alignment="right";
righttoleft=1;
aI("text=Make Online Payment&nbsp;---;url=/accounting/online_payment.asp;")
aI("text=Request A Statement&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/accounting/statement_request.asp;")
aI("text=eMail Accounting&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=accounting __at__ ripnoel.com;")
aI("text=Submit Invoice&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/accounting/invoice_submission.asp;")
}



drawMenus();

Flash


Poster: henrik __at__ itide.dk
Dated: Monday December 8 2003 - 9:43:45 GMT

About flash take a look at

http://forum.milonic.com/viewtopic.php?t=2983

and

http://forum.milonic.com/viewtopic. ... ight=flash

Henrik


Poster: kevin3442
Dated: Monday December 15 2003 - 22:11:13 GMT

Hi Rip,

Question 1: Try using a menu property called openstyle (same type of property as top or left... defined per menu, not per item). Use

Code: Select all

openstyle="rtl";

This will also move things like your subimage over to the left side instead of the right, and (I think) change the default alignment for menu items to right aligned.

Question 2: Flash will continue to be a problem... it still doesn't play well with dhtml. You'll have to identify the problematic browser/OS combos and use code to hide the flash when it overlaps with a menu. Henrik has pointed to a message regarding a modification of the code I wrote to hide flahs (and other stuff) in version 3... if I recall, you ended up using that code, right? Anyway, you could try that, or you try the new div-hiding approach Andy has built for integration with the menu; there's a sample here.

Hope that helps,

Kevin

P.S. Your name triggers a memory of a cool-looking "tubes" site design... that was you wasn't it? Did you ever get it running?


Poster: tepidarium
Dated: Monday December 15 2003 - 22:17:27 GMT

kevin3442 wrote: Anyway, you could try that, or you try the new div-hiding approach Andy has built for integration with the menu; there's a sample here.


The new hid div feature sample doesn't appear to be working. THe menu file download does not include the js file the menu system references "divhider.js"