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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:56

Flash in menu (embedding that it)


Poster: Flash_harry
Dated: Tuesday November 18 2003 - 12:57:22 GMT

I have a side menu with version 3. It has images in there which is great, but can we have flash embedded in it?

How do I put it in to script. For an image I use

,"<img src='images/ow_logo.gif'>","show-menu=ow","index.php",,1

So what do I put here for Flash?

Any help would be great.

Kevin


Poster: kevin3442
Dated: Thursday November 27 2003 - 7:02:17 GMT

Hi Kevin,

Take the same approach you did for putting an image in. Generate the html code you would normally used to embed the flash file anywhere on a page and put it into the first field of the menu item definition, just like you did the html code for inserting an img. If you want to simplify the menu code, you could put the html code for the flash into a string variable, then use the string variable in the menu item definition. Like this:

String variable defined at the top of menu_array.js:
Code:
menuItem1 = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width=39 height=118> <param name='movie' value='myflash.swf'> <param name='quality' value='high'> <embed src='myflash.swf' width=39 height=118 quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>"


Menu item definition using menuItem1:
Code:
,menuItem1,"show-menu=submenuName",,,0

Hope that helps,

Kevin