<script language="JavaScript1.2">
var ts_line=new Array()
var ts_link=new Array()
ts_line[1]="...:::;;;;;Welcome to Code1k.com 1;;;;;:::..."
ts_line[2]="...:::;;;;;Thank for your visited;;;;;:::..."
ts_line[3]="...:::;;;;;;;Good luck for you;;;;;;;:::..."
ts_line[4]="...:::;;;;;;Thong diep cua ban 4;;;;;;:::..."
ts_line[5]="...:::;;;;;;Thong diep cua ban 5;;;;;;:::..."
ts_line[6]="...:::;;;;;;Thong diep cua ban 6;;;;;;:::..."
ts_line[7]="...:::;;;;;;Thong diep cua ban 7;;;;;;:::..."
ts_line[8]="...:::;;;;;;Thong diep cua ban n;;;;;;:::..."
var ts_fontcolor="#6699FF"
var ts_fontsize="10pt"
var ts_fontweight="normal"
var ts_fontfamily="Verdana"
var ts_bgcolor="transparent"
var ts_bordercolor="#cccccc"
var ts_bordersize="1px"
var ts_borderstyle="solid"
var ts_padding="5px"
var ts_width="350px"
var ts_height="50px"
var ts_delay="3000"
var ts_speed="35"
var ts_linespread="1.2"
var ts_rand=0
<!--
var longestmessage=1
for (i=2;i<ts_line.length;i++){
if (!ts_line[i] ) {ts_line[i] = ''; ts_link[i] = '#';}
if (ts_line[i].length>ts_line[longestmessage].length)
longestmessage=i
}
//Auto set scroller width
var tscroller_width=ts_line[longestmessage].length
lines=ts_line.length-1 //--Number of lines
counter123 = 0;
temp=""
nextchar=-1;
var shown = new Array();
for (i = 1; i <= lines; i++ ) {
shown[i] = 0;
}
function checkshown() {
var num = 0;
for (i = 1; i<= lines; i++){
if (shown[i]) num++;
}
if ((num > (lines - 2))||(lines < 2)) {
for (i = 1; i <= lines; i++ ) {
shown[i] = 0;
}
}
return;
}
if (ts_rand == 1) {
checkshown();
do{
nextline=Math.floor(Math.random() * (lines + 1)); //1;
} while (shown[nextline] != 0);
shown[nextline] = 1;
} else {
nextline = 1;
}
cursor="\\"
//if IE 4+ or NS6
if (document.all||document.getElementById){
document.write('<table style="width: '+ts_width+'; height: '+ts_height+';">')
document.write('<tr><td')
document.write(' style=" cursor:hand; background-color: '+ts_bgcolor+'; color: '+ts_fontcolor+'; font-family: '+ts_fontfamily+'; font-size: '+ts_fontsize+'; font-weight:'+ts_fontweight+'; border-color: '+ts_bordercolor+'; border-style: '+ts_borderstyle+'; border-width: '+ts_bordersize+'; padding: '+ts_padding+'; width: '+ts_width+'; height: '+ts_height+'; text-align:left; vertical-align:top; " onfocus="blur()" ')
document.write('<a onclick="document.location=this.href;" id="banner_xyz_scroller" ')
document.write(' style="line-height: '+ts_linespread+'; color: '+ts_fontcolor+'; font-family: '+ts_fontfamily+'; font-size: '+ts_fontsize+'; font-weight:'+ts_fontweight+'; " ')
document.write (' href="javascript: void(0);"></a>')
document.write('</td></tr></table>')
}
var scroller = document.getElementById("banner_xyz_scroller");
function animate(){
if (temp==ts_line[nextline] & temp.length==ts_line[nextline].length & nextline!=lines){
if (ts_link[nextline]) {
[You must be registered and logged in to see this link.] ts_link[nextline];
scroller.href="http://luyenthianhvan.org";
}
if (ts_rand == 1) {
checkshown();
do {
nextline = Math.floor(Math.random() * (lines + 1)); //nextline++;
}while (shown[nextline] != 0);
shown[nextline] = 1;
} else {
nextline++;
}
nextchar=-1;
scroller.innerHTML=temp;
temp="";
setTimeout("nextstep()",ts_delay)}
else if (nextline==lines & temp==ts_line[nextline] & temp.length==ts_line[nextline].length){
if (ts_link[nextline]) {
[You must be registered and logged in to see this link.] ts_link[nextline];
scroller.href="http://luyenthianhvan.org";
}
if (ts_rand == 1) {
checkshown();
do{
nextline= Math.floor(Math.random() * (lines + 1)); //1;
}while (shown[nextline] != 0);
shown[nextline] = 1;
} else {
nextline = 1;
}
nextchar=-1;
scroller.innerHTML=temp;
temp="";
setTimeout("nextstep()",ts_delay)}
else{
nextstep()}}
function nextstep(){
if (cursor=="\\"){
cursor="|"}
else if (cursor=="|"){
cursor="/"}
else if (cursor=="/"){
cursor="-"}
else if (cursor=="-"){
cursor="\\"
}
nextchar++;
temp+=ts_line[nextline].charAt(nextchar);
scroller.innerHTML=temp+cursor
setTimeout("animate()",ts_speed)}
//if IE 4+ or NS6
if (document.all||document.getElementById)
window.onload=animate
// -->
</script>