Jump to content


Photo

Popup + Asp


  • Faça o login para participar
1 reply to this topic

#1 globim

globim

    Novato no fórum

  • Usuários
  • 20 posts
  • Sexo:Não informado

Posted 08/11/2005, 14:05

ai galera to gerando um popup com esse codigo aqui

<script>
<!-- Inicio
timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function PopUp(URL, WIDTH, HEIGHT, zdescricao) 
{
var localX = (screen.width  - WIDTH) / 2;
var localY = (screen.height - HEIGHT) / 2;


windowprops = "left=" + localX + ",top=" + localY +",width=" + WIDTH + ",height=" + HEIGHT;

text = "<html><head><title>Ampliar Imagem</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor='white'";

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "background='" + URL + "' style='background-position=center; background-repeat= no-repeat'>";

if (timeout != 0) text +="<br><font face='tahoma' size='1'>Preview closes after " + timeout + " seconds.</font>";

text += zdescricao + "<br>";
text += "</body></html>";

preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
//  End -->
</script>

e pra chamar ele eu faço assim

<a href="javascript:PopUp('DsWeb/uploaded_produtos/<%=zCodFor%>/<%=zimagegrande%>', 350, 350, <%=zdescricao%>)"></a>

bom mais quando mando rodar
ele me tras a imagem certinho mais ao invez da descrição da imagem
ele me traz a palavra undefined

alguem sabe o que pode ser ??

#2 globim

globim

    Novato no fórum

  • Usuários
  • 20 posts
  • Sexo:Não informado

Posted 08/11/2005, 14:54

galera nem prescisa mais ano ja dei jeito ^^




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq