Need Help in some Codeing...

Discussion in 'Programming' started by DevilLnC, Mar 3, 2012.

  1. #1
    Hello Guys i need some help in coding i hope someone will help..

    Actually this is my Code for the JWplayer i'm using in my website

    
    <form method="POST" action="">
    <label for="author"><span style="color: #000000;"><b></b></label><input type="text" style="width:400px;" name="link" value="Enter Your Video URL here" onBlur="if(this.value=='') this.value='Enter Your Video URL here';" onFocus="if(this.value=='Enter Your Video URL here') this.value='';" />
    <input type="submit" style="width:150px;" value="Skip Limits" name="Submit" />
    </form>  
    
    <?php
    if (isset($_POST["link"]) and isset($_POST["Submit"])) {
    $url= strip_tags($_POST["link"]);
    echo '<object id="flashplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="493">
    <param name="movie" value="player.swf" />
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="FlashVars" value="plugins=plugins/proxy.swf&proxy.link=$url" />
    <embed name="flashplayer" src="player.swf"  FlashVars="plugins=plugins/proxy.swf&proxy.link=' . $url . '"   type="application/x-shockwave-flash" allowfullscreen="true"   allowScriptAccess="always" width="740" height="493" />
    </object>';
    }
    ?>
    
    Code (markup):
    and i want to add ads in both sides of this Video Player. here is a Sample i want to display the ads.

    Untitled-1.jpg

    please someone edit my player code so i can add the ad in the both sides of my player..
     
    DevilLnC, Mar 3, 2012 IP
  2. kids

    kids Active Member

    Messages:
    411
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    68
    #2
    You can use DIV tag to do that, try this

    Styles:
    #wrapper{
    width:...px;
    height:...px;
    }
    #ads_left{
    float:left;
    width: 120px;
    height: 240px;
    }
    #media {
    float:left;
    width: ...px;
    height: ...px;
    }
    #ads_right {
    float:right;
    width: 120px;
    height: 240px;
    }

    HTML:

    <div id='wrapper'>
    <div id='ads_left'>ADS_LEFT</div>
    <div id='media'>MEDIA HERE</div>
    <div id='ads_right'>ADS_RIGHT</div>
    </div>
     
    kids, Mar 5, 2012 IP
  3. Ultrabooked

    Ultrabooked Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That is maybe the simplest and most effective way solving the task. Give it a try.
     
    Ultrabooked, Mar 16, 2012 IP