Help w/ basic HTML/CSS/PHP/Java?

SpellZ

Regular Member
Joined
Feb 8, 2009
Messages
358
Reaction score
319
I am not sure under what it falls but it seems pretty basic, but I just don't want to fuck it up...

So here is the code

<div class="banner-area">
<div id="banner"><img src="<?= ROOT_PATH ?>public/images/temp/banner.jpg" alt="" /></div>
<a href="#">advertise with us</a>
</div>
</div>
</div>
<? wp_footer(); ?>
</body>
</html>


I want to change BANNER.JPG to BANNER.SWF, so instead of an image, I want it to be a flash file. My question is... at the start, can it still be "img src=", or it needs to be something else?
 
You can't use the <img> tag to display a video file. What you need to do is replace this:

Code:
<img src="<?= ROOT_PATH ?>public/images/temp/banner.jpg" alt="" />

with this:

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0"
width="320" height="400" >
<param name="movie" value="[COLOR="Lime"]yourvideo.swf[/COLOR]">
<param name="quality" value="high">
<param name="play" value="true">
<param name="LOOP" value="false">
<embed src="[COLOR="Lime"]yourvideo.swf[/COLOR]" width="320" height="400" play="true" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash">
</embed>
</object>

You may need to adjust the properties of your "banner" div to accommodate the video. You can change the dimensions of the video by changing the width and height above. Note that there are two places in which you need to insert your video file name.
 
Back
Top