Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Images and Links in Netscape


Message #1 by Javier Romero <javromara@t...> on Mon, 11 Dec 2000 12:56:52 +0100
  Hello
   I  have  a little proble. I have made a banner rotating
   system for my page in JavaScript.
   The  probles  is  that Netscape donīt aloow me to chage
   the  src  property  of  document.images. i can't change
   also  the  href  property  of  document.link. How can i
   solve this prolem.

   The code is
function intercambia()
{
conta=17;
aux=Math.floor(Math.random()*conta);
document.images[1].src=imagenes[aux];
document.links[1].href=enlaces[aux];
}
where  imagenes  and  enlaces  are two arrays where i have
annotated the urls for the banners.
Thanks

-- 
Un Saludo
Javier Romero  javromara@a...
Stardust: http://www.stardustcf.com



  Return to Index