![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/09/2006, 08:52
|
![Avatar de spider_boy](http://static.forosdelweb.com/customavatars/avatar49752_2.gif) | | | Fecha de Ingreso: diciembre-2003 Ubicación: Chile
Mensajes: 1.855
Antigüedad: 21 años, 2 meses Puntos: 89 | |
A ver... Nosé como funciona ASP... y tampoco creo acertar con este código..
Lo hago suponiendo que tienes links con los registros...
<a href="javascript:void(0);" onClick="changeImg('C3');">Imagen 3</a>
<a href="javascript:void(0);" onClick="changeImg('C2');">Imagen 2</a>
<a href="javascript:void(0);" onClick="changeImg('C1');">Imagen 1</a>
// Imagen
<img src="" width=x height=x id="imagen">
// Javascript
function changeImg(img)
{
var img = document.getElementById('imagen');
switch(img)
{
case 'C3': img.src = "URL_IMAGEN_C3"; break;
case 'C2': img.src = "URL_IMAGEN_C2"; break;
case 'C1': img.src = "URL_IMAGEN_C1"; break;
}
}
Algo así creo que sería... Espero te sirva =). Nos vemos =) |