开发者

embedding flash using swfobject in drupal 6.x dimensions issue

开发者 https://www.devze.com 2023-02-19 17:45 出处:网络
I embedded flash to my site using this: print swf(\'myflash.swf\'); into my page.tpl file however it is not recognizing the orig dimensions when using this:

I embedded flash to my site using this:

print swf('myflash.swf');

into my page.tpl file however it is not recognizing the orig dimensions when using this:

print swf('myflash.开发者_开发问答swf',array('height'=>400,'width'=>700));

But the flash is showing up, only the dimensions had the problems. I have been searching and searching around in Google and drupal forums to no avail for a few days now..

If anyone out there had the same issue please help I am so stuck!


The swf function from the SWF Tools module is expecting something more like this:

print swf ('myflash.swf', array('params'=>array('height'=>400,'width'=>700)));

If params doesn't work, here are the other keyed values it is looking for:

  // Initialise any $options array elements that weren't passed by the caller
  $options += array(
    'params' => array(),
    'flashvars' => array(),
    'othervars' => array(),
    'methods' => array(),
  );
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号