html over css ?

Status
Not open for further replies.

guitarmaster

Active Member
25
2011
0
0
hello, i am a noob in php,html,css... and i will make a website over here : www.superleech.info i have some problem with it:


here the code :

PHP:
<html> 
<head> 
</head> 
<body style="margin: 0px; padding: 0px;"> 
<div style="width: 100%; height: 100%; left: 0px; top: 0px; position: absolute; z-index: 0;"> 
<img src="first.jpg" style="width: 100%; height: 100%;"> 
</div> 
<div style="z-index: 0; position: relative;"> 

</div> 
</body> 
</html> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

    

<form method="post">

<input type="text" name="url" value="" style="width: 600px">

<form action="post"> 
<input type="image" src="play.jpg"></form> 
</form>

<br />
ex - [url]http://megavideo.com/?v=4R2Y3TWF[/url]


<br />
<hr>
<br />


<?php

// Overridable defines
define('SITE_URL',"http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/');

if(isset($_POST['url']))
{
  include('curl.php');
  include('megavideo.php');
  include('config.php');

  $tube = new megavideo();

  $tube->init($username, $password);

  $download_link = $tube->get($_POST['url']);
  
   
  if($download_link) {
      preg_match('%megavideo\.com/\?v=([A-Z0-9]+)%',$_POST['url'],$match);

      //$remoteLink = urldecode($download_link.'video.flv&type=flv');
      
      $streamLink = urlencode(SITE_URL.'stream.php?url='.base64_encode($download_link).'&type=flv');
      $streamDownloadLink = SITE_URL.'stream.php?url='.base64_encode($download_link);

      ?>
    
        <b>Download URL ( Same IP Download Restriction )</b> : <a href="<?=$download_link;?>"><?=$download_link;?></a>
        <br />
        <b>Download URL </b> : <a href="<?=$streamDownloadLink;?>"><?=$streamDownloadLink;?></a>
        <br />

    

      <embed name="player1" id="player1"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    width="500" height="400"
    bgcolor="#FFFFFF"
    src="player.swf"
    allowfullscreen="true"
    allowscriptaccess="always"
    flashvars="file=<?=urlencode($streamLink);?>&amp;frontcolor=100000&amp;backcolor=ffffff&amp;fullscreen=true">
  </embed>
  
 


  <?php } else { ?>
    Error locating download URL.  
  <?php } 
  
}

?>
</body></html>

With this code i get this :

0100w.jpg



but i will this :s :


wanty.jpg



10879870254165_want.jpg



By the way
PHP:
 <b>Download URL </b> : <a href="<?=$streamDownloadLink;?>"><?=$streamDownloadLink;?></a>
        <br />
generate a download link like : http://www.blabla.com/fdsfdsfsdfqsdfsdqfghfgfd

if someone now to change this to " click here for download



i really need your help, thanks you
 
Last edited by a moderator:
12 comments
Your code is completely messed up.

Code:
<html> 
<head> 
</head> 
<body style="margin: 0px; padding: 0px;"> 
<div style="width: 100%; height: 100%; left: 0px; top: 0px; position: absolute; z-index: 0;"> 
<img src="first.jpg" style="width: 100%; height: 100%;"> 
</div> 
<div style="z-index: 0; position: relative;"> 

[B]</div> 
</body> 
</html> [/B]

The bold lines indicate the browser that the page ends there. First fix that.
 
<html>
<body>
<head>
<body style="margin: 0px; padding: 0px;">
<div style="width: 100%; height: 100%; left: 0px; top: 0px; position: ; z-index: 0;">
<img src="first.jpg" style="width: 100%; height: 100%;">
</div>
<div style="z-index: 0; position: relative;">

</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


like that ? still dont work -> www.superleech.info
 
always start with <html>
head for page title keywords scripts and css includes
close head
open body
include your website code
clode body
close html

<html>
<head>
<title>lololol</title>
meta meta meta
</head>
<body>
hey this is my website
</body>
</html>
 
Hey, guys, i learned a lot of html & css yesterday, but have much problem ^^



here the index.php code :


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


<head>

<title> Bypass Megavideo </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" media="screen" type="text/css" title="design" href="design.css" />





</head>

<body>


<form method="post" class="block">

<input type="text" name="url" value="" style="width: 600px" style="height: 100px" class="bar">



<form action="post">
<input type="image" src="play.jpg" class="bouton">
</form>


<br />
<p>
<h3 class="exemple">ex - http://megavideo.com/?v=4R2Y3TWF</h3>
</p>


<br />
<br />
<br />


<?php

// Overridable defines
define('SITE_URL',"http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/');

if(isset($_POST['url']))
{
include('curl.php');
include('megavideo.php');
include('config.php');

$tube = new megavideo();

$tube->init($username, $password);

$download_link = $tube->get($_POST['url']);


if($download_link) {
preg_match('%megavideo\.com/\?v=([A-Z0-9]+)%',$_POST['url'],$match);

//$remoteLink = urldecode($download_link.'video.flv&type=flv');

$streamLink = urlencode(SITE_URL.'stream.php?url='.base64_encode($download_link).'&type=flv');
$streamDownloadLink = SITE_URL.'stream.php?url='.base64_encode($download_link);

?>
<a class="url" href="<?=$streamDownloadLink;?>"><?=$streamDownloadLink;?></a>
<br />



<embed class="lecteur" name="player1" id="player1"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
width="500" height="400"
bgcolor="#FFFFFF"
src="player.swf"
allowfullscreen="true"
allowscriptaccess="always"
flashvars="file=<?=urlencode($streamLink);?>&amp;frontcolor=100000&amp;backcolor=ffffff&amp;fullscreen=true">
</embed>




<?php } else { ?>
Error locating download URL.
<?php }

}

?>
</head>
</body>
</html>


And the CSS ^^


.exemple
{
font-size: 18px; /* la taille d epolice est de 18px */
text-align: center; /* ont aligne le text */
}
body
{
background-image: url("first.jpg"); /* Ont charge le background */
background-position: top; /* Le fond est aligné au centre */
background-repeat : no-repeat;

}
.block
{
margin-top: 220px;
margin-right: 100px;
margin-bottom: 15px;
margin-left: 585px;
}
.bar
{
height: 70px;
}



with this code, i cant move play logo"butoon" without move url bar :s


here a screen on google chrome :


91793759.jpg




and on firefox :


fireyt.jpg




how i can fix it, i think the <form is the cause, i cant move one without others... thanks
 
Status
Not open for further replies.
Back
Top