المكتبة المقروءة : التفسير : سورة الكهف |
المكتبة المقروءة : التفسير : سورة الكهف * تفسير سورة الكهف |
السلام خير ختام |
if (typeof(abanMain) == 'undefined')
{
abanMain = {};
abanMain.url = 'http://d1.openx.org/afr.php?zoneid=113478&cb=';
abanMain.useKeyword = false;
abanMain.keyword = '%D8%AA%D9%81%D8%B3%D9%8A%D8%B1+%D8%B3%D9%88%D8%B1%D8%A9+%D8%A7%D9%84%D9%83%D9%87%D9%81';
abanMain.width = '728px';
abanMain.height = 90;
abanMain.frameId = 'abanMainFrm';
abanMain.refreshTimeout = 20000;
abanMain.hideTimeout = 0;
abanMain.parseIntPx = function(s)
{
var val = s;
var pos = val.lastIndexOf('px');
if (pos >= 0)
val = val.substring(0, pos);
return parseInt(val);
}
abanMain.refresh = function()
{
var frm = document.getElementById(abanMain.frameId);
frm.src = frm.src;
}
abanMain.shiftDown = function()
{
var frm = document.getElementById(abanMain.frameId);
var h = abanMain.parseIntPx(frm.height);
if (h < abanMain.height)
{
frm.height = h + 10 + "px";
setTimeout('abanMain.shiftDown()', 20);
}
else
{
if (abanMain.refreshTimeout)
setTimeout('abanMain.refresh()', abanMain.refreshTimeout);
if (abanMain.hideTimeout)
setTimeout('abanMain.shiftUp()', abanMain.hideTimeout);
}
}
abanMain.shiftUp = function()
{
var frm = document.getElementById(abanMain.frameId);
var h = abanMain.parseIntPx(frm.height);
if (h > 1)
{
frm.height = h - 10 + "px";
setTimeout('abanMain.shiftUp()', 20);
}
else
{
frm.parentNode.removeChild(frm);
}
}
abanMain.checkKeyword = function(kw)
{
if (!abanMain.useKeyword)
return true;
if (!kw)
return false;
var words = kw.split('+');
if (words.length > 4)
return false;
words = kw.split('%20');
if (words.length > 4)
return false;
return true;
}
abanMain.show = function()
{
if (document.getElementById(abanMain.frameId) != null)
return false;
if (!abanMain.checkKeyword(abanMain.keyword))
return false;
var adDiv = document.createElement("div");
adDiv.style.display = 'block';
adDiv.style.position = "relative";
adDiv.style.padding = "0";
adDiv.style.margin = "0";
adDiv.style.top = "0";
adDiv.style.left = "0";
adDiv.style.width = "100%";
adDiv.style.zIndex = "99999";
adDiv.style.background = "transparent";
adDiv.style.textAlign = "center";
var url = abanMain.url;
if (this.useKeyword)
url += abanMain.keyword;
adDiv.innerHTML = '';
var el = document.body;
var child = el.firstChild;
el.insertBefore(adDiv, child);
}
abanMain.show();
}