1.Aşağıdaki javaScript
kodlarını sayfada <head >..</Head>tagının arasına gelecek şekilde
kopyalayın.
<SCRIPT LANGUAGE="JavaScript">
<!--
/*
Copyright (C) 1996
Frequency Graphics All Rights Reserved.
Feel free
to reuse this code snippet
provided
this header remains in tact
Andy Augustine
3.17.96 [www.FreqGrafx.com/411/]
send comments
to <mohammed@freqgrafx.com>
*/
// You can add as many
MESSAGEn (n being a number) strings
// as you would like,
1 for each unique scrollbar.
//
// To start a new scrollbar
with the
// default message, use:
"scrollID = scrollerSetup()".
// For each new message,
use "scrollID = scrollerSetup(MESSAGEn)".
//
//-------------------------------------------------------------
// THESE ARE
THE ONLY VARIABLES YOU SHOULD NEED TO CHANGE
//-------------------------------------------------------------
var POSITION = 100
// how wide is the scroller?
var DELAY
= 40 // milliseconds between
shifts
var MESSAGE = "Lütfen
örnekleri inceleyin mutlaka biri ilginizi çekecektir."
+ " Yeni örnekler için tekrar ziyaret etmeyi unutmayın."
+ " scroll ve malabadi siteleri sizlere yardım için
kuruldu. "
+ " Yardıcı olabildiysem sevinirim.."
var MESSAGE2 = "scroll
ve malabadi siteleri sizlere yardım için kuruldu. "
+ " scroll ve malabadi siteleri sizlere yardım
için kuruldu. "
var LINK_PAUSE = 2000
// how long will a link pause the scroller?
//-------------------------------------------------------------
function statusMessageObject()
{
this.msg = MESSAGE
this.out = " "
this.pos = POSITION
this.delay = DELAY
this.i
= 0
this.reset = clearMessage
}
function clearMessage()
{
this.pos = POSITION
}
//-------------------------------------------------------------
var scrollID = Object
var scrolling = false
var killScroll = false
// set this to true to kill the scroller
var pauseScroll = false
// set this to true to pause scroller
//-------------------------------------------------------------
var scroll = new statusMessageObject()
function scroller() {
//
// check
to see if the scroll should be stopped.
//
if (killScroll) {return}
//
// if a link
has the mouse over it, pause the scroller.
//
if (pauseScroll) {
scrollID = setTimeout('scroller()',scroll.delay)
return
}
//
// add spaces to
beggining of message
//
for (scroll.i =
0; scroll.i < scroll.pos; scroll.i++) {
scroll.out
+= " "
}
//
// if you're still
have leading spaces, just
// add custom string
to tail of message
// OR else if the
string is running off the
// screen, only
add the characters left
//
if (scroll.pos
>= 0)
scroll.out
+= scroll.msg
else scroll.out
= scroll.msg.substring(-scroll.pos,scroll.msg.length)
window.status =
scroll.out
// set parameters
for next run
scroll.out = "
"
scroll.pos--
// if you're at
the end of the message,
// reset parameters
to start again
if (scroll.pos
< -(scroll.msg.length)) {
scroll.reset()
}
scrollID = setTimeout
('scroller()',scroll.delay)
}
function scrollerPause()
{
pauseScroll=true
setTimeout('pauseScroll=false',LINK_PAUSE)
}
function scrollerStop()
{
killScroll=true
scrolling=false
window.defaultStatus=''
var killID = setTimeout('killScroll=false',DELAY+1)
}
function scrollerSetup()
{
if (scrolling) {
// if (!confirm('Re-initialize
scroller?'))
// return
killScroll = true
scroll.reset()
if (scrollerSetup.arguments.length
== 1) scroll.msg = scrollerSetup.arguments[0]
var killID = setTimeout('killScroll=false',DELAY+1)
}
scrolling = true
scrollID = setTimeout('scroller()',DELAY+5)
}
// -->
</SCRIPT>
2.Body tag'ının içine yazılacak
kod.
<body onLoad="scrollerSetup()">
|