BrowsEr mEsSaGe, BackGRouNd BoX, tracKin visiTorZ |
BrowsEr mEsSaGe, BackGRouNd BoX, tracKin visiTorZ |
![]()
Post
#1
|
|
Member ![]() ![]() Group: Member Posts: 29 Joined: Jan 2004 Member No: 798 ![]() |
Hi agaIn...anyways i have 3 questions this time. how do you get your borwser message at the bottom come out like t h I s but with different mesaages every time? anD how do you get that box that surrounds her entire xanga <same link>? and my last question is is there a way to track visitors? thanx!
*jeL* |
|
|
![]() |
![]()
Post
#2
|
|
![]() yoOh_n1c3 ![]() Group: Member Posts: 4 Joined: Feb 2004 Member No: 3,749 ![]() |
what do yoOh mean by browser message???? the status bar scroller?
|
|
|
![]()
Post
#3
|
|
Member ![]() ![]() Group: Member Posts: 29 Joined: Jan 2004 Member No: 798 ![]() |
well if that means the thing at the bottom of the page that moves then yeah!
|
|
|
![]()
Post
#4
|
|
Member ![]() ![]() Group: Member Posts: 29 Joined: Jan 2004 Member No: 798 ![]() |
and also that purple box that surrounds her xanga....can you like change the size?
|
|
|
![]()
Post
#5
|
|
Member ![]() ![]() Group: Member Posts: 29 Joined: Jan 2004 Member No: 798 ![]() |
hahaha ok i guess no one knows? heehee
|
|
|
![]()
Post
#6
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 44 Joined: Feb 2004 Member No: 4,355 ![]() |
You can get a visitor log script once you become an official member of createblog.com
|
|
|
![]()
Post
#7
|
|
![]() yoOh_n1c3 ![]() Group: Member Posts: 4 Joined: Feb 2004 Member No: 3,749 ![]() |
okay, there are many different types to get a lot of messages across the STATUS SCROLL BAR...
Example 1: CODE <!-- begin code provided by createblog.com --> <script> <!--// Copyright 1996 - Tomer and Yehuda Shiran // This example will appear in our forthcoming book on Java-Script. // Feel free to "steal" this code provided that you leave this notice as is. // Additional examples from the book can be found at http://www.geocities.com/SiliconValley/9000/ // For more information contact Tomer or Yehuda Shiran <yshiran@iil.intel.com> // set speed of banner (pause in milliseconds between addition of new character) var speed = 20 // decrease value to increase speed (must be positive) // set pause between completion of message and beginning of following message var pause = 1500 // increase value to increase pause // set initial values var timerID = null var bannerRunning = false // create array var ar = new Array() // assign the strings to the array's elements ar[0] = "MESSAGE 1" ar[1] = "MESSAGE 2" ar[2] = "MESSAGE 3" ar[3] = "MESSAGE 4" ar[4] = "MESSAGE 5" ar[5] = "MESSAGE 6" ar[6] = "MESSAGE 7 " ar[7] = "MESSAGE 8" ar[8] = "MESSAGE 9 " ar[9] = "MESSAGE 10" ar[10] ="MESSAGE 11" // assign index of current message var message = 0 // empty string initialization var state = "" // no value is currently being displayed clearState() // stop the banner if it is currently running function stopBanner() { // if banner is currently running if (bannerRunning) // stop the banner clearTimeout(timerID) // timer is now stopped timerRunning = false } // start the banner function startBanner() { // make sure the banner is stopped stopBanner() // start the banner from the current position showBanner() } // assign state a string of "0" characters of the length of the current message function clearState() { // initialize to empty string state = "" // create string of same length containing 0 digits for (var i = 0; i < ar[message].length; ++i) { state += "0" } } // display the current message function showBanner() { // if the current message is done if (getString()) { // increment message message++ // if new message is out of range wrap around to first message if (ar.length <= message) message = 0 // new message is first displayed as empty string clearState() // display next character after pause milliseconds timerID = setTimeout("showBanner()", pause) } else { // initialize to empty string var str = "" // built string to be displayed (only character selected thus far are displayed) for (var j = 0; j < state.length; ++j) { str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " " } // partial string is placed in status bar window.status = str // add another character after speed milliseconds timerID = setTimeout("showBanner()", speed) } } function getString() { // set variable to true (it will stay true unless proven otherwise) var full = true // set variable to false if a free space is found in string (a not-displayed char) for (var j = 0; j < state.length; ++j) { // if character at index j of current message has not been placed in displayed string if (state.charAt(j) == 0) full = false } // return true immediately if no space found (avoid infinitive loop later) if (full) return true // search for random until free space found (braoken up via break statement) while (1) { // a random number (between 0 and state.length - 1 == message.length - 1) var num = getRandom(ar[message].length) // if free space found break infinitive loop if (state.charAt(num) == "0") break } // replace the 0 character with 1 character at place found state = state.substring(0, num) + "1" + state.substring(num + 1, state.length) // return false because the string was not full (free space was found) return false } function getRandom(max) { // create instance of current date var now = new Date() // create a random number (good generator) var num = now.getTime() * now.getSeconds() * Math.random() // cut random number to value between 0 and max - 1, inclusive return num % max } startBanner() // --> </SCRIPT> <!-- end code provided by createblog.com --> Example 2 (this wun laggsss so yoOh might not want to go to it....she got it from here but i'm not too sure where ): CODE <!-- begin code provided by createblog.com --> <script language=Javascript> <!-- // please keep these lines on when you copy the source // made by: Nicolas - http://www.javascript-page.com function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } } var text = new initArray( "TEXT", "TEXT", "TEXT", "TEXT", "TEXT", "TEXT", "TEXT", "TEXT", "TEXT", "TEXT", "TEXT", "TEXT", "TEXT", "TEXT"); var speed = 80; var speed2 = 800; var whereat = 0; var whichone = 0; function waveb() { var befor = text[whichone].substring(0,whereat); var wave = text[whichone].substring(whereat,whereat+1).toUpperCase(); window.status = befor + wave; if (whereat == text[whichone].length) { whereat = 0; ++whichone; if (whichone == text.length) whichone = 0; setTimeout("waveb()",speed2); } else { whereat++; setTimeout("waveb()",speed); } } waveb(); //--></script> <!-- end code provided by createblog.com --> Example 3: CODE <!-- begin code provided by createblog.com --> <script language="Javascript"> <!-- // please keep these lines on when you copy the source // made by: Nicolas - http://www.javascript-page.com function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } } var text = new initArray("TEXT", "TEXT", "TEXT", "TEXT", "TEXT"); var speed = 50; var speed2 = 1000; var whereat = 0; var whichone = 0; function waveb() { var befor = text[whichone].substring(0,whereat); var wave = text[whichone].substring(whereat,whereat+1).toUpperCase(); window.status = befor + wave; if (whereat == text[whichone].length) { whereat = 0; ++whichone; if (whichone == text.length) whichone = 0; setTimeout("waveb()",speed2); } else { whereat++; setTimeout("waveb()",speed); } } waveb(); //--> </script> <!-- end code provided by createblog.com --> ermm...yah~they should help yoOh, and by the way, those links are from the same person about the BOX THING that surrounds her xanga....i found wun with wun layer, not two....same xanga as the wun above CODE <!-- begin code provided by createblog.com --> <BODY style= "border-left: #666666 35pt solid; border-right: #666666 35pt solid; border-bottom: #333333 25pt solid; border-top: #333333 25pt solid;"> <!-- end code provided by createblog.com --> change the color |
|
|
![]()
Post
#8
|
|
![]() Look its... ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 5,817 Joined: Feb 2004 Member No: 4,767 ![]() |
i took the last last code i love it. the scroll messages are cool too.
|
|
|
![]() ![]() |