I can not see any tab changing
The script you have isolated changes the document title
this will not be visible on the page
this may be what you are looking for
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<style type="text/css">
/*<![CDATA[*/
#text {
width:100%;height:50px;background-Color:#FFFFCC;text-Align:center;font-Size:20px;
}
/*]]>*/
</style></head>
<body>
<div id="text" onmouseover="zxcTextRotator.Pause('text');" onmouseout="zxcTextRotator.Auto('text');" ></div>
<script type="text/javascript">
/*<![CDATA[*/
var zxcTextRotator={
Auto:function(id,ms){
var oop=this,o=oop['zxc'+id];
o?o.to=setTimeout(function(){ oop.rotate(o); },ms||200):null;
},
Pause:function(id){
var o=this['zxc'+id];
o?clearTimeout(o.to):null;
},
Init:function(o){
var id=o.ParentID,a=o.TextArray,h=o.HoldDelay,c=o.Cycles,p=document.getElementById(id);
if (p&&a instanceof Array){
o.id=id;
o.p=p;
o.a=a;
o.h=typeof(h)=='number'&&h>500?h:5000;
o.c=typeof(c)=='number'&&c>0?c:true;
o.n=0;
o.m=0;
this['zxc'+id]=o;
o.p.innerHTML=o.a[o.n];
this.Auto(o.id,o.h);
}
},
rotate:function(o){
o.n==o.a.length-1?o.m++:null;
o.n=++o.n%o.a.length;
o.p.innerHTML=o.a[o.n];
o.c===true||o.m<o.c?this.Auto(o.id,o.h):null;
}
}
zxcTextRotator.Init({ // call after the DIV has loaded
ParentID:'text',
TextArray:[
'THE REMOTE DOCTOR',
'Est in 2010',
'Honda Key Programming',
'Mobile Service',
'Located In W-S-M',
'07899 827427'
],
HoldDelay:2000,
Cycles:2
})
/*]]>*/
</script>
</body>
</html>
Bookmarks