HI,
I am able insert flash file banner into content with the aid of FCKeditor (flash tab). Has anybody experiences with inserting flash banner into Header? It is possible through any flash module?

Thanks

Comments

sumitshekhawat7331’s picture

hi use this code for display .swf file in your header in your page.tpl.php

                                                                                                                                           <div id="head">

<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="786" height="147">
      <param name="movie" value="themes/your theme name/images/filename.swf" />
      <param name="quality" value="high" />

<embed src="themes/your theme name/images/filename.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="786" height="147"></embed>
    </object>
    </div>
Vanka’s picture

Thanks Mr.Sumitshekhawat7331, works perfectly!

Vanka’s picture

Thanks Mr.Sumitshekhawat7331, your recommended code for inserting flash banner into header works perfectly!

Hi, ones more please,
how can I insert different flash banner on Frontage and different flash banner on another pages?

Thanks

sumitshekhawat7331’s picture

hi use this code it will solve your problem

<div class="header">
<?php if(drupal_is_front_page())
   {
<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="786" height="147">
      <param name="movie" value="themes/your theme name/images/front page swf file name.swf" />
      <param name="quality" value="high" />

<embed src="themes/your theme name/images/front page swf file name.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="786" height="147"></embed>
    </object>
     }
 else
   {
<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="786" height="147">
      <param name="movie" value="themes/your theme name/images/inner page swf file name.swf" />
      <param name="quality" value="high" />

<embed src="themes/your theme name/images/inner page swf file name.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="786" height="147"></embed>
    </object>
   }
?>
</div>

Thanks & Regards
Piyush Sharma

Vanka’s picture

Thanks Mr.Sumitshekhawat7331 for your goodwill and professionalism which exceeds the finance crises. The code works perfectly! I am sending you the ocean of banner’s roses!
For the third time I have the last question, but probably the most difficult. The flash banner inbuilded in header overlap the submenu – dropdown menu (I am using nice menu module, gently modified theme garland).
Firstly I tried to solve the problem with the aid of z-index (nice menu, header region) – no success. Secondly with the aid of animation gif file, but the resolutions by gif animation is too poor (web216 palette colour) and size too large (800kb).
If you have the knowledge of this problem and are you able to leak it, I will not be bad till the end of my life.

Thanks

sumitshekhawat7331’s picture

try this code it will solve your problem

<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="786" height="147">
      <param name="wmode" value="opaque" value="themes/your theme name/images/filename.swf" />
      <param name="quality" value="high" />

<embed src="themes/your theme name/images/filename.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="786" height="147"></embed>
    </object>

code change in line 4 name="wmode" value="opaque"

and tell me whether your problem will solve or not

thanks & regards

cnario’s picture

Hi,

I was trying to add a flash header to my page.tpl.php file using your method. But I still get a nasty error report, saying " Parse error: syntax error, unexpected '<' in C:\wamp\www\client1\sites\all\themes\custom\arts\page.tpl.php on line 39 "

here is my code

if(drupal_is_front_page())
   {
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0"
        width="620" height="175"
      >
        <param name="movie" value="themes/custom/arts/images/header.swf">
        <param name="quality" value="high">
        <embed
          type="application/x-shockwave-flash"
          pluginspage="http://www.macromedia.com/go/getflashplayer"
          width="620" height="175"
          src="themes/custom/arts/images/header.swf"
          quality="high"
        >
        </embed>
      </object>
    }
else
   {
      <img src="themes/custom/arts/images/floater.jpg" />
    }

Please, how can I sort this out.

chillz’s picture

Thanks for highlighting the "drupal_is_front_page()" function Piyush.

tachapeyre’s picture

Hi sumitshekhawat7331,

I tried to apply the same principle though applying the code you provided to a top banner rather then a header. A box was inserted in the right area though it remains white instead of displaying the actual swf banner. Do you have any idea how i could amend this? Here is the code I inserted:

                	<div class="bg-top">

<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="620" height="201">
      <param name="movie" value="images/bg-top.swf" />
      <param name="quality" value="high" />

<embed src="images/bg-top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="620" height="201"></embed>
    </object>
                   
                    </div>

sumitshekhawat7331’s picture

hi just use this code

<div class="bg-top">

<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="620" height="201">
      <param name="movie" value="themes/yourthemename/images/bg-top.swf" />
      <param name="quality" value="high" />

<embed src="images/bg-top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="620" height="201"></embed>
    </object>
                  
                    </div>

you have to correct this line

<param name="movie" value="themes/yourthemename/images/bg-top.swf" />

