Flash in css div not loaded?

hey all,
i never used flash in css. so i went through some tutorials on web about inserting flash in css but i am having a problem. the page doesn’t load flash movie. my flash movie is in file in flash.html which i m trying to include using php include in the div which i created. why isn’t it loading. pls help. here is my code

<div class="flashmov">
<?php include ("flash/flash.html")?>
</div>
.flashmov{width:800px; height:200px; background-color:#333;}
<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=800
height=200>
<param name=movie value=smooth.swf>
<param name=quality value=high>
<param name=BGCOLOR value=#FFFFFF>
<param name=SCALE value=noborder>
<embed src=smooth.swf
quality=high
pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash
width=800
height=200
bgcolor=#FFFFFF
scale= noborder>
</embed>
</object>

when i see the file flash.html by loading it in browser, it works fine

The first thing to check is the path to the include file:

<?php include (“flash/flash.html”)?>

This will look for a folder called /flash/ at the same level as the page, which is probably not where the flash folder is located.

Where is the flash folder located in relation to the page?

flash.html is in flash folder and all pages like index are on root

OK, so that path is right.

In the object code, you have things like this:

src=smooth.swf

Once that code has been placed on aonther page, that path is no longer correct. It would need to be

src=flash/smooth.swf

So you’ll have to change those paths too.

Why are you doing this as an include? If you want to place the same code on various pages, you will have to use a different path system.

I would do this:

src=/flash/smooth.swf

doing include coz its repeating in every page so make the code tidy i have made an include

In that case, I would change your code to this:

<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=800
height=200>
<param name=movie [COLOR="Red"]value="/flash/smooth.swf"[/COLOR]>
<param name=quality value=high>
<param name=BGCOLOR value=#FFFFFF>
<param name=SCALE value=noborder>
<embed [COLOR="Red"]src="/flash/smooth.swf"[/COLOR]
quality=high
pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash
width=800
height=200
bgcolor=#FFFFFF
scale= noborder>
</embed>
</object>

Then, whenever you want to include that code on a page, use this:

<div class="flashmov">
<?php include $_SERVER["DOCUMENT_ROOT"] . "/flash/flash.html"; ?>
</div>