Control Panel
HTML
<!DOCTYPE html>
<!--[if gte IE 8]><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" class="IE IE8 IE6+ IE7+ IE8+ IE8-"><![endif]-->
<!--[if IE 7]><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" class="IE IE7 IE67"><![endif]-->
<!--[if IE 6]><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" class="IE IE6 IE67"><![endif]-->
<!--[if !IE]>-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" class="W3C">
<!--<![endif]-->
<head>
<script type="text/javascript">var hsST=new Date().getTime();</script>
<title>Find Real Estate Listings, School and Neighborhood Information and More - Realtor.com® </title>
<meta name="keywords" content="real estate listings, real estate listing, homes for sale, home for sale, property, properties, school information, neighborhood information, stats, facts, realtors, realtor" />
<meta name="description" content="Get real estate listings, school and neighborhood information, and other important facts and stats you need to know before you move. It's all at Realtor.com." />
<link type="image/x-icon" href="/favicon.ico" rel="icon" />
<link type="image/x-icon" href="/favicon.ico" rel="shortcut icon" />
<!-- Inheriting Default Styles -->
<link rel='stylesheet' type='text/css' href='http://qap.static.move.com/lib/rdx/6.0.03/common.css' />
<link type="text/css" rel="stylesheet" href="http://qap.static.move.com/lib/rdx/6.0.03//homepage.css" />
<!-- Setting Control Panel Styles -->
<link type="text/css" rel="stylesheet" href="css/controlpanel.css" />
<meta name="server" content="QAZ02HTP110" />
</head>
<body id="ctl00_Body" class="rdc-skin yui-skin-sam tmpl_HomePage">
<div class="pageWrap">
<link type="text/css" rel="stylesheet" href="http://qap.static.move.com/lib/cb/1_0_24/redux.css">
<div id="cb_header">
<div...
CSS
/* --------------------------------------------------------------------
Date: 11/12/10
Author: Eric Ritchey <[email protected]>
Title: Control Panel Styles
Description: Creating a new dropdown interface for all Control Panel
Versions:
1.0 11/12/10 Initial Development
-------------------------------------------------------------------- */
/*
#mainColumn #pageContent .pageWrap {
box-shadow: 0 0 0 #fff;
-moz-box-shadow: 0 0 0 #fff;
-webkit-box-shadow: 0 0 0 #fff;
}
*/
#controlPanel {
min-height: 55px;
font-size: 120%;
background-color: #d9e7f2;
border-bottom: 1px solid #73a5ca;
box-shadow: 0px 0px 5px 2px #99b3c7;
-moz-box-shadow: 0px 0px 5px 2px #99b3c7;
-webkit-box-shadow: 0px 0px 5px 2px #99b3c7;
}
#controlPanel a.icon {
font-weight: bold;
}
#controlPanel li {
position: relative;
min-width: 75px;
margin: 0;
padding: 0 10px;
float: left;
text-align: center;
border-right: 1px dotted #73a5ca;
}
#controlPanel li li {
min-width: 0;
margin: 0;
padding: 0;
float: none;
text-align: left;
border-right: 0;
}
#controlPanel li li,
#controlPanel li li p { font-weight: normal; }
#controlPanel li.floatRight {
float: right;
border-right: 0;
border-left: 1px dotted #73a5ca;
}
#controlPanel li.selected,
#controlPanel li.previous { border-right: 1px solid #73a5ca; }
#controlPanel li.selected { background-color: #fff; }
#controlPanel li a,
#controlPanel li.selected .menu { display: block; }
#controlPanel li a {
width: 100%;
height: 25px;
padding-top: 30px;
}
#controlPanel li li a {
height: auto;
padding: 0;
margin: 0;
}
#controlPanel .menu {
min-width: 210px;
position: absolute;
top: 55px;
left: -60px;
padding: 15px 20px;
z-index: 200;
display: none;
text-align: left;
border: 1px solid #ccc;
background: #fff;
box-shadow: 0px 8px 17px #666;
-moz-box-shadow: ...
JavaScript
$(document).ready(function() {
$('#controlPanel a.icon').click(function(){
// -- hide previous control panel menus
$('#controlPanel li').removeClass('selected');
$('#controlPanel li').removeClass('previous');
// -- show current control panel menu
$(this).parent().addClass('selected');
$(this).parent().prev().addClass('previous');
// prevent the dashboard click to take the user there.
// But we still want to add a proper URL (even if it's
// just an anchor to somewhere else in the page), because
// we don't want to count on Javascript being enabled.
return false;
});
});