thanks & regards

tachapeyre’s picture

Thanks sumitshekhawat7331. It now works perfectly, you're a star!!!

sumitshekhawat7331’s picture

hi tacha..thanks for the complement but i am not a star...i am just a drupal learner if you need any help further then you can mail me at piyushsharma7331 at yahoo dot com

thanks & regards

edib’s picture

hi dude, Your instructions are great. but it somehow did not solve my problem. I mean, code is working in ie - maxthon but not in chrome or firefox. I think that my code is actionscript 2.0 and xml. and it populate data from xml and gets images from a folder according to xml. I have different flashes in my web site all works only this hell does not work. If you have any idea please tell me. Thanks

sumitshekhawat7331’s picture

hi dear
could you send me your email id so that we can talk through email.
whatever you said , i want to tell you that, in my site
http://xbox360preview.co.uk
flash banner displaying images using XML.
In this site i have done this thing
php file generate an XML file which will called by flash banner and display output
do you want do the same thing ?.

torn35’s picture

Hi sumitshekhawat7331, I have been reading your advice and try to do the code as well. I seem to get a black box of where it is supposed to be. My flash functions with an xml file as well. The flash movie uses an xml to find the images of what needs to be added to the flash and then flash plays through those images. I am able to go directly to the flash movie i have uploaded to the site but i cannot integrate it into the banner that I would like. If you could please help me on this, I would greatly appreicate it. Thank you

sumitshekhawat7331’s picture

visit this site

http://www.xbox360preview.co.uk/

i have used these codes....

flash file ...

if (_root.XMLfile == undefined || _root.XMLfile == "")

{

    _root.XMLfile = "http://www.xbox360preview.co.uk/myphpfilename.php";

}

now code for myphpfilename.php which is called by flash file
which will generate an XML file output

<?php
header('Content-Type: text/xml');
$strHostName = 
$strDirectory = "slides";
echo('<?xml version="1.0" encoding="UTF-8"?>');
echo("\r\n");
echo('<images>');
echo("\r\n");
if ($handle = opendir($strDirectory)) {
      // List all the files
      while (false !== ($file = readdir($handle))){
        if($file == "." || $file == ".."){
            continue;
        }
	echo '<image><url>slides/'.$file.'</url></image>'."\r\n";      
		}
        closedir($handle);  
}
echo('</images>');
?>

and create a folder named slides and upload all your images it it, otherwise send me your site url and your flash(.fla) file i will configure it.

Thanks & Regards
piyush

arunkumarmanjeri’s picture

I am greatly expecting from piyush sharma and other good peoples of drupal

as you have commented , i have inserted one .swf picture , in my header , it is perfectly working ,

but when other system access my site,, if they are not installed macromedia flash , it is not working , or they have to install flash plug in,

This problem i want to solve ,

So what is the solution

I changed to animated GIF , the resolution is very poor, Please help

arun , thanks with love , Tomorrow i want to lauch my web sit e,, please help as early as possible

WorldFallz’s picture

This has nothing to do with drupal-- if you want users to see flash they need to install the plugin. There's nothing to fix that's the way it works. You might look into html5 animation capabilities, but then you'll run into the problem of users without html5 compliant browsers.

marcin-mark’s picture

thank you for your code. I have used it and it works great in firefox but I am having issues with IE... any way you can help?

www.atmautos.com

This is what my code looks like in the page.tpl.php

<div id="main">
				<?php if ($section1count > 0): ?>
					<?php if ($breadcrumb): ?><div id="breadcrumb2"><?php print $breadcrumb; ?></div><?php endif; ?>
				<?php endif; ?>
				<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="750" height="175">
      <param name="movie" value="sites/all/themes/salamanderskins/images/atm.swf" />
      <param name="quality" value="high" />

<embed src="sites/all/themes/salamanderskins/images/atm.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="175"></embed>
    </object>
				<?php if ($content_top):?><div id="content-top"><?php print $content_top; ?></div><?php endif; ?>
				<h1 class="title"><?php print $title ?></h1>
				<div class="tabs"><?php print $tabs ?></div>
				<?php print $help ?>
				<?php if ($show_messages) { print $messages; } ?>
				<?php print $content; ?>
				<?php print $feed_icons; ?>
				<?php if ($content_bottom): ?><div id="content-bottom"><?php print $content_bottom; ?></div><?php endif; ?>
			</div>
nodnyl1966’s picture

