• 0
Sign in to follow this  
johngrass

Como Faço Nesse Caso Para Janela Popup

Question

eu tenho o seguinte código:

só que não consigo fazer o popup funcionar dentro do meu script de imagem randomizada com link:

como faço para funcionar o popup dentro do meu script??

o end do site é esse: http://www.zinecool.com.br/index22.php

espero que alguém possa solucionar este caso para mim....

HELPPPP

código do script da imagem randomizada:

<script language="javascript">
<!--
function banner_topo() {
imagens=new Array();
imagens[0]="index/ultima_foto_01/01.jpg";
imagens[1]="index/ultima_foto_01/02.jpg";
imagens[2]="index/ultima_foto_01/03.jpg";
imagens[3]="index/ultima_foto_01/04.jpg";
imagens[4]="index/ultima_foto_01/05.jpg";
lnks=new Array();
lnks[0]="javascript:AbreJanelaGaleria('fotos/fotos/janela.php?dir=images/galeria/baturite-260604/&id=10&evento=BATURITÉ DIVINE - ICE AND FIRE&data=26/06/2004&local=Balneário Camboriú / SC - Fotos: John e Criativoweb.com.br&id=10')";
lnks[1]="javascript:AbreJanelaGaleria('fotos/fotos/janela.php?dir=images/galeria/baturite-260604/&id=10&evento=BATURITÉ DIVINE - ICE AND FIRE&data=26/06/2004&local=Balneário Camboriú / SC - Fotos: John e Criativoweb.com.br&id=10')";
lnks[2]="javascript:AbreJanelaGaleria('fotos/fotos/janela.php?dir=images/galeria/baturite-260604/&id=10&evento=BATURITÉ DIVINE - ICE AND FIRE&data=26/06/2004&local=Balneário Camboriú / SC - Fotos: John e Criativoweb.com.br&id=10')";
lnks[3]="javascript:AbreJanelaGaleria('fotos/fotos/janela.php?dir=images/galeria/baturite-260604/&id=10&evento=BATURITÉ DIVINE - ICE AND FIRE&data=26/06/2004&local=Balneário Camboriú / SC - Fotos: John e Criativoweb.com.br&id=10')";
lnks[4]="javascript:AbreJanelaGaleria('fotos/fotos/janela.php?dir=images/galeria/baturite-260604/&id=10&evento=BATURITÉ DIVINE - ICE AND FIRE&data=26/06/2004&local=Balneário Camboriú / SC - Fotos: John e Criativoweb.com.br&id=10')";

var sorteia=Math.random() * imagens.length;
var ncerto=parseInt(sorteia);
document.write("<a href="+lnks[ncerto]+"><img border=3 src="+imagens[ncerto]+">");
}
banner_topo();
//-->
</script>
agora o do script para janela popup:
<script>function AbreJanelaGaleria(URL) {

  var width = 625;

  var height = 395;

  var left = 50;

  var top = 10

  window.open(URL, 'ema3', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');

}



function popup(url) {

  window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')

}



function imprimi(url) {

  window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')

}



function indica(url) {

  window.open(url,'popupImageWindow','width=300, height=150, top=12, left=15, scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no')

}



function cores(url) {

  window.open(url,'popupImageWindow','width=225, height=169, top=10, left=10, scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no')

}</script>

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

Sign in to follow this