lingo5 Posted November 10, 2011 Share Posted November 10, 2011 Hi, I have a PHP page that includes this JS: <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','465','height','80','class','FlashBorder','src','img/skype_banner_eng','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','img/skype_banner_eng' ); //end AC code </script> skype_banner_eng is a flash movie in English. I need to get this movie to change to a different languagdepending on the language variable loaded. I have done this with jpg images by doing this: header_<?php echo ($_SESSION['session_idioma']);?>.jpg but whenI try to do the same within the JS it doesn't work....any ideas ? Thanks Quote Link to comment Share on other sites More sharing options...
cypher86 Posted November 10, 2011 Share Posted November 10, 2011 with js you can change the dom of the page. so i suggest you change all the variable header_......jpg and not only the part after the _ Quote Link to comment Share on other sites More sharing options...
lingo5 Posted November 10, 2011 Author Share Posted November 10, 2011 thanks!!...got it working now Quote Link to comment Share on other sites More sharing options...
cypher86 Posted November 10, 2011 Share Posted November 10, 2011 would you be so kind to share the solution? Quote Link to comment Share on other sites More sharing options...
lingo5 Posted November 10, 2011 Author Share Posted November 10, 2011 yes sure, I had a syntax error. Was missing the "echo" in <?php echo ($_SESSION['session_idioma']);?> sorry I'm still learning... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.