|
-
Quick fix...plz help
I am writing up this page and tryin some new stuff. I have 4 "windows" (floating
divs) that are all moveable and hideable/showable ... I want to make a minimize
button and a maximize button. When clicked (minimize) the floating div layer
will resize height to 25, and when maxed back to 150. sounds simple, but
i cant get them to resize.
heres the code: *note the div tags for the floating windows are wrapped
around a table.
function maxWinsA() {
if (navigator.appName == "Netscape") {
document.layers["LYRtopIssuesA"].height = "150";
} else {
document.all.LYRtopIssuesA.style.height = "150";
}
}
function minWinA() {
if (navigator.appName == "Netscape") {
document.layers["LYRtopIssuesA"].height = "25";
} else {
document.all.LYRtopIssuesA.style.height = "25";
}
}
and then up in the div window i have &qout<a href="javascript:maxWinA();">[_]</a>
and &qout<a href="javascript:minWinA();">_</a>&qout;
Thanks in advance
-Brad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks