Hi,

I am using SEOposition theme for my drupal website. I had modified the header.jpg picture which comes with this theme.
I made a flash swf file which i want to display exactly where the header.jpg was displayed.

So i edited the style.css for this theme (commented out the background picture):

#header {
<!--  background: #444 url(header.jpg) no-repeat; -->
  height: 180px; width: 936px;
  font-family: helvetica,verdana,arial,sans-serif;
  color: #fff;
  position: absolute;
  top: 0px; left: 22px;
}

and i edited the page.tpl.php as follows:

  <div id="header">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" /
      codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0" /
      id="header" width="936" height="149">
      <param name="movie" value="header.swf">
      <param name="bgcolor" value="#FFFFFF">
      <param name="quality" value="high">
      <param name="allowscriptaccess" value="samedomain"> 
      <embed type="application/x-shockwave-flash" /
       pluginspage="http://www.macromedia.com/go/getflashplayer" /
       width="936" height="149" /
       name="header" src="header.swf" /
       bgcolor="#FFFFFF" quality="high" /
       swLiveConnect="true" allowScriptAccess="samedomain" /
      ></embed>
    </object>
    </div>
<!-- <div id="header"> -->
<!--      <?php if ($site_name): ?><h1 class='site-name'><?php print $site_name ?></h1><?php endif; ?> -->
<!--      <?php if ($site_slogan): ?><h2 class="site-slogan"><?php print $site_slogan ?></h2><?php endif; ?> -->
<!--    </div> -->

All i get is a white rectangle of desired width and height (36X149) in the exact location, but i cant see the flash file.
When i right click on this space i get a menu with two options : "Movie not loaded..." (unclickable) and "About flash 9 player" (clickable).

When i view the page.tpl.php as a standalone php page, i can see the flash file.
Somebody please help me!!

Thanks
Sameer

ps: I tried using Flashnode and SWFTools, and that works, but the flash file is not displayed in the right location (in the place of header.jpg).

Comments

manishrustagi’s picture

i think you have store file in files folder, so you can give path of swf file in page.tpl.php file

sameersegal’s picture

Hi,

I have tried placing the swf file every where i can think of.
In the same folder as page.tpl.php and even in files folder

Sameer Segal

sameersegal’s picture

Hi,

Issue resolved!!
I had to place the swf file in the main drupal forlder. And direct embedding works!!

Thanks

Sameer Segal

Qudsiyya’s picture

Hi,

I am facing the same problem.

I am trying to display flv files using flvplayer.swf.
I have created a page and pasted the html code in which the swf object is called to play the video.
I have achieved this using javascripts. But the player is not displayed.

The code works absolutely fine when I place it in an ordinary html and run it.

Please help me here.