<script>function bozorg(){
if(document.getElementById('fixright').style.right='-148.2px'){
document.getElementById('fixright').style.right='0px';
document.getElementById('openandclose').style.backgroundPosition='20px 0px';
document.getElementById('headlogo').style.margin-Right='160px';
}
if(document.getElementById('fixright').style.right='0px'){
document.getElementById('fixright').style.right='-148.2px';
document.getElementById('openandclose').style.backgroundPosition='40px 0px';
document.getElementById('headlogo').style.margin-Right='none';
}
}
</script>
<div class="fixright" style="right:-148.2px;">
<div class="openandclose" onclick="bozorg();" style="background-position: 40px 0px;"></div>
<div class="iconbox">
<div class="logo">
<img src="" id="dispanel" alt="" title="" height="100" width="30%">
<br><center style=""><a href="" title="profile"></a></center>
</div>
<ul class="hredar">
<li style="margin-right: 4px;">
<span onclick="Location('لینک');" class="i-home">عنوان</span>
<hr class="hrred">
<ol>
<li onclick="Location('لینک');" title="text">متن</li>
</ol>
</li>
<hr class="hrwiht">
</ul>
</div>
</div>
<script>
function Location(url){
window.location=url;
}
</script>
<script>
$(document).ready(function(){
$('.openandclose').click(function(){
if($('.fixright').css('right')=='-148.2px'){
$('.fixright').animate({right:'0px'});
$('.openandclose').css({backgroundPosition:'20px 0px'});
$('#headlogo').animate({marginRight:'160px'});
}
else{
$('.fixright').animate({right:'0px'});
$('.openandclose').css({backgroundPosition:'40px 0px'});
$('#headlogo').animate({marginRight:'none'});
}
});
</script>