Log In · Register

 
Status Bar, Code?
OnTheWayDown
post Aug 31 2004, 11:05 PM
Post #1


AmyLeeRoxMyWorld
***

Group: Member
Posts: 92
Joined: Aug 2004
Member No: 44,051



Does anyone know the code for this status bar.... here it is ExAmple
 
 
Start new topic
Replies
sweetxsimplicity
post Aug 31 2004, 11:18 PM
Post #2


hi, my name is brianna! =]
*******

Group: Official Member
Posts: 5,764
Joined: Jun 2004
Member No: 22,114



Copy and paste into Website Stats. You may edit what you wish _smile.gif

CODE
<!-- begin code provided by createblog.com -->
<script language='javascript'>

// this code is from chatter.flooble.com
function getXName() {
for (var i = 0; i < document.links.length; i++) {
if(document.links[i].href.substring(0,38)=='http://www.xanga.com/private/home.aspx') {
var link = document.links[i];
var text = document.all ? link.innerText : link.text ? link.text : '';
return text;
break;
}}
return null;
}

xName = getXName();
// end of code from chatter.flooble.com

// the rest of this script was written by me
// (http://www.xanga.com/hotaru_01)

var pageTimer=0;
st=setTimeout;
var theText=1
var statusText='welcome to my xanga, '+xName+'.';
if(xName==null){
statusText='welcome to my xanga.'
}
var p1=0;
var p2=0;
st('doTimer()',1000);
doStatusBar();

function doTimer(){
pageTimer=pageTimer+1;
st('doTimer()',1000);
}

function doStatusBar(){
if(theText==2){
statusText='you, '+xName+', have been viewing this page for '+pageTimer+' seconds.';
if(xName==null){
statusText='You have been viewing this page for '+pageTimer+' seconds'
}

}
now=new Date();
window.status='-->> '+statusText.substr(p1,p2)+' '+'<<-- ';
if(p1+p2<statusText.length){
p2=p2+1;
} else{
if(p1<statusText.length){
p1=p1+1;
p2=p2-1;
} else{
p1=0;
p2=0;
if(theText==1){
theText=2;
}else{
theText=1;
statusText='PLEASE DON'T JOCK! -- edit this if you wish';
if(xName==null){
statusText='WELCOME TO MY XANGA -- edit this if you wish'

}
}
}
}
st('doStatusBar()',100);
}

</script>
<!-- end code provided by createblog.com -->
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: