Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Drupal > Flash Drupal


Автор: bokova 13.6.2011, 11:08
Необходимо вставить флеш ролик с помощью явы (так как в него передаются параметры). Уже второй час бьюс с этим - не могу вставить в друпал. Отдельной страницей все работает. Помогите кто может smile
Код страницы вот такой:
Цитата

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>amline</title>
</head>
<body>
<!-- saved from url=(0013)about:internet -->
<!-- amline script-->
  <script type="text/javascript" src="amline/swfobject.js"></script>
    <div id="flashcontent">
  <strong>You need to upgrade your Flash Player</strong>
    </div>
 
    <script type="text/javascript">
  // <![CDATA[
  var so = new SWFObject("amline/amline.swf", "amline", "520", "400", "8", "#FFFFFF");
  so.addVariable("path", "amline/");
  so.addVariable("settings_file", escape("amline_settings.xml"));  // you can set two or more different settings files here (separated by commas)
  so.addVariable("data_file", ("amline_data.txt"));
//    so.addVariable("chart_data", "");                                       // you can pass chart data as a string directly from this file
//    so.addVariable("chart_settings", "");                                   // you can pass chart settings as a string directly from this file
//    so.addVariable("additional_chart_settings", "");                        // you append some chart settings to the loaded ones
//  so.addVariable("loading_settings", "LOADING SETTINGS");                 // you can set custom "loading settings" text here
//  so.addVariable("loading_data", "LOADING DATA");                         // you can set custom "loading data" text here
  so.addVariable("preloader_color", "#999999");
  so.write("flashcontent");
  // ]]>
    </script>
<!-- end of amline script -->
</body>
</html>

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)