WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Re:Minor JavaScript/DHTML question, dreadcast, September 3, 2003
     Re:Minor JavaScript/DHTML question, Guillermo, September 3, 2003
         Re:Minor JavaScript/DHTML question, Guilherme Blanco, September 3, 2003
             Re:Minor JavaScript/DHTML question, Guillermo, September 3, 2003
                 Re:Minor JavaScript/DHTML question, Guillermo, September 3, 2003
                     Re:Minor JavaScript/DHTML question, Guilherme Blanco, September 3, 2003
         Re:Minor JavaScript/DHTML question, dreadcast, September 3, 2003
             Re:Minor JavaScript/DHTML question, Guilherme Blanco, September 3, 2003
                 Re:Minor JavaScript/DHTML question, dreadcast, September 3, 2003

Subject: Re:Minor JavaScript/DHTML question From: dreadcast Date: September 3, 2003

I do not consider 4.x browsers, so using ID for images is not a problem.

From: Guilherme Blanco
Sent: September 3, 2003
Subject: Re:Minor JavaScript/DHTML question

You should use document.images instead of document.getElementById, otherwise, you'll have to stay using ID for images.

[]s,
Guilherme Blanco

From: dreadcast
Sent: September 3, 2003
Subject: Re:Minor JavaScript/DHTML question

function CambiarFlecha(sIMGname)
img1 = new image(); 
img1.src = 'imagenes/layout/paneles/up.gif';
etc...
{
 if (document.getElementById(sIMGname).src == "imagenes/layout/paneles/up.gif")
  document.getElementById(sIMGname).src = "imagenes/layout/paneles/down.gif";
 
 else
  document.getElementById(sIMGname).src = "imagenes/layout/paneles/up.gif";
}

should work like this...

From: Guillermo
Sent: September 3, 2003
Subject: Re:Minor JavaScript/DHTML question

Sorry, I don't understand this. Where do I add this code?


 

From: dreadcast
Sent: September 3, 2003
Subject: Re:Minor JavaScript/DHTML question

debe crear una imagen en javascript como esto :

img1 = new image(); 
img1.src = 'path/to/image.ext';

So that the image is in the browser cache.








Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX