ZOOM y cambiar foto en web...

anvitel
14 de Septiembre del 2004
En mi pagina contactos (tecla) aparece un zoom que solo se puede cambiar foto si cambio html de pagina.
http://www.geocities.com/anvitel/
??como se podria hacer para que cualquier usuario cambie foto??
El caso es que el ZOOM que cargue en la pagina contactos funciona solo con la foto que cargue yo en html.
Quisiera poder cargar y cambiar la foto del javascript del zoom.
?como se podria hacer¿¿¿
No se a lo que te refieres de theprocactus.....solome refiero a hacer funcionar el zoom en red con la foto de otras webs o de la mia,
El script de zoom
<FONT face="Arial, Helvetica, sans-serif" color=#ffff66 size=4><B><A
onmouseover=javascript:resume_zoom();zoom_in();
onmouseout=javascript:pause_zoom();
href="http://www.geocities.com/anvitel" target=_blank><FONT
size=5>&nbsp;+Z00M&nbsp;</FONT></A>&nbsp;• <A
onmouseover=javascript:resume_zoom();set_original();
onmouseout=javascript:pause_zoom();
href="http://www.geocities.com/anvitel" target=_blank><FONT
size=4>&nbsp;Origen&nbsp;</FONT></A> • <A
onmouseover=javascript:resume_zoom();zoom_out();
onmouseout=javascript:pause_zoom();
href="http://www.geocities.com/anvitel" target=_blank><FONT
size=3>&nbsp;-ZooM&nbsp;</FONT></A> <BR>Foros: Plantas, Cactus,
Jardinería, Intercambios, Asociaciones.</B></FONT>
<SCRIPT language=JavaScript>
<!--
var img_path="cactus/corymacromflor16.jpg";
var top_pos=220;
var left_pos=20;
var max_width=1100;
var min_width=50;
var time_length=2;
var step=2;
document.write('<div style="position:absolute; top:'+top_pos +'; left:'+left_pos+'"><img src="'+img_path +'" border="1" name="z"></div>');
img_act_height=z.height;
img_act_width=z.width;
var original_time=time_length;
function zoom_out()
{ if(z.width==0)
{ z.border=0; }
if(z.width!=0)
{ if(z.width>min_width)
{ z.width-=step;
z.height=Math.round(z.width*( (img_act_height)/(img_act_width) ) );
setTimeout("zoom_out()",time_length); }
else
{ window.alert('Minimo ZooM.'); }
} }
function zoom_in()
{ if(z.width==0)
{ z.border=0; }
if(z.width!=0)
{ if(z.width<max_width) { z.width+=step;
z.height=Math.round(z.width*( (img_act_height)/(img_act_width) ) );
setTimeout("zoom_in()",time_length); }
else { window.alert('MAXIMO ZOOM.'); }
} }
function resume_zoom(){ time_length=original_time; }
function pause_zoom(){ time_length=10000000000;}
function set_original()
{ z.height=img_act_height; z.width=img_act_width; }
//-->
</SCRIPT>

La variable img_path="cactus/corymacromflor16.jpg"; se puede poner la foto que quieras, y la direccion http://www.... se marca en la linea (funciona)

document.write('<div style="position:absolute; top:'+top_pos +'; left:'+left_pos+'"><img src="http:www..... '+img_path +'" border="1" name="z"></div>');
A ver que formulario o java me puede cambiar esto sobre la web sin andar rediseñando la foto, sino cargandola....
un saludo.
_________________
http://www.geocities.com/anvitel
_________________