Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Glitch001 #1
Using a jump-menu to display a div layer?
I want to show you some code that uses checkboxes to display or hide a layer. I
would like to be able to make the same thing using a jump-menu instead of the
radio buttons. I'm not at all handy with javascript, so my efforts to try to
change this code has been futile. Can anyone help. Here is the code. It's short
so copy it and play with it.
I appreciate any help.
<html><head>
<script>
function toggle(theDiv){
var elem = document.getElementById(theDiv);
elem.style.display = (elem.style.display == "none")? "" : "none";
}
//-->
</script>
</head>
<body>
<form name="form1">
1<INPUT id="Checkbox1" type="checkbox" name="Checkbox1"
onClick='toggle("table1")'>
2<INPUT id="Checkbox1" type="checkbox" name="Checkbox1"
onClick='toggle("table2")'>
3<INPUT id="Checkbox1" type="checkbox" name="Checkbox1"
onClick='toggle("table3")'>
4<INPUT id="Checkbox1" type="checkbox" name="Checkbox1"
onClick='toggle("table4")'>
5<INPUT id="Checkbox1" type="checkbox" name="Checkbox1"
onClick='toggle("table5")'>
</form>
<div id="table1" style='display: none;'>
table 1
</div>
<div id="table2" style='display: none;'>
table 2
</div>
<div id="table3" style='display: none;'>
table 3
</div>
<div id="table4" style='display: none;'>
table 4
</div>
<div id="table5" style='display: none;'>
table 5
</div>
</body>
</html>
-----------------
Chris
Glitch001 Guest
-
jump menu question
I have a jump menu that doesn't work properly all i want is to select a menu and press go and opens in a new window and then the menu goes back... -
java for jump menu?
I have used the Jump Menu tool in Dreamweaver to create a two-item jump menu. I get a javascript error -- Object Expected -- when I try to select an... -
jump menu help
I am useing Dreamweaver Mx and tring to insert a jump menu into my page. I want the link to open up in a new window. I cant seem to get it to do... -
jump to menu at end of movie
I have a menu that links to 5 movies. I need to jump back to the menu when each movie ends. How do I do that? Thanks. -
How do you set the width of a jump menu?
Mine keep coming up too shot to diplay all the text characters -- cuts them off and substitutes ellipsis. -
Murray *TMM* #2
Re: Using a jump-menu to display a div layer?
[url]http://www.mickweb.com/javascript/forms/jumpmenus/jumplayer.html[/url]
[url]http://www.mickweb.com/javascript/forms/jumpmenus/jumplayer2.html[/url]
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"Glitch001" <webforumsuser@macromedia.com> wrote in message
news:ceot8i$bgj$1@forums.macromedia.com...layer. I> I want to show you some code that uses checkboxes to display or hide athe> would like to be able to make the same thing using a jump-menu instead ofto> radio buttons. I'm not at all handy with javascript, so my efforts to tryshort> change this code has been futile. Can anyone help. Here is the code. It's> so copy it and play with it.
> I appreciate any help.
>
> <html><head>
> <script>
> function toggle(theDiv){
> var elem = document.getElementById(theDiv);
> elem.style.display = (elem.style.display == "none")? "" : "none";
> }
>
> //-->
> </script>
> </head>
> <body>
> <form name="form1">
> 1<INPUT id="Checkbox1" type="checkbox" name="Checkbox1"
> onClick='toggle("table1")'>
> 2<INPUT id="Checkbox1" type="checkbox" name="Checkbox1"
> onClick='toggle("table2")'>
> 3<INPUT id="Checkbox1" type="checkbox" name="Checkbox1"
> onClick='toggle("table3")'>
> 4<INPUT id="Checkbox1" type="checkbox" name="Checkbox1"
> onClick='toggle("table4")'>
> 5<INPUT id="Checkbox1" type="checkbox" name="Checkbox1"
> onClick='toggle("table5")'>
> </form>
> <div id="table1" style='display: none;'>
> table 1
> </div>
> <div id="table2" style='display: none;'>
> table 2
> </div>
> <div id="table3" style='display: none;'>
> table 3
> </div>
> <div id="table4" style='display: none;'>
> table 4
> </div>
> <div id="table5" style='display: none;'>
> table 5
> </div>
> </body>
> </html>
> -----------------
> Chris
>
Murray *TMM* Guest
-
Glitch001 #3
Re: Using a jump-menu to display a div layer?
I do love the Web. Thank you whoever you are.
Chris
Glitch001 Guest
-
Murray *TMM* #4
Re: Using a jump-menu to display a div layer?
Thank Mick! 8)
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"Glitch001" <webforumsuser@macromedia.com> wrote in message
news:ceqm4v$a03$1@forums.macromedia.com...>
> I do love the Web. Thank you whoever you are.
> Chris
Murray *TMM* Guest



Reply With Quote

