Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Ola galera depois de um bom tempo voltei,
Galera estou com um codigo q eu peguei na net, pra mim é interessante naun sei é um codigo antigo mas eu gostei, e gostaria de melhora-lo...
naun estou conseguindo fazer as imagens ficar uma do lado da outra...
tipo esse codigo:
<table width="95" border="0" cellspacing="10" cellpadding="3">
<tr>
<%While Not objRS.EOF AND x < objRS.PageSize
x = x + 1
q = q + 1
%>
<td><table width="148" height="140" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="147" height="128" bgcolor="#000000">
<div align="center"><a class="group" rel="group" href="painel/Photos/<%=objRS("foto")%>"><img src="painel/Photos/<%=objRS("foto")%>" border="1px" width="146" height="126" /></a></div></td></tr>
<tr>
</table> </td><% If q = 4 Then %>
</tr>
<tr><%
q = 0
End If
objRS.MoveNext
Wend
%>
</tr>
</table>
veja como funciona o codigo acima !!!!!
e esse é oq esta dando trabalho, ele naun da erros mas naun fica como o codigo de cima !
<table width="180" border="0" cellspacing="0" cellpadding="0">
<%
Produtos.AbsolutePage = VarPagina
TotaldePaginas = Produtos.PageCount
For intI = 1 to Produtos.PageSize
x = x + 1
q = q + 1
%>
<tr>
<td>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="180" border="0" cellspacing="0" cellpadding="0" class="texto" style="border: 1px solid #C7D7E4">
<tr class="tbcor1" onMouseOver="this.style.backgroundColor='#D7E7F4';" onMouseOut="this.style.backgroundColor='';">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><br/></div></td>
</tr>
<tr>
<td><div align="center"><a href="MaisProduto.asp?Produto=<%=Produtos("Cod")%>"><img border="1" src="<%=Produtos("Foto1")%>" width="170" height="130" /></a></div></td>
</tr>
<tr>
<td><p align="center"><a href="MaisProduto.asp?Produto=<%=Produtos("Cod")%>" class="LinkTahoma11AzulBold"><%=Produtos("NomeProduto")%></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<span class="TextTahoma11Azul"><%=Left(Produtos("BreveDescricao"),45)%>...</span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><span class="TextTahoma11Azul">De: </span><span class="TextTahoma11Azul"><s><%=FormatCurrency(Produtos("PrecoDe"))%></s></span></td>
</tr>
<tr>
<td><span class="TextTahoma11Vermelho">Por: </span></td>
</tr>
<tr>
<td><div align="center"><span class="TextTahoma11VermelhoBold"><%=FormatCurrency(Produtos("PrecoPor"))%></span></div></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center"><a href="MaisProduto.asp?Produto=<%=Produtos("Cod")%>"><img src="Imagens/bt_detalhes.png" width="128" height="22" border="0"></a></div></td>
<tr>
</table></td><% If q = 4 Then %>
</tr>
<tr>
<%
q = 0
End If
Produtos.MOVENEXT
If Produtos.EOF Then Exit For
Next
%></tr>
</table>
Veja o codigo q naun quer dar certo?
eu ja tentei tudo oq eu pude fazer.....
Carregando comentários...