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:56
using flash as menu item
Poster: azaro
Dated: Wednesday November 19 2003 - 2:14:10 GMT
I want to use this flash banner as a main menu item, but is it possible?
Here is the HTML code as as provided by the Ninjai.com site:
Code:
<embed src="http://ww1.ninjai.com/banners/banner1_120x90.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="90"></embed>
Poster: kevin3442
Dated: Friday November 21 2003 - 5:19:46 GMT
You could try putting the html code in the text menu item property, surrounding it in back quotes, and replacing the double quotes with single quotes, like so:
Code:
aI("text=`<embed src='http://ww1.ninjai.com/banners/banner1_120x90.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='120' height='90'></embed>`;url=...");
Don't know if that'd work... haven't tried it... but it might be worth a shot.
Kevin
Poster: azaro
Dated: Friday November 21 2003 - 14:36:11 GMT
I tried that solution, but it didn't work.
But thanks for the reply.
Poster: kevin3442
Dated: Monday November 24 2003 - 22:29:25 GMT
OK, try it like this. Define your flash menu items in string variables, at the top of menu_data.js, like so.
Code:
menuItem01="<embed src='http://ww1.ninjai.com/banners/banner1_120x90.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='120' height='90'></embed>";
Then, in your aI() menu item definitions, do this:
Code:
aI("text="+menuItem01+";showmenu=subMenuName;");
I tried a quick test with my own .swf test file and it worked fine, even with a mouseover effect in the flash.
Kevin
Poster: azaro
Dated: Tuesday November 25 2003 - 1:39:33 GMT
Thanks Kevin, that solved it. I'm sure others will find this very useful as well!
Poster: kevin3442
Dated: Tuesday November 25 2003 - 23:47:09 GMT
Glad it worked. Do us a favor, if you don't mind, and post a url to the site when you're done. I helped a guy quite some time ago who was incorporating flash into menu items using version 3, and the result was a very cool looking design. I'd like to see how you've incorporated flash when your done... again, if you don't mind. I bet it'll be pretty cool.
Kevin