Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/09/2010, 19:40
Avatar de breakervans
breakervans
 
Fecha de Ingreso: noviembre-2009
Ubicación: Vigo, España
Mensajes: 133
Antigüedad: 14 años, 4 meses
Puntos: 1
Respuesta: Equivalente a ;

pozi... a lo mejor es algo del codigo completo, te lo copio, a ver si ves algo raro

Código PHP:
<head>
<link rel="stylesheet" href="estilo.css" type="text/css" media="all">
<link rel="shortcut icon" href="general/favicon.ico" type="image/x-icon" />
<script src="dv.js" type="text/javascript">
</script>

<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var b1 = '<img src="gallery/b1.jpg" width="900" height="600" border="0" alt="b1">'
var b2 = '<img src="gallery/b2.jpg" width="900" height="600" border="0" alt="b2">' 
var b3 = '<img src="gallery/b3.jpg" width="900" height="600" border="0" alt="b3">' 
var b4 = '<img src="gallery/b4.jpg" width="900" height="600" border="0" alt="b4">' 
var b5 = '<img src="gallery/b5.jpg" width="900" height="600" border="0" alt="b5">' 
var b6 = '<img src="gallery/b6.jpg" width="900" height="600" border="0" alt="b6">'  

</script>
</head>
<body>

<table width="725" border="0"><center>
    <tr width="725"><td width="725"><div id="news">

<?php

     $b2
="<a href='#' onClick='dv.showDV(b1); return false'><img src='gallery/b1.jpg' width='15%' height='15%' border='0' alt='b1'></a>";
   
$b2="<a href='#' onClick='dv.showDV(b2); return false'><img src='gallery/b2.jpg' width='15%' height='15%' border='0' alt='b2'></a>";        
     
$b3="<a href='#' onClick='dv.showDV(b3); return false'><img src='gallery/b3.jpg' width='15%' height='15%' border='0' alt='b3'></a>";
     
$b4="<a href='#' onClick='dv.showDV(b4); return false'><img src='gallery/b4.jpg' width='15%' height='15%' border='0' alt='b4'></a>";
     
$b5="<a href='#' onClick='dv.showDV(b5); return false'><img src='gallery/b5.jpg' width='15%' height='15%' border='0' alt='b5'></a>";
     
$b6="<a href='#' onClick='dv.showDV(b6); return false'><img src='gallery/b6.jpg' width='15%' height='15%' border='0' alt='b6'></a>";
     
$b7="<img src='gallery/b7'>";

    
    
    require_once 
"Paginated.php";
require_once 
"DoubleBarLayout.php";
    
    
//create an array of names in alphabetic order. A database call could have retrieved these items
    
$names = array("Eloi Breaker V""$b6");
    
    
$page $_GET['page'];
    
    
//constructor takes three parameters
    //1. array to be paged
    //2. number of results per page (optional parameter. Default is 10)
    //3. the current page (optional parameter. Default  is 1)
    
$pagedResults = new Paginated($names10$page);
    
    echo 
"<ul>";

    while(
$row $pagedResults->fetchPagedRow()) {    //when $row is false loop terminates
        
echo "<li>{$row}</li>";
    }
    
    echo 
"</ul>";
    
    
//important to set the strategy to be used before a call to fetchPagedNavigation
    
$pagedResults->setLayout(new DoubleBarLayout());
    echo 
$pagedResults->fetchPagedNavigation();
    
?>

<br><br>
    
</td></tr></table>
</body>
El error que me da es que cuando cargo la página, en la lista, no aparece ninguna foto, y debería.
__________________
Diseño portadas para discos, interesados contactad conmigo.