1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'BlackHat Lounge' started by SpellZ, Jan 29, 2010.

  1. SpellZ

    SpellZ Regular Member

    Joined:
    Feb 8, 2009
    Messages:
    357
    Likes Received:
    312
    Location:
    Toronto, ON
    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


    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?
     
  2. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    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.
     
    • Thanks Thanks x 1
  3. SpellZ

    SpellZ Regular Member

    Joined:
    Feb 8, 2009
    Messages:
    357
    Likes Received:
    312
    Location:
    Toronto, ON
    195471

    Works like a charm!
     
    • Thanks Thanks x 1