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
Flash in menu (embedding that it)
-
- Advanced
- Posts: 11
- Joined: Wed Apr 23, 2003 4:30 pm
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:
Menu item definition using menuItem1:
Hope that helps,
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>"
Code: Select all
,menuItem1,"show-menu=submenuName",,,0
Kevin