Jump to content

Galeria de Imagens lightbox e php


ProgramadorMarco

Recommended Posts

É o seguinte tenho uma galeria de imagens lightbox, e esta a funcionar, o problema é o que os botoes, next, fechar e etc.. não funcionam, e não fasso ideia porque

o codigo é o seguinte

<!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" lang="en">
<head>

<title>Lightbox JS v2.0 | Test Page</title>

<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>

<style type="text/css">
body{ color: #333; font: 13px 'Lucida Grande', Verdana, sans-serif; }
</style>

</head>
<body>



<h2>Example</h2>









<?php

$conn = @mysql_connect('mysql.serversfree.com', 'u706755866_sitec', '123456') or die ("Problemas na conexão.");
$db = @mysql_select_db("u706755866_sitec", $conn) or die ("Problemas na conexão");





// Seleciona todos os usuários
$sql = mysql_query("SELECT * FROM galeriafotos");


// Exibe as informações de cada usuário
while ($galeriafotos= mysql_fetch_object($sql)) {


?>



<a href="fotosgaleria/<?php echo $galeriafotos->foto ?>" rel="lightbox"><img src="fotosgaleria/<?php echo $galeriafotos->foto ?>" width="150" height="70" alt="" /></a>



<?php


}


?>
Edited by scorch
Adicionado Geshi.
Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.