Ir para conteúdo

Arquivado

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

ydiwonko

Lightbox combinado com Javascript

Recommended Posts

Caros colegas do IMaster, recorro a vocês para desvendar este mistério.

 

Colocarei o código utilizado logo abaixo, porém desde já informo que não estou conseguindo combinar o lightbox com este recurso do Javascript <onMouseover>, uma vez que utilizo este recurso do Javascript para um menu dinâmico do lado esquerdo da página.

 

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

<head>

<title>::titulo da pagina::</title>

<meta http-equiv="content-type" content="text/html;charset=utf-8" />

<meta name="keywords" content="VisualLightBox, LightBox, Photo Gallery, jQuery Ajax Image, jQuery Image Resize" />

<meta name="description" content="Visual LightBox Gallery created with VisualLightBox, a free wizard program that helps you easily generate beautiful Lightbox-style web photo galleries" />

<link rel="shortcut icon" href="favicon.ico" />

<Link href="style.css" rel="stylesheet" type="text/css">

 

<style type="text/css">

<!--

.style13 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }

.style15 {

color: #FFFF00;

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 12px;

font-weight: bold;

}

.style18 {color: #000099}

a:link {

text-decoration: none;

color: #FFFFFF;

}

a:visited {

text-decoration: none;

color: #FFFFFF;

}

a:hover {

text-decoration: none;

color: #FFFFFF;

}

a:active {

text-decoration: none;

color: #FFFFFF;

}

.style19 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; }

