أخي " أشكال " ...
أنا خزنت صفحة الديوان .. وفتحتها بالفرونت بيج ( html ) ... ووجدت هذا الكود :
كود:
<SCRIPT language=JavaScript type=text/javascript>
<!--
function checkBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?2:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ns6)
return this
}
bw=new checkBrowser()
timSpeed=50
contHeight=100
function makeScrollObj(obj,nest){
nest=(!nest) ? '':'document.'+nest+'.'
this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
this.height=bw.ns4?this.css.document.height:this.el.offsetHeight
this.top=b_gettop
return this
}
function b_gettop(){
var gleft=(bw.ns4 || bw.ns5) ? eval(this.css.top):eval(this.css.pixelTop);
return gleft;
}
var scrollTim;
var active=0;
function scroll(speed){
clearTimeout(scrollTim)
way=speed>0?1:0
if((!way && oScroll.top()>-oScroll.height+contHeight) || (oScroll.top()<0 && way)){
oScroll.css.top=oScroll.top()+speed
scrollTim=setTimeout("scroll("+speed+")",timSpeed)
}
}
function noScroll(){
clearTimeout(scrollTim)
}
function scrollInit(){
oScroll=new makeScrollObj('divScroll','divContent')
oScroll.css.visibility='visible'
}
onload=scrollInit;
//-->
</SCRIPT>
...
وفي كود السهمين :
كود:
<A onmouseover=scroll(4) onmouseout=noScroll() href="http://www.aldewanonline.com/#"><IMG height=21
src="AL Dewan Online_files/sahma.gif" width=27 border=0></A>
السهم الآخر :
كود:
<A onmouseover=scroll(-4) onmouseout=noScroll()
href="http://www.aldewanonline.com/#"><IMG height=20
src="AL Dewan Online_files/sahm2a.gif" width=27 border=0></A>
-----------
متأسف إني ما جربتها عشان أشرح لك إياها بالتفصيل الممل ... لكن إذا فضي أحاول فيها إن شاء الله ....
وأنصحك بالاصلاع على View Source ... لصفحة الديوان ..
أتمنى لك الخير
في أمان الله