Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Boa tarde galera... estou com o seguinte problema, criei uma página que exibe as fostos de determinados produtos. As miniaturas das imagens abrem na parte de baixo e em cima existe um iframe que ao clicar nas miniaturas elas abrem no iframe. Só que quando elas abrem no iframe a imagem não é ajustada ao tamanho do mesmo... gostari de saber se alguém consegue me dar uma luz... obrigado
Segue o código:
<%
dim sql
dim id_carro
dim conexao
dim resultado
set resultado = Server.CreateObject("adodb.recordset")
id_carro = Request.QueryString("id_carro")
if(id_carro<>28) then
sql = "select * from fotos where id_foto="&id_carro
set resultado = conexao.Execute(sql)
%>
<center>
<iframe frameborder="0" scrolling="no" name="exibeFotos" id="exibeFotos" width="600" height="400" src="<%=resultado("foto1")%>">
</iframe>
<table width="600" height="120" cellpadding="0" cellspacing="0" border="0">
<tr>
<%
if(resultado("foto1") <> "") then
%>
<td width="200" align="center"><a href="<%=resultado("foto1")%>" target="exibeFotos" width="200" height="200"><img src="<%=resultado("foto1")%>" width="100" height="100"/></a></td>
<%
End if
%>
<%
if(resultado("foto2") <> "") then
%>
<td width="200" align="center"><a href="<%=resultado("foto2")%>" target="exibeFotos"><img src="<%=resultado("foto2")%>" width="100" height="100"/></a></td>
<%
End if
%>
<%
if(resultado("foto3") <> "") then
%>
<td width="200" align="center"><a href="<%=resultado("foto3")%>" target="exibeFotos"><img src="<%=resultado("foto3")%>" width="100" height="100"/></a></td>
<%
End if
%>
</tr>
</table>
</center>
<%
else
response.write ("Produto sem foto")
End if
%>Carregando comentários...