Title |
How to maximize a hidden box? |
Message Text |
There is a javascript function to minimize a box with a click. For example if you click on the "Editorial Controls" this minimize the following box:
_______________________________________________
Moderator Control Panel / Bulk edit/move/delete listings / Show/undelete deleted listings / Edit Category
_______________________________________________
Instead of minimize a box and hide its content I want to maximize a hidden box and its content.
How can I do this?
Not registered Guests also should can do this. (On my page I want to hide an "add-tags-box" and a "feed-box" on the link page).
This is the code in "displaylinks.tpl
<div class="boxtitle" onclick="minmax('modbox')"><div class="boxtitle" onclick="minmax('modbox')"><img src="{IMAGESURL}/icon_mod.png" > Editorial Controls</div></div>
This is the code in the javascriptheader :
function minmax(divid) { if (document.getElementById(divid).style.display == "block") document.getElementById(divid).style.display = "none"; else document.getElementById(divid).style.display = "block"; }
I tried several hours to solve this problem, but didn`t found the solution.
This have no effect:
function minmax(divid) { if (document.getElementById(divid).style.display == "block") document.getElementById(divid).style.display = "block"; else document.getElementById(divid).style.display = "none"; }
Please help me... |
Rating |
0/5 based on 0 votes.
|
Ownership |
Daniel |
Views |
268 views. Averaging 0 views per day. |
Similar Topics |
|
Submission Date |
Apr 25, 2010 - 12:45 PM |