hi! thanks for the code. It works perfectly but I need to ask how do I make the swf stay at the center? I tried to align it in the middle but it's not working. Can you please give me a sample code for it? And if its not too much to ask, can you give me a sample code on putting a wallpaper on the background of the header? Thanks for everything!

doktorrr’s picture

I put this code on my site but it only work on frontpage.

<center>
        <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="468" height="60">
      <param name="movie" value="themes/sky/images/balkanium468x60.swf" />
      <param name="quality" value="high" />

<embed src="themes/sky/images/balkanium468x60.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60"></embed>
    </object></center>

On other pages I see only blank background.

hrpo’s picture

Did you fix it?

Midroc’s picture

Did you fix it?

rose_northeast’s picture

I have the same problem. Does any one know how to fix it?

mcfilms’s picture

If you are putting the code above into a block, you must make sure the block is able to display "Full HTML." If it works on the front page and not the others, "view source" of each page and report back how they are different.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

rose_northeast’s picture

The code is the same, the homepage only has one more line:

<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.myurl.pt/blogapi/rsd" />

But I don't think is something related to that.
thks for your time

weta1’s picture

I am using very similar code but my text editor suggests there is something missing and I am getting parse error also:

 if(drupal_is_front_page())
   {

		<object type="application/x-shockwave-flash"
		data="http://www.website.co.nz/sites/all/themes/mytheme/imageFade.swf"
		width="960" height="200">
		<param name="movie" value="http://www.website.co.nz/sites/all/themes/mytheme/imageFade.swf" />
		</object>

     }
else
   {
<img src="http://www.website.co.nz/sites/all/themes/mytheme/images/img3.jpg" />
   }
condensedwhite’s picture

Hello people,
i have been trying to figure out(for almost a week,no success yet) how to stick my flash slideshow in the header of marinelli instead of the rotating images.I put my swf(banner.swf) with its banner.xml file and the folder containing the images at sites/all/themes/marinelli/img/banner.How do i get it to show?I understand that i need to put some code in somewhere between

<div id="header">
<?php if ($logo): ?>
<!-- logo_image -->
<div id="logo">
            <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>"> <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" /> </a>
</div>
<!-- /logo_image  -->

<?php endif; ?>
  
<?php if ($site_name) : ?>

I tried before and the swf did not show and it pushed the logo and sitename away.I read somewhere that z-index does not help reposition.If there is someone who has moment to assist, i am most grateful....
(I have no php skills ,still trying to learn.)

sezer’s picture

i tried those above and cannot resolve.. :/
actually i may have done something wrong because i am not really used to php..
i.e where to put the code, with which tags etc.. would someone please tell me where to put those codes firstly? :))

when i put that code, firstly header image did not disappear, and everything above the links etc, slided with gaps.
maybe the same problem with "http://drupal.org/node/138281" (also tried that solution). it always shows up, above where normal header image stands. and slides the rest downside. (at least i get the flash banner.. hopefully)

is this like template spesific?

my page.tpl.php file is like

  <head>
    <title><?php print $head_title; ?></title>
    <?php print $head; ?>
    <?php print $styles; ?>
    <!--[if IE 7]>
      <link rel="stylesheet" href="<?php print $base_path . $directory; ?>/ie7-fixes.css" type="text/css">
    <![endif]-->
    <!--[if lte IE 6]>
      <link rel="stylesheet" href="<?php print $base_path . $directory; ?>/ie6-fixes.css" type="text/css">
    <![endif]-->
    <?php print $scripts; ?>
  </head>

  <body class="<?php print $body_classes; ?>">
    <div id="page" class="clearfix">

      <div id="header">
        <div id="header-wrapper" class="clearfix">
          
          <?php if ($search_box): ?>
          <div id="search-box">
            <?php print $search_box; ?>
          </div><!-- /search-box -->
          <?php endif; ?>
      
          <div id="header-first">
            <?php if ($logo): ?> 
            <div id="logo">
              <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a>
            </div>
            <?php endif; ?>
            <?php if ($site_name): ?>
            <h1><a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></h1>
            <?php endif; ?>
            <?php if ($site_slogan): ?>
            <span id="slogan"><?php print $site_slogan; ?></span>
            <?php endif; ?>
          </div><!-- /header-first -->
  
          <div id="header-middle">
            <?php if ($header_middle): ?>
            <?php print $header_middle; ?>
            <?php endif; ?>
          </div><!-- /header-middle -->
      
          <div id="header-last">
            <?php if ($header_last): ?>
            <?php print $header_last; ?>
            <?php endif; ?>
          </div><!-- /header-last -->
      
        </div><!-- /header-wrapper -->
    
        <div id="header-bottom" class="clearfix">
        <?php if ($primary_links): ?>
        <div id="primary-menu">
          <?php print $primary_links_tree; ?>
        </div><!-- /primary_menu -->
        <?php endif; ?>
        </div><!-- /header-bottom -->
      </div><!-- /header -->
