<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> آکاردئونی</title>
<style type="text/css">
body{
font-family:Tahoma, Geneva, sans-serif;
font-size:12px;
direction:rtl;
}
.proboxtitle, .proboxcontent, .proboxmain{
position:relative;
}
.proboxtitle{
width:200px;
height:25px;
overflow:hidden;
text-align:right;
display:block;
cursor:pointer;
background-color:#666;
color:#FFF;
direction:rtl;
padding:4px;
text-align:center;
border-bottom:1px dashed #CCC;
}
.proboxcontent{
width:200px;
height:auto;
overflow:hidden;
display:none;
background-color:#F8F8F8;
padding:4px;
direction:rtl;
}
.proboxmain{
border:1px solid #F0F0F0;
width:208px;
}
</style>
<script type="text/javascript">
//<![CDATA[
var contentHeight = 34;
var TimeToSlide = 300.0;
var openprobox = '';
function runprobox(index){
var divID = "probox" + index + "content";
if(openprobox == divID){
divID = '';
}
setTimeout("animate(" + new Date().getTime() + "," + TimeToSlide + ",'" + openprobox + "','" + divID + "')", 33);
openprobox = divID;
}
function animate(lastTick, timeLeft, closingId, openingId){
var curTick = new Date().getTime();
var elapsedTicks = curTick - lastTick;
var opening = (openingId == '') ? null : document.getElementById(openingId);
var closing = (closingId == '') ? null : document.getElementById(closingId);
if(timeLeft <= elapsedTicks){
if(opening != null){
opening.style.height = contentHeight + 'px';
}
if(closing != null){
closing.style.display = 'none';
closing.style.height = '0px';
}
return;
}
timeLeft -= elapsedTicks;
var newClosedHeight = Math.round((timeLeft/TimeToSlide) * contentHeight);
if(opening != null){
if(opening.style.display != 'block'){
opening.style.display = 'block';
}
opening.style.height = (contentHeight - newClosedHeight) + 'px';
}
if(closing != null){
closing.style.height = newClosedHeight + 'px';
}
setTimeout("animate(" + curTick + "," + timeLeft +",'" + closingId + "','" + openingId + "')", 33);
}
//]]>
</script>
</head>
<body>
<noscript>
جاوا اسکریپت در مرورگر شما غیرفعال است یا پشتیبانی نمی شود!<br />
</noscript>
<div id="proboxmain" class="proboxmain">
<!-- منوی شماره 1 -->
<div class="proboxtitle" onclick="runprobox(1);">
تیتر باکس 1
</div>
<div id="probox1content" class="proboxcontent">
محتوای باکس آکاردئونی 1
</div>
<!-- منوی شماره 2 -->
<div class="proboxtitle" onclick="runprobox(2);">
تیتر باکس 2
</div>
<div id="probox2content" class="proboxcontent">
محتوای باکس آکاردئونی 2
</div>
<!-- منوی شماره 3 -->
<div class="proboxtitle" onclick="runprobox(3);">
تیتر باکس 3
</div>
<div id="probox3content" class="proboxcontent">
محتوای باکس آکاردئونی 3
</div>
<!-- منوی شماره 4 -->
<div class="proboxtitle" onclick="runprobox(4);">
تیتر باکس 4
</div>
<div id="probox4content" class="proboxcontent">
محتوای باکس آکاردئونی 4
</div>
</div>
<hr />
بر روی یکی از آیتم ها کلیک کنید
</body>
</html>