Title and Status come to Life

[Total: 0    Average: 0/5]

This shows how to animate the status bar and the title bar.

Body Code:

<script>
		/////////////////////////////////////////////////////////
///////////////////***************************************************///////////////////
////>->->->->->->///**** Patrick M.'s Animated Status/Title Script ****///<-<-<-<-<-<////
///////////////////***************************************************///////////////////
		/////////////////////////////////////////////////////////

 	//////////////////////////////////////////////////////////////
	//To use the script do following things in HTML-source code://
	//make script tags wich include src="..PATH..windowts.js"  //
	//then make somewhere in your site a On....="setdiffst(     //
	//'Title text','Status text');titlex();statusx();           //
	//return true", when the action is done eg:Load the Title/  //
	//Status will make the animations you "drawed".		    //
	//////////////////////////////////////////////////////////////

var ttext="Enter text your window title  here.";
var stext="Enter text your window status here.";
var tout="";
var sout="";
var ttimes=0;
var stimes=0;
var saves=stext;
var frames=false;


//////////////////// |
// FRAMES request =====>
//////////////////// |/

function setts(tparam,sparam,framep,menup) {

ttext=tparam;
stext=sparam;
saves=sparam;
if (framep==true) { frames=true; }
if (framep==false){ frames=false;}

}

//////////////////// |
// MOUSE handler ======>
//////////////////// |/

function onmouses(sparamm) 	{ stext=sparamm;}
function outmouses()		{ stext=saves;	}

//////////////////// |
// STATUS Script ======>
//////////////////// |/

function statusx() {

stimes++;

	//You can make so much animations as you want but,
	//the last animation must include: stimes=0;

if (stimes==1)  { sout="----"+stext+"----"; }
if (stimes==2)  { sout=">--"+stext+"--<";   }
if (stimes==3)  { sout="->-"+stext+"-<-";   }
if (stimes==4)  { sout="-->"+stext+"<--";   }
if (stimes==5)  { sout="----"+stext+"----"; }
if (stimes==6)  { sout="     "+stext+"   "; }
if (stimes==7)  { sout="----"+stext+"----"; }
if (stimes==8)  { sout="     "+stext+"   "; }
if (stimes==9)  { sout="----"+stext+"----"; }
if (stimes==10) { sout="     "+stext+"   "; }
if (stimes==11) { sout="----"+stext+"----"; }
if (stimes==12) { sout="--<"+stext+">--";   }
if (stimes==13) { sout="-<-"+stext+"->-";   }
if (stimes==14) { sout="<--"+stext+"-->";   }
if (stimes==14) { stimes=0;		    }

window.status=sout;

setTimeout("statusx()",200);

}

//////////////////// |
// TITLE Script =======>
//////////////////// |/

function titlex() {

ttimes++;

	//You can make so much animations as you want but,
	//the last animation must include: ttimes=0;
	//IMPORTANT: ever make two title animations
	//one when frames are true one when false
	//because when you use the frames function and
	//There is no second function where is instead od
	//doument.title, parent.document.title the script will not work


if (ttimes==1)  { tout="----"+ttext+"----"; }
if (ttimes==2)  { tout=">--"+ttext+"--<";   }
if (ttimes==3)  { tout="->-"+ttext+"-<-";   }
if (ttimes==4)  { tout="-->"+ttext+"<--";   }
if (ttimes==5)  { tout="----"+ttext+"----"; }
if (ttimes==6)  { tout=". . ."+ttext+". . .";   }
if (ttimes==7)  { tout="----"+ttext+"----"; }
if (ttimes==8)  { tout=". . ."+ttext+". . .";   }
if (ttimes==9)  { tout="----"+ttext+"----"; }
if (ttimes==10) { tout=". . ."+ttext+". . .";   }
if (ttimes==11) { tout="----"+ttext+"----"; }
if (ttimes==12) { tout="--<"+ttext+">--";   }
if (ttimes==13) { tout="-<-"+ttext+"->-";   }
if (ttimes==14) { tout="<--"+ttext+"-->";   }
if (ttimes==14) { ttimes=0;		    }

if (frames==false) { document.title=tout;	}	 
if (frames==true)  { parent.document.title=tout;}


setTimeout("titlex()",200);

}
</script>
<a href="#" onmouseover="titlex();statusx();">start this going</a>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *