700;height:
100%">
--
functionpimsize(imgname,widths,heights){
varw;
varh;
//window.alert(picimg.width);
//window.alert(picimg.height);
w=imgname.width;
h=imgname.height;
if(imgname.width>widths){
do
w=w-1;
while(w>widths);
s=w/imgname.width;
//window.alert(s);
imgname.width=w;
imgname.height=h*s;
h=imgname.height
}
//window.alert(imgname.height);
//window.alert(heights);
if(imgname.height>heights){
do
h=h-1;
while(h>heights);
s=h/imgname.height;
//window.alert(s);
imgname.width=w*s;
imgname.height=heights;
}
}
functionadRotator(){};
adRotator.initialize=function(o)
{
//scriptbyblueDestiny
this._t=newArray();
this._l=newArray();
this._p=newArray();
this._i=newImage();
this._c=0;
this._f=false;
this._o=o;
this._timeout=null;
this._html="";
//configration.
//@imagewidth
//@imageheight
//@rotatorspeed
//@filtertype
this._w=450;
this._h=450;
this._s=4;
this._x=23;
returnthis;
};
adRotator.add=function(p,t,l){with(this)
{
_p.push(p);
_t.push(t);
_l.push(l);
}};
adRotator.load=function(){with(adRotator)
{
if(_i.readyState=='complete')
{
if(_p.length-1==_c)
{
_f=true;
_c=0;
window.clearTimeout(_timeout);
//getRef("AdRotator").innerHTML="complete";
adRotator.play();
}
else
{
_c++;
getRef(_o).innerHTML="totalimages"+_p.length+",loadingpicture"+_c+''+_i.readyState+"...";
_timeout=window.setTimeout(adRotator.load,10)
}
}
else
{
getRef(_o).innerHTML="totalimages"+_p.length+",loadingpicture"+_c+''+_i.readyState+"...";
_timeout=window.setTimeout(adRotator.load,10)
}
}};
adRotator.play=function(){with(adRotator)
{
if(_f)
{
_html="";
_html+='1pxsolid#333333;width:
100%;height:
100%"align=center>
9pt;font-family:
tahoma;font-weight:
bold;text-align:
Center">'
_html+='+'style="width:
'+_w+''
+';height:
"'+_h+'"'
+'>'
_html+='_l[_c]:
"javascript:
void(0);")+'">';
_html+='//+'width="'+_w+'"'
//+'height="'+_h+'"'
+'onload="pimsize(img,700,550)"'
+(_t[_c]?
'title="'+_t[_c]+'"':
'')
+'style="border:
1pxsolidblue;FILTER:
revealTrans(transition='+_x+',duration=1);"'
+'>';
_html+=(_t[_c]?
(''+(_c+1)+'.'+_t[_c]+''):
'');
_html+='';
_html+="";
_html+='';
for(vari=0;i<_p.length;i++)
_html+='+'style="border:
1pxsolid#333333;padding:
1px5px1px5px;height:
20px;text-align:
center;cursor:
'
+(_c==i?
('default;background-color:
red;"'):
'hand;"onclick="adRotator.select('+i+')"')
+'>'
+(i>8?
(i+1):
('0'+(i+1)))+'
';
_html+="
";
getRef(_o).innerHTML=_html;
getRef("rotatorPic").filters[0].Apply();
getRef("rotatorPic").filters[0].Play();
next();
}
else
{
_i.src=_p[_c];
adRotator.load();
}
}};
adRotator.next=function(){with(this)
{
(_p.length-1==_c)?
_c=0:
_c++;
_timeout=window.setTimeout(adRotator.play,_s*1000);
}};
adRotator.select=function(i){with(this)
{
window.clearTimeout(_timeout);
_c=i;
adRotator.play();
}};
adRotator.set=function(second){with(this)
{
window.clearTimeout(_timeout);
if((/\d+/).test(second)==true)
{
_s=second;
adRotator.play();
}
else
{
alert("mustbedigit!
")
adRotator.play();
}
}};
functiongetRef(id)
{
return(document.all?
document.all(id):
document.getElementById(id));
}
adRotator.initialize("AdRotator");
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.add("
adRotator.play();
//-->