.style21 {color: #FFFF00}

.style22 {color: #FF0000}

.style23 {color: #000000; }

.style25 {color: #FFFFFF}

.style29 {font-weight: bold; color: #FFFF00;}

.style30 {font-weight: bold; color: #FFFF00; font-size: 18px; }

.style28 {font-size: 18px}

-->

</style>

<style type="text/css">#vlightbox a#vlb{display:none}</style>

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

<script src="engine/js/jquery.min.js" type="text/javascript"></script>

 

</head>

 

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td align="center" valign="top"><table width="804" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="804" height="224" align="left" valign="top" background="IMAGES/TOP.JPG"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td> </td>

</tr>

 

</table>

<div align="center"></div>

<table width="804" height="113" border="0">

<tr>

<th width="180" height="111" scope="row"> </th>

<td width="71" class="style13" scope="row"><div align="center" class="style15"><a href="index.html"><span class="style21">Home</span></a><a href="home.html" class="style21"></a></div></td>

<td width="88"><div align="center" class="style19"><a href="sobrenos.html"><span class="style21">Sobre nós </span></a><a href="sobrenos.html"></a> </div></td>

<td width="76"><div align="center" class="style19"><a href="servicos.html"></a><a href="produtos.html"><span class="style21">Produtos</span></a></div></td>

<td width="82"><div align="center" class="style19"><a href="noticias.html"><span class="style21">Noticias</span></a><a href="noticias.html"></a></div></td>

<td width="66"><div align="center" class="style19"><a href="faq.html"><span class="style21">F.A.Q.</span></a><a href="faq.html"></a></div></td>

<td width="89"><div align="center" class="style19"><a href="localizacao.html"><span class="style21">Localização</span></a></div></td>

<td width="58"><div align="center" class="style19"><a href="contato.html"><span class="style21">Contato</span></a></div></td>

<td width="56"> </td>

</tr>

</table></td>

</tr>

<tr>

<td> </td>

</tr>

 

<tr>

<td align="center" valign="top"><table width="714" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td width="206" align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td align="left" valign="top"><img src="IMAGES/top-menu-left.GIF" width="206" height="35"></td>

</tr>

<tr>

<td height="6" align="left" valign="top" background="images/leftbox-bg.gif"><img src="images/leftbox-top.gif" width="206" height="6"></td>

</tr>

<tr>

<td align="left" valign="top" background="IMAGES/leftbox-bg.gif"><div align="left">

<table width="97%" height="240" border="0" cellpadding="0" cellspacing="0">

<tr>

<td height="18" align="right" valign="top"> </td>

</tr>

<tr bordercolor="#FF0000">

<td align="right" valign="top">

 

<p align="left" class="style22"><a href="http://www.pagina.com.br/produtos.html" class="style15" onMouseover="showit(1)"><span class="style21">   Calandra</span></a></p> </td>

</tr>

</table>

</div></td>

</tr>

<tr>

<td align="left" valign="top"><img src="IMAGES/leftbox-bottom.gif" width="206" height="27"></td>

</tr>

</table></td>

<td width="327" align="left" valign="top"><table width="62%" height="300" border="0" cellpadding="0" cellspacing="0" bgcolor="FFFAFA">

<tr>

<td height="38" align="left" valign="top" background="IMAGES/mid-top- sobre nos.png"><table width="103%" height="38" border="0" cellpadding="0" cellspacing="0">

<tr>

<td height="26"><div align="center"><span class="style29">  <span class="style28"> Produtos da pagina</span></span></div></td>

</tr>

 

</table></td>

</tr>

<tr>

<td height="25" align="left" valign="top"> </td>

</tr>

<tr>

<td height="57" align="left" valign="top" class="mid1"><p class="style23"><br>

<!-- Edit the dimensions of the below, plus background color-->

</p>

<ilayer name="dep1" width=400 height=32 bgColor="#FFFAFA" class="style23">

<layer name="dep2" left="-1" top="-11" width=400 height=32> </layer>

</ilayer>

<div id="describe" style="background-color:#FFFAFA;width:400px;height:32px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>

<span class="style22">

<script language="JavaScript1.2">

 

var submenu=new Array()

 

submenu[1]='<font size="2" face="Verdana"><span class="style22">   <STRONG>Calandra</STRONG></span><br><br><a rel="lightbox_vlb" href="data/images/eletroerosao.jpg" title="eletroerosao"><img src="data/thumbnails/eletroerosao.png" alt="eletroerosao"/></a><a id="vlb" href="http:www.pagina.com.br"></a><script src="engine/js/visuallightbox.js" type="text/javascript"></script></div></font>'

 

 

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

 

function showit(which){

clear_delayhide()

thecontent=(which==-1)? "" : submenu[which]

if (document.getElementById||document.all)

menuobj.innerHTML=thecontent

else if (document.layers){

menuobj.document.write(thecontent)

menuobj.document.close()

}

}

 

function resetit(e){

if (document.all&&!menuobj.contains(e.toElement))

delayhide=setTimeout("showit(-1)",delay_hide)

else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))

delayhide=setTimeout("showit(-1)",delay_hide)

}

 

function clear_delayhide(){

if (window.delayhide)

clearTimeout(delayhide)

}

 

function contains_ns6(a, B) {

while (b.parentNode)

if ((b = b.parentNode) == a)

return true;

return false;

}

 

</script>

<span class="style25"></span> </span></td>

</tr>

<tr>

<td align="left" valign="top"> </td>

</tr>

<tr>

<td height="41" align="left" valign="top" class="mid2"> </td>

</tr>

<tr>

<td align="left" valign="top"> </td>

</tr>

<tr>

<td align="left" valign="top" class="mid1 style22"> </td>

</tr>

<tr>

<td height="18" align="left" valign="top"> </td>

</tr>

</table>    </td>

<td width="181" align="left" valign="top"><table width="50%" height="308" border="0" cellpadding="0" cellspacing="0">

<tr>

<td align="left" valign="top"><img src="IMAGES/top-menu-right.GIF" width="206" height="35"></td>

</tr>

<tr>

<td height="6" align="left" valign="top" background="images/leftbox-bg.gif"><img src="images/leftbox-top.gif" width="206" height="6"></td>

</tr>

<tr>

<td align="left" valign="top" background="IMAGES/leftbox-bg.gif"><table width="97%" height="218" border="0" cellpadding="0" cellspacing="0">

<tr>

<td height="18" colspan="2" align="right" valign="top"> </td>

</tr>

<tr bordercolor="#FF0000">

<td width="8" height="34" align="right" valign="top"> </td>

</tr>

<tr>

<td height="18" colspan="2" align="right" valign="top"> </td>

</tr>

<tr>

<td align="right" valign="top"> </td>

<td bgcolor="#FF0000" class="leftbox style18"><a href="noticias.html" class="style21"></a></td>

</tr>

<tr>

<td height="18" colspan="2" align="right" valign="top"> </td>

</tr>

<tr>

<td height="48" align="right" valign="top"> </td>

<td bgcolor="#FF0000" class="leftbox style18"><a href="noticias.html" class="style21"></a></td>

</tr>

</table></td>

</tr>

<tr>

<td height="27" align="left" valign="top"><img src="IMAGES/down- rightbox-bottom.gif" width="206" height="27"></td>

</tr>

</table> </td>

</tr>

</table></td>

</tr>

<tr>

<td> </td>

</tr>

<tr>

<td height="32" background="IMAGES/bottom_bg.gif" class="copyright style18"><p align="center"><span class="style21">© 2009. All Rights Reserved. Design by</span> <A href="index.html">Empresa S.A.</A> </p></td>

</tr>

</table></td>

</tr>

<tr>

<td align="center" valign="top"> </td>

</tr>

</table>

</body>

</html>

 

 

A quem conseguir tirar esta dúvida agradeço muito.

 

Abraço

Ydiwonko.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Oi ydiwonko, seja bem vindo ao fórum.

 

Pelo que observei no código que você postou, trata-se de Html com JavaScript.

 

Nada de Flash na sua página, ou seja, vamos aguardar algum moderador conferir a sua solicitação, e, se minha observação estiver correta, transferir o seu tópico para o fórum de JavaScript.

 

 

PS: (para colaborar), quando precisar postar algum código no fórum, fica legal acionar o ícone <> (inserir code) e colar entre code e /code, facilita a visualização.

 

Abraços

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.