remove scroll and resizing php embeded

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ssideup
    New Member
    • Jun 2012
    • 1

    remove scroll and resizing php embeded

    Remove scroll and resizing php embeded
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" href="style.css" type="text/css" />
        <title>Gallery Testing</title>
        <style type="text/css">
            overflow-x:hidden;
        </style>
      </head>
    <body>
      <div id="wrap">
    
      <div id="gallery">
      <?php
        echo "<ul";
        $filearray = array(); 
        if ($fil = opendir("php00/")) {
          while (($file = readdir($fil)) !== false) {
            if ($file != "." && $file != "..") 
            { 
              $filearray[] = $file;
              $page = empty($_GET['page']) ? 1 : $_GET['page'];
              $num_per_page = 3;
              $total_pages = ceil(count($filearray)/$num_per_page);
            }
          }
    
          for($i = ($page - 1) * $num_per_page; $i < $page * $num_per_page; $i++) 
          {?>
              ><li><a href="img/<?php echo $filearray[$i]; ?>">
              <embed src="php00/<?php echo $filearray[$i];  ?>"  alt="<?php echo $filearray[$i]; ?>" />
          </a></li
    <?php }
    
    closedir($fil);
    echo "></ul>";
    $pages = array();
    for($i = 1; $i <= $total_pages; $i++) {
      $pages[] = "<a href=\"".$_SERVER['PHP_SELF']."?page=".$i."\">".$i."</a>";
    }
    echo "Page: ".implode(" ", $pages);
    }
     
    
    ?>
    <br />
    </div>
    </div>
    </body>
    </html>
    Last edited by Frinavale; Jun 18 '12, 03:24 PM. Reason: Added code tags
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    On line 33 in the above posted code you are missing a ">".

    I'm not sure what the problem is though.

    -Frinny

    Comment

    Working...