Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Flash menu - multilanguages

Flash menu - multilanguages

Locked

Started by jeet_kune_do on 19 Jun 2009, 11:43 AM · Views: 1,140

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 Jun 2009, 11:43 AM
#1
jeet_kune_do avatar

jeet_kune_do

Zen Follower

Join Date:
Nov 2008
Location:
Slovenija
Posts:
119
Plugin Contributions:
0

Flash menu - multilanguages

I have created a flash menu (.sfw).
I need that, the menu change when you choose different languages.

So when you choose the english language, it bring's the english_menu.sfw , and so on...

What code, I need to insert to do that?

I would like to thank's in advance!

Best regards.

I love internet and the power of information... Best Wishes!!

21 Jun 2009, 10:18 PM
#2
jeet_kune_do avatar

jeet_kune_do

Zen Follower

Join Date:
Nov 2008
Location:
Slovenija
Posts:
119
Plugin Contributions:
0

Re: Flash menu - multilanguages

The code for my menu is:

<div id="flash_menu" style="position: absolute; top: 180px; centre: 0px; z-index:1;"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="488" height="95" > <param name="movie" value="main_menu.swf" /> <param name="quality" value="high" /> <param name="allowScriptAccess" value="always" /> <param name="wmode" value="transparent" /> <embed src="/includes/templates/1228/buttons/english/main_menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="505" height="95" allowScriptAccess="always" wmode="transparent"> </embed></object> </div>

I try to do as I have for my slogan image to change with different language:

<div id="slogan"> <?php echo zen_image($template->get_template_dir('/slogan.gif',DIR_WS_TEMPLATE,$current_page_base,'buttons/' . $_SESSION['language']).'/slogan.gif','Slogan'); ?> </div><br style="clear:both" />

I love internet and the power of information... Best Wishes!!

21 Jun 2009, 10:23 PM
#3
jeet_kune_do avatar

jeet_kune_do

Zen Follower

Join Date:
Nov 2008
Location:
Slovenija
Posts:
119
Plugin Contributions:
0

Re: Flash menu - multilanguages

So when you change languages it pics the different .swf file (as I had set for the slogan image)

Could someone please help me to summe the two code?

Best wishes!

I love internet and the power of information... Best Wishes!!

24 Jun 2009, 8:37 PM
#4
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Flash menu - multilanguages

<param name="movie" value="/includes/templates/1228/buttons/<?php echo $_SESSION['language']; ?>/main_menu.swf"" />
<embed src="/includes/templates/1228/buttons/<?php echo $_SESSION['language']; ?>/main_menu.swf" quality="high"

then put each language's main_menu.swf in the .../buttons/language/ folder so english menu would be .../buttons/english/main_menu.swf and italian would be ../buttons/italian/main_menu.swf etc

Neville
An assumption is what you arrive at when you get tired of thinking...

25 Jun 2009, 9:58 PM
#5
jeet_kune_do avatar

jeet_kune_do

Zen Follower

Join Date:
Nov 2008
Location:
Slovenija
Posts:
119
Plugin Contributions:
0

Re: Flash menu - multilanguages

bunyip

Thank you for helping me! :clap::clap::clap:

I love internet and the power of information... Best Wishes!!