using flash as menu item

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
azaro
Beginner
Beginner
Posts: 7
Joined: Mon Nov 10, 2003 8:08 pm

using flash as menu item

Post by azaro »

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

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

Post by kevin3442 »

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

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
azaro
Beginner
Beginner
Posts: 7
Joined: Mon Nov 10, 2003 8:08 pm

Post by azaro »

I tried that solution, but it didn't work.

But thanks for the reply.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

OK, try it like this. Define your flash menu items in string variables, at the top of menu_data.js, like so.

Code: Select all

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

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
azaro
Beginner
Beginner
Posts: 7
Joined: Mon Nov 10, 2003 8:08 pm

Post by azaro »

Thanks Kevin, that solved it. I'm sure others will find this very useful as well!

:) :) :)
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
Post Reply