Y T Nuke  
Results 1 to 3 of 3
I am not sure under what it falls but it seems pretty basic, but I ...
  1. #1
    SpellZ's Avatar
    SpellZ is online now Regular Member
    Join Date
    Feb 2009
    Location
    Toronto, ON
    Posts
    307
    Reputation
    27
    Thanks
    129
    Thanked 236 Times in 98 Posts

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

    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?

  2. #2
    195471's Avatar
    195471 is offline Regular Member
    Join Date
    Oct 2008
    Posts
    410
    Reputation
    47
    Thanks
    202
    Thanked 247 Times in 158 Posts

    Default Re: Help w/ basic HTML/CSS/PHP/Java?

    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="yourvideo.swf">
    <param name="quality" value="high">
    <param name="play" value="true">
    <param name="LOOP" value="false">
    <embed src="yourvideo.swf" 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.

  3. The Following User Says Thank You to 195471 For This Useful Post:

    SpellZ (01-29-2010)

  4. #3
    SpellZ's Avatar
    SpellZ is online now Regular Member
    Join Date
    Feb 2009
    Location
    Toronto, ON
    Posts
    307
    Reputation
    27
    Thanks
    129
    Thanked 236 Times in 98 Posts

    Default Re: Help w/ basic HTML/CSS/PHP/Java?

    195471

    Works like a charm!

  5. The Following User Says Thank You to SpellZ For This Useful Post:

    195471 (01-29-2010)

Natural Slow Link Building


SEO Blasts - High quality link building service

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75