وعليكم السلام ورحمة الله وبركاته
أخى الكريم
كل عام وأنتم بخير ،
للتعديل على مدة إبقاء الخبر العام ابحث بنموذج lcontent عن القيمة باللون الأحمر وعدل عليها للقيمة المناسبة
كود:
<!-- START BLOCK : newakhbar -->
tickercontents[{adad}]="{newkhabar}";
<!-- END BLOCK : newakhbar -->
var persistlastviewedmsg=1
var persistmsgbehavior="onload"
var tickdelay=10000
var currentmessage=0
function changetickercontent(){
if (crosstick.filters && crosstick.filters.length>0)
crosstick.filters[0].Apply()
crosstick.innerHTML=tickercontents[currentmessage]
if (crosstick.filters && crosstick.filters.length>0)
crosstick.filters[0].Play()
currentmessage=(currentmessage==tickercontents.length-1)? currentmessage=0 : currentmessage+1
var filterduration=(crosstick.filters&&crosstick.filters.length>0)? crosstick.filters[0].duration*1000 : 0
setTimeout("changetickercontent()",tickdelay+filterduration)
}
function beginticker(){
crosstick=document.getElementById? document.getElementById("akhbarticker") : document.all.akhbarticker
changetickercontent()
}
if (document.all||document.getElementById)
document.write('<div id="akhbarticker"></div>')
if (window.addEventListener)
window.addEventListener("load", beginticker, false)
else if (window.attachEvent)
window.attachEvent("onload", beginticker)
else if (document.all || document.getElementById)
window.onload=beginticker
</script>
</div>
</div>
</div>
<br>
<!-- END BLOCK : newakhbarbl -->
وللتعديل على مدة بقاء الأمسيات العامة
كود:
<!-- START BLOCK : newomsyahbl -->
<div id="blocktable">
<div class="blocktitle"><span style='float: right'><img border="0" src="{img_dir}/arroww.gif"></span>{omsyah}</div>
<div class="blockcontent">
<div class="ticker">
<script type="text/javascript">
var omtickercontents=new Array()
<!-- START BLOCK : newomsyah -->
omtickercontents[{adad}]="{newomsya}";
<!-- END BLOCK : newomsyah -->
var ompersistlastviewedmsg=1
var persistmsgbehavior="onload"
var omtickdelay=10000
var omcurrentmessage=0
function omchangetickercontent(){
if (omcrosstick.filters && omcrosstick.filters.length>0)
omcrosstick.filters[0].Apply()
omcrosstick.innerHTML=omtickercontents[omcurrentmessage]
if (omcrosstick.filters && omcrosstick.filters.length>0)
omcrosstick.filters[0].Play()
omcurrentmessage=(omcurrentmessage==omtickercontents.length-1)? omcurrentmessage=0 : omcurrentmessage+1
var omfilterduration=(omcrosstick.filters&&omcrosstick.filters.length>0)? omcrosstick.filters[0].duration*1000 : 0
setTimeout("omchangetickercontent()",omtickdelay+omfilterduration)
}
function ombeginticker(){
omcrosstick=document.getElementById? document.getElementById("omsyaticker") : document.all.omsyaticker
omchangetickercontent()
}
if (document.all||document.getElementById)
document.write('<div id="omsyaticker"></div>')
if (window.addEventListener)
window.addEventListener("load", ombeginticker, false)
else if (window.attachEvent)
window.attachEvent("onload", ombeginticker)
else if (document.all || document.getElementById)
window.onload=ombeginticker
</script>
</div>
</div>
</div>
<br>
<!-- END BLOCK : newomsyahbl -->
أطيب تحية