im having trouble :(, status bars |
im having trouble :(, status bars |
![]()
Post
#1
|
|
Member ![]() ![]() Group: Member Posts: 22 Joined: Jan 2004 Member No: 205 ![]() |
i am trying to put one of those scroller status bar thingers on my xanga but it wont work. im not sure if i have too much stuff on my xanga?, but i didnt think i have as much as some other people have.. cause it is either that or my code is wrong, but im pretty sure that it is right. so im really confused and if someone could unconfuse me that would be great!
CODE <!-- begin code provided by createblog.com --> <script language="JavaScript"><!-- var current = 0 var x = 0 var speed = 100 var speed2 = 100 function initArray(n) { this.length = n; for (var i =1; i <= n; i++) { this[i] = ' ' } } typ = new initArray(4) typ[0]="[[ Imperfect cry, and scream in ecstasy" typ[1]="[[ So what befalls the flawless?" typ[2]="[[ Look what I've built, it shines so beautifully" typ[3]="[[ Now watch as it destroys me" function typewrite() { var m = typ[current] window.status = m.substring(0, x++) + " ]]" if (x == m.length + 1) { x = 0 current++ if (current > typ.length - 1) { current = 0 } setTimeout("typewrite()", speed2) } else { setTimeout("typewrite()", speed) } } typewrite() // --> </SCRIPT> <!-- end code provided by createblog.com --> another thing is if anyone knows the code to replace the links with something else.. can you replace the user name link? if you can, can someone tell me the link name that you would put in the code! thank again! |
|
|
![]() |
![]()
Post
#2
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 946 Joined: Jan 2004 Member No: 603 ![]() |
CODE <!-- begin code provided by createblog.com --> <!-- ##BEGIN SCROLLING --> <script LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- // Scrolling status Bar text Script // Being of Scrolling text in the Status bar var speed = 50 //decrease value to increase speed (must be positive) var pause = 2500 //increase value to increase pause var timerID = null var bannerRunning = false var ar = new Array() ar[0] = "Text1" ar[1] = "Text2" ar[2] = "Text3" ar[3] = "Text4" ar[4] = "Text5" var currentMessage = 0 var offset = 0 function stopBanner() { if (bannerRunning) clearTimeout(timerID) bannerRunning = false } function startBanner() { stopBanner() showBanner() } function showBanner() { var text = ar[currentMessage] if (offset < text.length) { if (text.charAt(offset) == " ") offset++ var partialMessage = text.substring(0, offset + 1) window.status = partialMessage offset++ timerID = setTimeout("showBanner()", speed) bannerRunning = true } else { offset = 0 currentMessage++ if (currentMessage == ar.length) currentMessage = 0 timerID = setTimeout("showBanner()", pause) bannerRunning = true } } // --> </SCRIPT> <!-- ##END SCROLLING --> <script LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- //this is to start the Scrolling Status Bar startBanner(); // --> </SCRIPT> <!-- end code provided by createblog.com --> Just edit text 1-5 ![]() |
|
|
![]()
Post
#3
|
|
Member ![]() ![]() Group: Member Posts: 22 Joined: Jan 2004 Member No: 205 ![]() |
thanks!!
![]() |
|
|
![]()
Post
#4
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 946 Joined: Jan 2004 Member No: 603 ![]() |
hehe, no problem
![]() |
|
|
![]() ![]() |