Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Amigos estou com alguns problemas na minha lightbox, como vocês podem ver nesse link: http://theimageup.com/portf.php?usuario=williancima
A imagem grande é mostrada quando a página é carregada, e só some quando alguma miniatura é clicada :(
Segue todo script da página (PHP + Javascript):
<?php
if (!isset($_GET['usuario']))
{
header("Location: [http://www.theimageup.com/"](http://www.theimageup.com/));
exit;
}
$busca = $_GET['usuario'];
$busca = mysql_real_escape_string($busca);
$sql = "SELECT * FROM `images` WHERE (`Portf` = 'S') AND (`Username` = '".$busca."') ORDER BY `ImageID` DESC";
$query = mysql_query($sql);
$i = 0;
$imagens = array();
while($row = mysql_fetch_array($query, MYSQL_ASSOC))
{
foreach($row as $key => $value)
{
$imagens[$i][$key] = $value;
}
$i++;
}
?>
<!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">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Portfólio</title>
<link href="/style_portf.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='/port/jquery.js'></script>
<script type="text/javascript" src="[http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js">](http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js)
</head>
<body>
<div id="tudo">
<?php if(sizeof($imagens) == 0): ?>
<center style='margin-bottom: 10px; background: #FCC; color: #A00; font-size: 1.3em; padding: 3px;'></center>
<?php else: ?>
<?php $i = 1; ?>
<?php foreach($imagens as $imagem): ?>
<a href="#exibe<?php echo $i++; ?>" name="modal"><img onmouseover="if(parseFloat(this.style.opacity) != 0) p_fade(this, 'fast', 'out', '0.5', 0)" onmouseout="p_fade(this, 'fast', 'in', 1, 0)" onload="this.completed = 1; p_fade(this, 'fast', 'in', 1, 2)" src="[http://www.theimageup.com/images_files/redimensionar.php?arquivo=Carregando comentários...