ضع هذا الكود اسفل الصفحة كما هو مبين
كود PHP:
<html>
<head>
<title></title>
<script type="text/javascript">
$(document).ready(function(){
var index = new Array();
var items = new Array();
var maxIndex = new Array();
var minIndex = new Array();
function populateArrays(a) {
for(i=0; i<a.length; i++) {
items[i] = $(a[i]).parent().parent().find("div.body div.more ul li");
maxIndex[i] = items[i].length - 1;
minIndex[i] = 1;
index[i] = maxIndex[i] - $(a[i]).parent().parent().find("div.body div.more ul li.hide").length;
}
}
populateArrays($(".more-ctrl").get());
$(".more-ctrl .plus").bind('click', function(e) {
var i = $(".more-ctrl .plus").index(this);
e.preventDefault();
if (index[i] <= maxIndex[i]) {
index[i]++;
if (index[i] > maxIndex[i]) index[i] = maxIndex[i];
$(items[i][index[i]]).css('display', 'list-item');
}
});
$(".more-ctrl .minus").bind('click', function(e) {
var i = $(".more-ctrl .minus").index(this);
e.preventDefault();
if (index[i] >= minIndex[i]) {
if (index[i] < minIndex[i]) index[i] = minIndex[i];
$(items[i][index[i]]).css('display', 'none');
index[i]--;
}
});
});
</script>
</head>
<body>
<div style="top:0; left:0; width:51; position: absolute;" id="myDiv">
<table border="0">
<tr><td>
<img src="http://paltimes.net/arabic/data/ads/sms.gif" border='0'></a>
</td></tr>
<tr><td style="border-top:5px red solid;border-bottom:5px red solid;">
<a href="http://paltimes.net/arabic/data/file/setup.exe" >
<img src="http://paltimes.net/arabic/data/ads/sms3.gif" border='0'></a>
</td></tr>
</table>
<tr><td><a href="#" onClick="getElementById('myDiv').style.display='none';" style="color:#00000;">إغلاق</a></td></tr></div>
</body>
</html>