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: Minor JavaScript/DHTML question From: Guillermo Date: September 3, 2003

Check http://cdbaires.com/sitio/Home.asp. The site's sidebar has dynamic panels wich collapse down and up when you click the "down" arrow or the panel's header itself. What I need to do is to have this "down" arrow change to an "up" arrow when the content is displayed, and back to "down" when it's hidden. Also, cross-browser compatibility would be nice (currently only works with IE).

I'm using a simple script to get this done:

function ColapsarPanel(sTRname)
{
if (document.all[sTRname].style.display == "block")
document.all[sTRname].style.display = "none";

else
document.all[sTRname].style.display = "block";
}

What else should I add to the script in order to do what I need?

Thanks a lot!




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