// 1 )
{
init();
this.timeId = setInterval(init,displayInfo90.rollTime * 1000);
}
else
{
init();
}
},
show: function(){
this.rollset();
document.getElementById('fviewLayer90').innerHTML = ' '
+this.gf(this.imagePath(),"banner90",displayInfo90.wSize, displayInfo90.hSize);
},
bannerLink: function(){
return 'http://www.ilikeclick.com/track/click.php?dts_code='+frontBanner90[this.postion].dts+'&target_url='+frontBanner90[this.postion].url;
} ,
impLink: function(){
return 'http://ad.ilikeclick.com:6200/dtssuperbanner_refill?dts_code='+frontBanner90[this.postion].dts;
} ,
imagePath: function(){
return 'http://ad.ilikeclick.com:6200/dtssuperbanner?dts_code='+frontBanner90[this.postion].dts+'&ref_code=';
} ,
close: function(id){
document.getElementById(id).style.display = "none";
clearInterval(this.timeId);
},
rollset: function(){
if(displayInfo90.rolling == "random" && this.getCookie('front_banner90') != ""){
this.postion = this.getCookie('front_banner90');
}
if((frontBanner90.length - 1 ) == this.postion || (frontBanner90.length - 1 ) < this.postion)
{
this.postion = 0;
}
else
{
this.postion++;
}
if(displayInfo90.rolling == "random"){
this.setCookie('front_banner90', this.postion, '1');
}
},
set: function(){
if(displayInfo90.postion == 'self')
{
this.top = displayInfo90.postionHeight;
this.left = displayInfo90.postionWidth;
}
else
{
if (self.innerHeight) {
this.left = (screen.availWidth - displayInfo90.wSize) / 2;
this.top = (screen.availHeight - displayInfo90.hSize - (self.innerHeight/2))/2;
}else if (document.documentElement && document.documentElement.clientHeight) {
this.left = (screen.availWidth - displayInfo90.wSize) / 2;
this.top = (screen.availHeight - displayInfo90.hSize - (document.documentElement.clientHeight/2)) / 2;
}else if (document.body) {
this.left = (screen.availWidth - displayInfo90.wSize) / 2;
this.top = (screen.availHeight - displayInfo90.hSize - (document.body.clientHeight/2)) / 2;
}else
{
this.left = (screen.availWidth - displayInfo90.wSize) / 2;
this.top = (screen.availHeight - displayInfo90.hSize ) / 2;
}
}
},
setCookie: function(name, value, expire){
var exdate = new Date();
exdate.setDate(exdate.getDate()+expire);
document.cookie = name+ "=" +escape(value) + ((expire==null) ? "" : ";expires="+exdate.toGMTString());
},
getCookie: function(name){
if (document.cookie.length>0)
{
start = document.cookie.indexOf(name + "=");
if (start!=-1)
{
start = start + name.length + 1 ;
end = document.cookie.indexOf(";",start);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(start,end));
}
}
return "";
},
gf: function(u,d,w,h){
swf = ""
+ "";
return swf;
}
}
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function banner90_DoFSCommand(command, args) {
var bannerObj = isInternetExplorer ? document.all.banner90 : document.banner90;
if(command=="clickthrough")
{
openNewWindow90();
}
function openNewWindow90(){
window.open(ilikeDisplay90.bannerLink(),"blank");
}
}
function init()
{
ilikeDisplay90.show();
}
ilikeDisplay90.set();
document.write('
');
document.write('