savicevic’s picture

I did it like this, because it doesnt stand where it suposed to be and I make some positioning in div tag with which you can manipulate where to stand in header,just change the number of pixels,

in page.tpl.php you make div tag and insert code of flash. Also you must spceifi where to be layer in div tag, also i was searching and managed it myself. The code is

<div style="overflow: hidden; position: absolute; left: 386px; top: 21px;"><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="504" height="101">
      <param name="movie" value="sites/default/files/flash/probazavostok1.swf" />
      <param name="quality" value="high" />

<embed src="sites/default/files/flash/probazavostok1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="504" height="101"></embed>
    </object>
    </div>

I am bigennier in drupal but it works
Just navigate to your flash
cheers

jomacho’s picture

Hi, just registered to know if someone could help me.
I would like to know what is the correct way of placing a swf header on multiple pages in a way that it doesn't reload the swf, without using frames.
Placing the swf individually on each page header, i get a flickering upon loading another page on the menu.
I don't have any kind of java/actionscript skills.
Been using an image background defined on CSS header div, works great, but i can't use flash as background for css, is there a workaround for this?

WorldFallz’s picture

afaik, your choice is either iframe or ajax.

jomacho’s picture

Could you help me out on how is AJAX used?

EDIT:

Works like a charm, don't know how it looks like for non flash installed browser, but i'm satisfied. Thanks for the help.

WorldFallz’s picture

I dont know much ajax, or I would have included it.

What 'works like charm' -- what did you end up doing?

Magic Toolbox’s picture

If you are trying to replace HTML text with an SWF so that you can use any font you wish, then this tutorial shows you how:

http://www.graphics.com/modules.php?name=Sections&op=viewarticle&artid=537

It takes HTML e.g.

<h1>Your heading</h1>

and automatically turns it into an SWF.

This approach maintains web standards.

Jermaine’s picture

Hi, Everyone:

I've been trying to get this Anim-FX software that I purchased to work--and it's been well over a month now. I can't get the flash banner up and running, no matter how many attempts. My WEB.COM website is www.germanejermaine.com.

I have added the .swf, .html, and .txt files to my root directory, but it's not working. Yet, the .html file I created works when I click on it to view in internet explorer. Here is the code I'm using, saved in Notepad:

<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,2,0
width=600
height=300>
<param name=movie value=forward.swf>
<param name=quality value=high>
<param name=BGCOLOR value=#000000>
<param name=SCALE value=noborder>
<embed src=forward.swf
quality=high
pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash
width=600
height=300
bgcolor=#000000
scale= noborder>
</embed>
</object>

Any advice would be gratefully appreciated. I'm running ads with Myspace and Facebook, and this is quite embarrassing.

Thanks In Advance

Edited by WorldFallz - added <code> tags.

WorldFallz’s picture

When I view the source of your page, I don't see 'forward.swf' mentioned anywhere. There's only "http://www.germanejermaine.com/files/38714613.swf" mentioned at all and it's looking in /files not the drupal root (and not the standard d6 files directory either).

Jermaine’s picture

Hi, WorldFallz:

Is there a remedy you can recommend? I can't tell you how relieved I am that you even reached out.

Your CT Author Friend...

WorldFallz’s picture

There's really not enough info to say-- the code you posted looks like it should work, but that's not the code I see in the source of the page.

uday.singh’s picture

hello guys!!
I m facing a problem & hoping that u guys would solve this, i m working on conversion of a site in drupal. In page.tpl.php i have called javascript function, this function is written in a separate javascript file named includescrpt.js , The code in includescrpt.js looks like:

function flash()
{
window.document.write("<!--url's used in the movie--><!--text used in the movie--><!-- saved from url=(0013)about:internet --><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='684' height='237' id='banner' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='themes/framework/flash/banner.swf' /><param name='quality' value='high' /><param name='wmode' value='opaque' /><param name='bgcolor' value='#666666' /><embed src='themes/framework/flash/banner.swf' quality='high' wmode='opaque' bgcolor='#666666' width='684' height='237' name='banner' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>")
}

