WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Minor JavaScript/DHTML question, Guillermo, September 3, 2003
     Re:Minor JavaScript/DHTML question, dreadcast, 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, Erik Arvidsson, September 5, 2003

Subject: Re:Minor JavaScript/DHTML question From: Erik Arvidsson Date: September 5, 2003
The problem is that IE returns the full (absolute) URI when you read the src property. You should use some other test to do the changing of the images. Can't you use the display as the test for the image src?

function ColapsarPanel(sTRname) {
var cont = document.getElementById(sTRname);
var img = document.getElementById(sIMGname);
if (cont.style.display == "block") {
cont.style.display = "none";
img.src = sExpandImageSrc;
}
else {
cont.style.display = "block";
img.src = sCollapseImageSrc;
}
}

erik



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