Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

ORisonho

Legenda na foto LIGHTBOX

Recommended Posts

Olá galera, estou aqui novamente, mas agora a duvida é simples, eu tenho um pagina que faz a LIGTHBOX da seguinte maneira:

 

<?php require_once('Connections/galeria.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
	case "text":
	  $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
	  break;	
	case "long":
	case "int":
	  $theValue = ($theValue != "") ? intval($theValue) : "NULL";
	  break;
	case "double":
	  $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
	  break;
	case "date":
	  $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
	  break;
	case "defined":
	  $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
	  break;
  }
  return $theValue;
}
}

mysql_select_db($database_galeria, $galeria);
$query_galeria = "SELECT * FROM fotos ORDER BY id ASC";
$galeria = mysql_query($query_galeria, $galeria) or die(mysql_error());
$row_galeria = mysql_fetch_assoc($galeria);
$totalRows_galeria = mysql_num_rows($galeria);
?><!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" />
<title>Galeria</title>


	<link rel="stylesheet" type="text/css" href="../style-projects-jquery.css" />	
	
	<!-- Arquivos utilizados pelo jQuery lightBox plugin -->
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
	<link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" />
	<!-- / fim dos arquivos utilizados pelo jQuery lightBox plugin -->
	
	<!-- Ativando o jQuery lightBox plugin -->
	<script type="text/javascript">
	$(function() {
		$('#gallery a').lightBox();
	});
	</script>
   	<style type="text/css">
	/* jQuery lightBox plugin - Gallery style */
	#gallery {
		background-color: #444;
		padding: 10px;
		width: 779px;
	}
	#gallery ul { list-style: none; }
	#gallery ul li { display: inline; }
	#gallery ul img {
		border: 5px solid #3e3e3e;
		border-width: 5px 5px 20px;
	}
	#gallery ul a:hover img {
		border: 5px solid #fff;
		border-width: 5px 5px 20px;
		color: #fff;
	}
	#gallery ul a:hover { color: #fff; }
	body {
	background-image: url(images/Fundo.jpg);
}
</style>


	<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="779" border="0" align="center">
  <tr>
	<td width="146" bgcolor="#FFFFFF" class="arquivos">Voltar a Página Principal</td>
	<td width="623" class="arquivos2"> </td>
  </tr>
</table>
<table width="779" border="0" align="center">
  <tr>
	<td><div align="center" id="gallery">
	  <?php do { ?>
		<a href="fotos/<?php echo $row_galeria['foto']; ?>"> <img src="fotos/<?php echo $row_galeria['foto']; ?>" width="100" height="100" border="0" title="<?php echo $row_galeria['coment']; ?>"/></a> 
		<?php } while ($row_galeria = mysql_fetch_assoc($galeria)); ?></div></td>
  </tr>
</table>
</body>
</html>
<?php
mysql_free_result($galeria);
?>

Mas eu queria que na hora que a foto "ABRICE" ela mostraria a foto e logo em baixo um pequeno texto, que serviria apenas para dar uma LEGENDA a foto, tipo: foto de fulano, foto do casamento, essas coisas, e que essa legenda ficasse logo abaixo da foto, nada demais.

 

Sei que deve ser simples mais não consegui achar, agradeço aqueles que poderem ajudar.

 

Vlw http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites

Dentro do

<a href="" title="Aqui você coloca a legenda">Foto1</a>

 

Flws

Vlw mesmo mano...é isso mesmo....agora como eu faço para colocar aqui como RESOLVIDO?

 

[TÓPICO RESOLVIDO]

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tópico movido: PHP=>Javascript

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.