Foros del Web » Creando para Internet » Herramientas y Software »

problema con scroll de imagenes

Estas en el tema de problema con scroll de imagenes en el foro de Herramientas y Software en Foros del Web. hola a todos tengo un problema con un scroll de imagenes. es bastante sencillo y tiene un boton de anterior y otro de siguiente. parte ...
  #1 (permalink)  
Antiguo 07/01/2003, 09:46
 
Fecha de Ingreso: diciembre-2002
Mensajes: 102
Antigüedad: 21 años, 4 meses
Puntos: 0
problema con scroll de imagenes

hola a todos
tengo un problema con un scroll de imagenes. es bastante sencillo y tiene un boton de anterior y otro de siguiente. parte de una imagen inicial de un tamaño determinado, y el problema es que, el resto de las imágenes las adapta a ese tamaño, con lo que se deforman. he probado a poner a 100% la tabla que contiene las imágenes, pero no se adapta. tampoco lo hace si no le pongo ningún valor. qué puedo hacer? me tiene frito! dejo aqué el código completo por si alguien descubre algún error.
muchísimas gracias de antemano!


<html>

<head>
<title></title>
<script LANGUAGE="JavaScript">
var myPix = new Array("g1_1.jpg","g1_2.jpg","g1_3.jpg","g1_4.jpg", "g1_5.jpg")
var thisPic = 0
function processPrevious() {
if (document.images && thisPic > 0) {
thisPic--
document.myPicture.src=myPix[thisPic]
}
}
function processNext() {
if (document.images && thisPic < 4) {
thisPic++
document.myPicture.src=myPix[thisPic]
}
}</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="1.css" rel="stylesheet" type="text/css">
</head>

<body LINK="#666666" VLINK="#333333" ALINK="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="left">
<table BORDER="0" CELLPADDING="0" CELLSPACING="0">
<tr>
<td WIDTH="" height="">
<p ALIGN="left"><img SRC="g1_1.jpg" WIDTH="334" HEIGHT="400" VSPACE="0" HSPACE="0"
BORDER="0" LOOP="1" NAME="myPicture"></p></td>
</tr>
<tr>
<td height="16" align="center"><font size="2" FACE="Arial, Helvetica, sans-serif"><a HREF="javascript:processPrevious()">&lt;
anterior</a>&nbsp;| <a HREF="javascript:processNext()">siguiente &gt;</a></font></td>
</tr>
</table>
</div>
</body>
</html>
  #2 (permalink)  
Antiguo 08/01/2003, 22:53
Avatar de CORE
Usuario no validado
 
Fecha de Ingreso: abril-2002
Ubicación: Merida
Mensajes: 2.165
Antigüedad: 22 años, 1 mes
Puntos: 3
<html>

<head>
<title></title>
<script LANGUAGE="JavaScript">
var myPix = new Array("1.jpg","2.jpg","3.jpg","4.jpg","5.jpg")
var thisPic = 0
function processPrevious() {
if (document.images && thisPic > 0) {
thisPic--
document.myPicture.src=myPix[thisPic]
}
}
function processNext() {
if (document.images && thisPic < 4) {
thisPic++
document.myPicture.src=myPix[thisPic]
}
}</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body LINK="#666666" VLINK="#333333" ALINK="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="left">
<table width="385" BORDER="0" CELLPADDING="0" CELLSPACING="0">
<tr>
<td WIDTH="" height="225">
<p ALIGN="center"><img SRC="trasnparente.gif" VSPACE="0" HSPACE="0"
BORDER="0" LOOP="1" NAME="myPicture"></p></td>
</tr>
<tr>
<td height="16" align="center"><font size="2" FACE="Arial, Helvetica, sans-serif"><a HREF="javascript:processPrevious()">&lt;
anterior</a> | <a HREF="javascript:processNext()">siguiente &gt;</a></font></td>
</tr>
</table>
</div>
</body>
</html>
  #3 (permalink)  
Antiguo 09/01/2003, 04:19
 
Fecha de Ingreso: diciembre-2002
Mensajes: 102
Antigüedad: 21 años, 4 meses
Puntos: 0
hola, core
gracias por tu código, pero no entiendo muy bien cómo funciona. qués es lo que has visto mal del mío?
gracias
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:29.