Jump to content

Galeria de Imagens lightbox e php

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"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<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; }




$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>




Edited by scorch
Adicionado Geshi.

Share this post

Link to post
Share on other sites


Em primeiro lugar verifica se o caminho das imagens no ficheiro de css esta correto. se sim experimenta colocar isto




"Innovation distinguishes between a leader and a follower." Steve jobs.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.