Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
abigcityfalcon webforumsuser@macromedia.com #1
Toggle Display/Visibility
New to DHTML, I can't get the following simple function to work:
function displayToggle(id) {
var el = document.getElementById(id).style;
if(el.display == "none") {
el.display = "block";
}
else if(el.display == "block") {
el.display = "none";
}
}
The problem seems to be with the condition.
Any help would be greatly appreciated.
abigcityfalcon webforumsuser@macromedia.com Guest
-
AVI in fullscreen, how to toggle?
Guys and Girls! I have an AVI playing in my projector and if you click on it it goes fullscreen. If you are in fullscreen mode i want it to go... -
toggle audio on/off
I'm looking to put a button on a web page that will turn -on and off- an audio file, but not show the media player. Just an on/off button. I think... -
toggle sound on/off
OOOOOHHHHHHH! that helps me a lot!!!!!! Thanks -
Toggle palette visibility while text is selected
Hi. Some of you may think this is totally trivial but it is something I find really annoying: I often work with all the palettes and toolbars... -
Toggle Tools
When I select a tool with more than one option on the toolbar (i.e. Clone tool)via the mouse in PS 7.01, I always get the flyout for the other tools... -
Kappytown #2
Re: Toggle Display/Visibility
Here you go:
function displayToggle(id){
var el = document.getElementById(id).style;
if (el.display == "none"){
el.display = "block";
} else {
el.display = "none";
}
}
kappy
"abigcityfalcon" <webforumsuser@macromedia.com> wrote in message
news:bf7amf$i1a$1@forums.macromedia.com...> New to DHTML, I can't get the following simple function to work:
>
> function displayToggle(id) {
> var el = document.getElementById(id).style;
> if(el.display == "none") {
> el.display = "block";
> }
> else if(el.display == "block") {
> el.display = "none";
> }
> }
>
> The problem seems to be with the condition.
>
> Any help would be greatly appreciated.
>
>
Kappytown Guest



Reply With Quote

