•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 401,673 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,472 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 558 | Replies: 0
![]() |
| |
Hi, I have a script which collapses the menu, inside its frame.
PHP Code:
<script language="JavaScript">
function collapseMenu(sectionID) {
var obj = document.getElementById(sectionID);
if (obj.className == "Collapse") {
obj.className="DeCollapse";
}
else {
obj.className="Collapse";
}
}
</script>
Is it possible to have it expand and collapse outside the frame?
For example similar to the onMouseover drop-down menu. (Example: http://www.resellerspanel.com/)
I'm no good with flash so I'd like to keep to javascript and PHP.
PHP Code:
<script language="JavaScript">
function collapseMenu(sectionID) {
var obj = document.getElementById(sectionID);
if (obj.className == "Collapse") {
obj.className="DeCollapse";
}
else {
obj.className="Collapse";
}
}
</script>
Is it possible to have it expand and collapse outside the frame?
For example similar to the onMouseover drop-down menu. (Example: http://www.resellerspanel.com/)
I'm no good with flash so I'd like to keep to javascript and PHP.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Dynamic dropdown problem in firefox.
- Next Thread: how to manage start time with end time??


Hybrid Mode