Ir para conteúdo
Fórum Script Brasil
  • 0

Problemas com lightbox


Von_Reibnitz

Pergunta

Olá, estou com problemas para implementar o lightbox em um script php

tenho no index estes códigos:

<?


include "config.php";
$pg = $_GET[pg]; 
$cidade = $_GET[cidade];

if(empty($pg)) {
$pg = "principal";
//include "estrutura/estatisticas/contador.php";
}
?>
<? if(empty($pg) OR $pg=="principal"){?>

<? }?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
    var $JQuery = jQuery.noConflict()
</script>
<!--JAVA PLAYER POP UP-->
<script>
function link(end){
window.open(end,"nova","height=442,width=470,left=60,top=50");
}
</script>
<!--JAVA RECADOS -->
<script>
function link(end){
window.open(end,"nova","height=500,width=600,left=60,top=50");
}
</script>

<title> >> Portal noticias <<</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FFFFFF;
}
.topobg {
	height: 3px;
}
    img {border:0;}


.inicio {
	color: #000000;
	font-family: "trebuchet MS", Verdana, Arial;
}
.entrete {
	color: #1C5A97;
	font-family: "trebuchet MS", Verdana, Arial;
	font-size: 35px;
	font-weight: bold;
}
.fotos {
	color: #9981E6;
	font-family: "trebuchet MS", Verdana, Arial;
}
.videos {
	color: #99CC00;
	font-family: "trebuchet MS", Verdana, Arial;
}
.contato {
	color: #0099FF;
	font-family: "trebuchet MS", Verdana, Arial;
}
.btradio {
	color: #999999;
	font-family: "trebuchet MS", Verdana, Arial;
}

.style4 {
	font-family: "trebuchet MS", Verdana, Arial;
	font-size: 12px;
}
.style10 {
	font-family: "trebuchet MS", Verdana, Arial;
	font-size: 15px;
}
.style9 {	font-family: "trebuchet MS", Verdana, Arial;
	font-weight: bold;
	color: #FFFFFF;
	font-size: 14px;
}
.fundo_topo {
	height: 35px;
	padding-top: 2px;
}
.style22 {
	font-family: "trebuchet MS", Verdana, Arial;
	color: #FFFFFF;
	font-weight: bold;
	font-size: 14px;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="shortcut icon" href="icone.gif" >
<link rel="stylesheet" href="menucss.css" type="text/css" />
<link rel="stylesheet" href="menuh.css" type="text/css" />


<link href="menu_style.css" rel="stylesheet" type="text/css">
<style type="text/css">
.style18 {	font-family: "trebuchet MS", Verdana, Arial;
	font-size: 14px;
	color: #FFFFFF;
	font-weight: bold;
}
</style>

<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
</head>

na página que exibe a noticia a imagem é mostrada da seguinte forma:

<? 
$alinhara = ($dados[alinhamento_foto]=="R")?"right":"left";
$larguraG = ($dados[largura_foto]=="")?"250":"$dados[largura_foto]";
$alturaG = ($dados[altura_foto]=="")?"h=":"h=$dados[altura_foto]";
echo "<a href='thumbs.php?w=$LarguraFoto&imagem=images/$tabela1/$dados[id]/$dados[foto]' rel='lightbox' title='$dados[titulo]'>";
echo "<img src='thumbs.php?w=$larguraG&$alturaG&imagem=images/$tabela1/$dados[id]/$dados[foto]' align='$alinhara' border='0'>";
echo "</a>";

$texto1 = "$dados[texto]";
$texto2 = str_replace('<font face="Verdana" size="2">', "", "$texto1");
$texto3 = str_replace('</font>', "", "$texto2");

echo nl2br($texto3);

echo "<br><br><i>$dados[creditos_fotos]</i>";
?>

mas não esta funcionando, segue o link

http://www.educacadorsc.net

não sei onde esta o erro.

Link para o comentário
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...