Forum GLT.PL Strona Główna
GLT.PL
FAQ  FAQ   Szukaj  Szukaj   Użytkownicy  Użytkownicy   Grupy  Grupy
Rejestracja  ::  Zaloguj Zaloguj się, by sprawdzić wiadomości


Napisz nowy temat  Odpowiedz do tematu
 Modyfikacja paska statusu... « Zobacz poprzedni temat :: Zobacz następny temat » 
Autor Wiadomość
TRINITY
PostWysłany: Czw Sty 01, 1970 12:00 am    Temat postu: Modyfikacja paska statusu... Odpowiedz z cytatem

Gość




Tu są ciekawostki:

...:::1:::...
Kod:
<script language="JavaScript">
<!--

//skrypt pochodzi z zasobów
//www.dhtml.helion.pl

function ScrollText(seed)
{
var msg = " chevo DHTML site to najlepszy serwis o DHTML w kraju!";
var out = " ";
var c   = 1;
if (seed > 100)
{
seed--;
var cmd="ScrollText(" + seed + ")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0)
{
for (c=0 ; c < seed ; c++)
{
out+=" ";
}
out+=msg;
seed--;
var cmd="ScrollText(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0)
{
if (-seed < msg.length)
{
out+=msg.substring(-seed,msg.length);
seed--;
var cmd="ScrollText(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else
{
window.status=" ";
timerTwo=window.setTimeout("ScrollText(100)",75);
}
}
}
//-->
</script>
 

Ten: "wjeżdża" do ikonki explorera z lewej strony.
Uwaga!: Strona musi mieć z znaczniku BODY funkcje OnLoad=timerONE=window.setTimeout('ScrollText(100)',100)

...:::2:::...
Kod:
<!--

   http://www.geocities.com/CollegePark/Quad/3400
   http://javacentral.home.ml.org
   http://www.page4life.nl/javacentral/index.htm

   (c) 1997 Semian Software, Script by: Michiel steendam
   Modify and use anyway you want, just mention this site.
   -->

  <SCRIPT>
  <!-- Hide from old browsers

  // All you have to do is put another text in the variable message.
  // Don't forget to break all lines with a ^
  // When you do not place a ^ at the end of all the message, the
  // message will not repeat

  message     = "This is another example of a simple typewriter example^" +
                "You can enter an unlimited number of lines here^" +
                "Please, take a look at the code for a more detailed description^" +
                "Created by Michiel Steendam^" +
                "This typewriter will repeat now ...^" +
                "^"
  scrollSpeed = 20
  lineDelay   = 1500

  // Do not change the text below //

  txt         = ""

  function scrollText(pos) {
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }

  // Unhide -->
scrollText(0)
  </SCRIPT>

Ten sam się wpisuje...

...:::3:::...
Kod:
<SCRIPT LANGUAGE="JavaScript">
<!--// Copyright 1996 - Tomer and Yehuda Shiran
// This example will appear in our forthcoming book on JavaScript.
// 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 = 10

// 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] = "Witaj na chevo DHTML site"
ar[1] = "Najlepszym serwisie DHTML w kraju"
ar[2] = "Niektórzy nie lubią modyfikowania paska stanu..."
ar[3] = "...ale pobawić sie można"

// 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>

Ten się "zbiega" w całość...

...:::4:::...
Kod:
<script language="JavaScript">
<!--
/* MjM'S JAVA CODENAME = FLASH
   This JavaScript Code was written by MjM for Hyperchat UK
   I am not responsible for any damage caused by my code.
   This code can be modified as long as the Author's Name is still attached.
   Email : MjM@hyperchat.co.uk
   Š Copyright 1996
*/
var yourwords = "Dziękuję za odwiedzenie mojej strony!";
var speed = 500;
var control = 1;
function flash()
{
  if (control == 1)
    {
      window.status=yourwords;
      control=0;
    } 
  else
    {
      window.status="";
      control=1;
    }
  setTimeout("flash();",speed);
}
// -->
</script>

Ten mruga...
Uwaga!: Strona musi mieć z znaczniku BODY funkcje OnLoad=flash()

Miłej zabawy! Very Happy [/b]
Powrót do góry
Wyświetl posty z ostatnich:   
Napisz nowy temat  Odpowiedz do tematu Strona 1 z 1

Skocz do:  



Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach


DAJ Glass (1.0.8) template by Dustin Baccetti
EQ graphic based off of a design from www.freeclipart.nu
Powered by phpBB © 2001, 2005 phpBB Group