Click here to Skip to main content
       

JavaScript

 
AnswerRe: Creating a vertical auto-hide toolbar Pinmemberjkirkerx27-Sep-12 18:06 
GeneralRe: Creating a vertical auto-hide toolbar Pinmembern.podbielski28-Sep-12 6:06 
GeneralRe: Creating a vertical auto-hide toolbar Pinmemberjkirkerx28-Sep-12 6:12 
GeneralRe: Creating a vertical auto-hide toolbar Pinmembern.podbielski28-Sep-12 8:43 
Ok. I understand that but why not replace those hardcoded styles with css classes and jQuery().addClass("xxx")?
Why you using selector: panel_ProductEditor_ToolBox_Next? Its obviously part of asp.net generated id. Why not set CssClass property just for selecting?
Than you have clear selector that will not change when you edit parent container(s)?
Why you setting both innerText and innerHtml? For simple string like "Close Panel" one from them is enough and they mean the same?
For simple case like in question this is achievable with single css rule:
 
.parent-container:hover .autohider{
 display:block;
}
.parent-container .autohider{
 display:none;
}
 
and html
<div class="parent-container">
<div class="autohider">
some hider content
</div>
</div>
 
I don't say that it's wrong. Just overcomplicated.
No more Mister Nice Guy... >: |

GeneralRe: Creating a vertical auto-hide toolbar Pinmemberjkirkerx28-Sep-12 9:05 
GeneralRe: Creating a vertical auto-hide toolbar Pinmembern.podbielski28-Sep-12 10:44 
GeneralRe: Creating a vertical auto-hide toolbar Pinmemberjkirkerx28-Sep-12 12:16 
GeneralRe: Creating a vertical auto-hide toolbar Pinmembern.podbielski28-Sep-12 12:51 
GeneralRe: Creating a vertical auto-hide toolbar Pinmemberjkirkerx29-Sep-12 19:24 
GeneralRe: Creating a vertical auto-hide toolbar Pinmembern.podbielski29-Sep-12 22:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 18 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid