Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member duck444's Avatar
    Join Date
    Feb 2003
    Location
    east coast
    Posts
    402
    Member #
    751
    Liked
    2 times
    I have this script that displays a video player on a watch page. Everything in the code says to center the video player but the video player always displays to the left...Does anyone know what I can do to make the player appear in the center of the page? The code for the page is below:

    Code:
    <?php
    error_reporting(0);
    $link = urldecode(trim($_GET['link']));
    $title = urldecode(trim($_GET['title']));
     
    if($link&&$title) {
    	include "views.php";
    	updatecount();
    ?>
    <html>
    
    
    
    <head>
    
    <meta http-equiv="Content-Language" content="en-us" />
    
    <meta name="robots" content="INDEX, FOLLOW" />
    
    <title>Multiple source video search<? if($searchterms) echo " - $searchterms2"; ?></title>
    
    <style type="text/css">
    
    <!--
    
    .style6 {
    
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    
    	font-weight: bold;
    
    	color: #000000;
    
    }
    
    .style8 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; }
    
    body,td { font-family: verdana; font-size: 8pt; }
    
    body { background: #FFFFFF; }
    
    td { font-family: verdana; font-size: 8pt; vertical-align: middle; }
    
    table { border-collapse: collapse; }
    
    a,a:hover,a:visited,a:active { font-family: verdana; font-size: 7pt; text-transform: uppercase; color: #000000; font-weight: bold; text-decoration: none; }
    
    a:hover { color: #008800; }
    
    -->
    
    </style>
    
    </head>
    
    
    
    <body>
    
    
    
    <form action="search.php" method="post">
    
    <p align="center">
    
    
    
    <img src="header.jpg" border=0><br>
    
    <table width="450" border=0>
    
    <tr><td width="346"><input type="text" name="search" style="font-family: verdana; font-size: 8pt; background: #FFFFFF; border: 1px solid #D5DCE4; width: 200px; height: 19px; padding-left: 5px;" value="<?=urldecode($searchterms)?>">
    
    	<select name="sort" style="font-family: verdana; font-size: 8pt; background: #FFFFFF; border: 1px solid #D5DCE4; width: 140px; height: 20px; padding-left: 5px;">
    
    		<option 
    
    		<?php if($sort == "mostRelevant"){ echo "selected='selected'"; }?>
    
    		value="mostRelevant">Sort Results By:</option>
    
    		<option 
    
    		<?php if($sort == "mostRelevant"){ echo "selected='selected'"; }?>
    
    		value="mostRelevant">Relevance</option>
    
    		<option 
    
    		<?php if($sort == "mostRecent"){ echo "selected='selected'"; }?>
    
    		value="mostRecent">Most Recent</option>
    
    		<option 
    
    		<?php if($sort == "highestRated"){ echo "selected='selected'"; }?>
    
    		value="highestRated">Highest Rated</option>
    
    		<option 
    
    		<?php if($sort == "mostPopular"){ echo "selected='selected'"; }?>
    
    		value="mostPopular">Most Popular</option>
    
    		<option 
    
    		<?php if($sort == "mostPopularNow"){ echo "selected='selected'"; }?>
    
    		value="mostPopular">Most Popular Now</option>
    
    	</select>
    
    </td>
    
    <td width="94"><input type="submit" value="Search" style="font-family: verdana; font-size: 8pt; background: #FFFFFF; border: 1px solid #D5DCE4; width:100px; height: 19px; padding-left: 0px;"></td></tr></table>
    
    </p>
    
    </form>
    
    
    
    <h1 align='center'><?php echo $title; ?></h1>
    <div align='center'><?php echo "Place your Ads here"; //include "ad-watch.html"; ?></div>
    <p align="center">
    <embed src="http://www.pornhub.com/videoplayer.swf" FlashVars="config=http://www.websitevideos.com/flvplayer.php?viewkey=<?=$link?>" quality="high" bgcolor="#000000" width="455" height="395" loop="false" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" scale="exactfit" > </embed>
    </p>
    
    
    <p align="center" class="style8">All videos copyright to their respective owners.<br> 
    
    &copy;2008 PhpVideoSearch.com</p>
    </body>
    </html>
    <?php
    }
    ?>
    Thank you.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    When I get into situations like this, I just do what everyone says you shouldn't do ...

    <table width="300" height="300">
    <tr>
    <td align="center" valign="center">
    .... put your video here
    </td>
    </tr>
    </table>


    Use a table ... done.


  4. #3
    Senior Member duck444's Avatar
    Join Date
    Feb 2003
    Location
    east coast
    Posts
    402
    Member #
    751
    Liked
    2 times
    Quote Originally Posted by mlseim
    When I get into situations like this, I just do what everyone says you shouldn't do ...

    <table width="300" height="300">
    <tr>
    <td align="center" valign="center">
    .... put your video here
    </td>
    </tr>
    </table>


    Use a table ... done.
    thanks...i'll try it out later...I'm sure it will work...I gave you rep...Have a great weekend!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:34 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com