Login       Friday, September 03, 2010    
Search
Articles
Queen Played By Old School Hardware
Get Ready For The End Of Windows OS As We Know It
Weezer Pork & Beans Video Is Awesome!!
Silverlight 2.0 Beta - The Long Wait Is Finally Over
Things Geeks Do When Bored
Bill Gates Nostalgia - Lest We Forget
Wooden Binary Adding Machine Using Marbles
GoDaddy Lets Their SSL Certificate Expire
Multitouch Display using Wiimote
Rapid Replication - Fabricating Things The Open Source Way
How Much Does The Universe Weigh?
Windbelt - Affordable Power From the Wind
I'm Liquidating My Old .NET Books
New Printer Translates Japanese to English
Cyberdelic ASCII Googles
If I Was A DotNetNuke Core Teamer What Would I Fix?
Our Next President
Bypass the Sony Rootkit
The Worlds Smallest Power Source
Drag-n-Drop Video
How to Open Your Visual Studio Projects from a Network.
Alienware Area-51 m9150
Iframe in AJAX
WPF/e is Named SilverLight
Every American Should (not!) Have A Chip Implant
Pyramid Mystery Discovered?
Tooth Cellphone Implants
Wireless Electricity is REAL! - finally
The Coolest USB Attachment
Tutorial how to install WPF/e on your Origami
Assembly Steps of the International Space Station
KodHedZ WPF/e Databinding Video Player Module
WPF/e Video Player DNN Module Tutorial
WPF/e within DotNetNuke and DataBinding
Getting a full url from dnn for your portal directory
Apple and Cisco go to bed over iPhone
Collapsible Control Panel
NASA has released the C# Source Code For Viewing Planets
World First Quantum Computer
Hackers Attack Key Net Traffic Computers
The Ultimate Anti-EULA
Naked SQL Server Chicks
The Need for Creating Tag Standards
Geeky Thing Of The Day - Pay Per Click Content
My New Super Uber Geek Blog
Collapsible Control Panel
Bookmark This Page  View This Page Fullscreen  Print This Page  View the comments for this page      View the RSS Feed Submit to del.icio.us Digg it Submit to Stumble Submit to Reddit Submit to Fark    Vote this page Up  Vote this page Down

The DotNetNuke Control Panel is generally positioned at the top of a page (although it can be positioned anywhere). It is displayed if a user has administrative rights to a page. After the initial layout of a page, the Control Panel is not often needed, but it continues to take up valuable screen real-estate. I saw a recent discussion on this issue in the ASP.net forums, and decided that it presents an interesting U.I. challenge. (Turns out it really isn’t much of a challenge.)

modeled after the Windows Terminal Services Client collapsible admin bar some months back. The bar is visible at the top, but rolls up after a few seconds. One of my design goals was to keep things really simple and not require any external images or the like.

Nik Kalyani's solution works as follows:

1) My script block needs to be inserted into any DNN skin, replacing the existing element with id=”ControlPanel”

2) It renders the Control Panel at the top of the page (coordinates 0,0). The Control Panel is initially hidden and is represented by a 5px tall red bar.

3) Move your mouse over the bar and the Control Panel is displayed over page content. This is an important difference from the standard Control Panel as the page content remains in place and does not scroll down.

4) When the mouse cursors is moved over the red bar one more time, the Control Panel smoothly rolls up.

Here is the code. Just paste it into a DNN skin ascx file, taking care to replace the element with id=”ControlPanel” that should already be present in the file.

<!-- Begin collapsible Control panel code -->

<script language="Javascript">

var rollUp = false;
function collapseElement(objId)
{
   o = document.getElementById(objId);
   h = parseInt(o.style.height);
   if (h > 6)
       {
           h--;
           o.style.height= h + "px";
           window.setTimeout("collapseElement('" + objId + "')",5);
       }
   else
       rollUp = false;
}


function displayElement(height)
{
    obj = document.getElementById("<%= ControlPanel.ClientID %>");

    if (rollUp)
       collapseElement("<%= ControlPanel.ClientID %>");
    else
    {
       rollUp = true;   
         obj.style.height = height;
    }
}
</script>

<style>

.ControlPanelHeader
{
        height:5px;
        width:100%;
        background-color:#cc0000;
        padding-top:5px;
        overflow:hidden
}

.RollUpControlPanel
{
         position:absolute;
        top:0px;
        left:0px;
        z-Index:1000;
        height:5px;
        width:100%;

        overflow: hidden;
}

</style>

<div class="RollUpControlPanel" id="ControlPanel" runat="server">
<div class="ControlPanelHeader" onmouseover="displayElement('110px')">&nbsp;</div>
</div>

<!-- End collapsible control panel code -->

 



 Latest Video

Get the Flash Player to see this video.

  
Search By Tag
Join This TagPlace
Your Email Address
 
Subscribe
    KodHedZ Software Team DiscHeads Disc Golf Super Uber Geek Disc Golf World News multistore Enterprise Architect Sports and so Much More More .net Modules Champion Plastic Disc Golf Outlet evopoint Affiliate Marketing Help Begin to Garden Backpack the World Tennis strokes and how to hit a fuzzy ball. In Profit List Building Jacob Bushnell Wood Recovery Inc.
Privacy Statement   Copyright 2007 by KodHedZ Software Development, Inc