Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/07/2006, 11:50
bitshoot
 
Fecha de Ingreso: noviembre-2004
Mensajes: 371
Antigüedad: 20 años, 6 meses
Puntos: 0
bueno ya encontre la solucion y si a alguien le sirve aca esta el codigo


<!--#include file="../admin/conexion.asp"-->
<%
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.Expires = 0

if request.QueryString("codigoOferta") <> "" then
sql = "select * from ofertas where codigoOferta = "& request.QueryString("codigoOferta") &""
set rsLista = server.CreateObject("adodb.recordset")
rsLista.open sql, conexion
else
sql = "select * from ofertas"
set rsLista = server.CreateObject("adodb.recordset")
rsLista.CursorType=1
rsLista.open sql, conexion
total = rsLista.recordcount

if request("sig") = "" then
rsLista.absoluteposition=1
sig = 1
else
sig = cint(request("sig"))
if sig >= total then
sig = 1
rsLista.absoluteposition=1
else
sig = sig + 1
rsLista.absoluteposition=sig
end if
end if
end if
'if request.QueryString("codigoOferta") = "" then %>
<meta http-equiv="refresh" content="9;URL=banner.asp?sig=<%=sig%>">
<% 'end if
'response.Write(total)%>
<table width="176" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="176">
<% if instr(rsLista("imagen"),".swf") then %>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="176" height="140">
<param name="movie" value="../admin/oferta/<%=rsLista("imagen")%>">
<param name="quality" value="high">
<embed src="../admin/oferta/<%=rsLista("imagen")%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1824" height="1425"></embed>
</object>
<% else %>
<img src="../admin/oferta/<%=rsLista("imagen")%>" width="176" height="140" />
<% end if %>
</td>
</tr>
</table><br />

todo este codigo esta dentro de un iframe para k se antualice solo el iframe y no toda la pantalla