PDA

View Full Version : need Image popup help JS


tns123j
12-04-2004, 06:04 PM
<a href="javascript:popImg('images/nba<%=("pImg2")%>');"><img src="images/nba<%=getProducts("pImg")%>" border="0"></center></tr>


pImg is a small version of the image in a database. I want to click it and have it popup a properly sized large image (pImg2). I thought the code above would work.

Can someone tell me what I did wrong or a more efficiant way of doing it? Thanks.

ghell
12-04-2004, 07:13 PM
you have a popImg() function in javascript right?

oh btw this is a javascript problem so u shud prob move it to there.. i dunno how to get image size in asp or javascript without displaying the image first, maby get it to load as 50*50 or something and then on the actaul popup make it resize itself once its loaded