the problem is, it is running perfectly!! on front page , but showing blank on other pages, means no flash is displayed on other pages except the front page, why so?? is there anything else is needed or i m doing something wrong. i m still new to drupal , so Please help me guys!!
Thanks..

rodmumbai’s picture

I have used this code but slideshow is not visible at the header. M using marinelli(giordani) theme

<div id="header"
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://active.macromedia.com/flash8/cabs/swflash.cab#version=8,0,0,0"
  id="name" width="360" height="270">
  <param name="movie" value="c:/wamp/www/bhel/themes/marinelli/img/banners/123-slideshow_com_142933.swf">
  <param name="quality" value="high">
  <param name="wmode" value="transparent">
  <embed name="name" src="c:/wamp/www/bhel/themes/marinelli/img/banners/123-slideshow_com_142933.swf"
 quality="high" wmode="transparent" width="360" height="270"
  type="application/x-shockwave-flash" 
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash">
  </embed>
</object>
hhodges’s picture

I am very new to this but I believe use set your dir to deep. Try removing c:/wamp/www/bhel/

<div id="header"
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://active.macromedia.com/flash8/cabs/swflash.cab#version=8,0,0,0"
  id="name" width="360" height="270">
  <param name="movie" value="themes/marinelli/img/banners/123-slideshow_com_142933.swf">
  <param name="quality" value="high">
  <param name="wmode" value="transparent">
  <embed name="name" src="themes/marinelli/img/banners/123-slideshow_com_142933.swf"
quality="high" wmode="transparent" width="360" height="270"
  type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash">
  </embed>
</object>
piyush_sharma’s picture

Remove this c:/wamp/www/bhel/themes/marinelli/img/banners/123-slideshow_com_142933.swf
and place code like this
http://localhost/bhel/themes/marinelli/img/banners/123-slideshow_com_142...
it will work.

<div id="header"
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://active.macromedia.com/flash8/cabs/swflash.cab#version=8,0,0,0"
  id="name" width="360" height="270">
  <param name="movie" value="http://localhost/bhel/themes/marinelli/img/banners/123-slideshow_com_142933.swf">
  <param name="quality" value="high">
  <param name="wmode" value="transparent">
  <embed name="name" src="http://localhost/bhel/themes/marinelli/img/banners/123-slideshow_com_142933.swf"
quality="high" wmode="transparent" width="360" height="270"
  type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash">
  </embed>
</object>
pankajyadav’s picture

Hii

I have added the code[] to the page.tpl.php but show nothing change in it ..

So you please tell me what i will do now ????

piyush_sharma’s picture

Hello Pankaj

Please show me your code ? or website url ?

Regards
Piyush Sharma

bladecris’s picture

I joined the "swf not showing club". I wrote it in page.tpl and it doesnt work, it shows me only the get adobe flash player button in mozzilla and it's a blank banner in chrome.
Here's the code:

<div id="flashContent">
			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="950" height="150" id="bannernow" align="middle">
				<param name="movie" value="bannernow.swf" />
				<param name="quality" value="high" />
				<param name="bgcolor" value="#ffffff" />
				<param name="play" value="true" />
				<param name="loop" value="true" />
				<param name="wmode" value="window" />
				<param name="scale" value="showall" />
				<param name="menu" value="true" />
				<param name="devicefont" value="false" />
				<param name="salign" value="" />
				<param name="allowScriptAccess" value="sameDomain" />
				<!--[if !IE]>-->
				<object type="application/x-shockwave-flash" data="bannernow.swf" width="950" height="150">
					<param name="movie" value="bannernow.swf" />
					<param name="quality" value="high" />
					<param name="bgcolor" value="#ffffff" />
					<param name="play" value="true" />
					<param name="loop" value="true" />
					<param name="wmode" value="window" />
					<param name="scale" value="showall" />
					<param name="menu" value="true" />
					<param name="devicefont" value="false" />
					<param name="salign" value="" />
					<param name="allowScriptAccess" value="sameDomain" />
				<!--<![endif]-->
					<a href="http://www.adobe.com/go/getflash">
						<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
					</a>
				<!--[if !IE]>-->
				</object>
				<!--<![endif]-->
			</object>
		</div>

Please help me out, thanks.

bladecris’s picture

I just used this code:

http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0">
 <param name="movie" value="http://localhost/drupal_old/sites/default/files/bannernow.swf">
 <param name="quality" value="high">
 <param name="wmode" value="transparent">
 <embed width="950" height="150" wmode="transparent" src="http://localhost/drupal_old/sites/default/files/bannernow.swf">
</object>