Flash in menu (embedding that it)

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
Flash_harry
Advanced
Advanced
Posts: 11
Joined: Wed Apr 23, 2003 4:30 pm

Flash in menu (embedding that it)

Post by Flash_harry »

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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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: Select all

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: Select all

,menuItem1,"show-menu=submenuName",,,0
Hope that helps,

Kevin
Post Reply