<!-- DESCRIPTION: This will make a clickable scrolling banner on your webpage. It closely resembles a news wire
out reading.
INSTRUCTIONS: Place this script in the HEAD tags of
your webpage. Change the text by altering the values in
cc [#] = "Your messages".
FUNCTIONALITY: Works in both Netscape & IE.
-->
<SCRIPT LANGUAGE="JavaScript">
//Modified by CoffeeCup Software
//This code is Copyright (c) 1997 CoffeeCup Software
//all rights reserved. License is granted to a single user to
//reuse this code on a personal or business Web Site.
<!--
var speed = 90
var pause = 1000
var timerID = null
var wireRunning = false
var cc = new Array()
cc[0] = "متشکرم که باران گراف را انتخاب کردید "
cc[1] = "خاص ترین سایت گرافیکی"
cc[2] = "برای دیدن سایت به این آدرس مراجعه کنید "
cc[3] = "http://www.barangraph.rzb.com "
var currentMessage = 0
var offset = 0
function stopWire() {
if (wireRunning)
clearTimeout(timerID)
wireRunning = false
}
function startWire() {
stopWire()
showWire()
}
function showWire() {
var text = cc[currentMessage]
if (offset < text.length) {
if (text.charAt(offset) == " ")
offset++
var partialMessage = text.substring(0, offset + 1)
document.wireForm.wireField.value = partialMessage
offset++
timerID = setTimeout("showWire()", speed)
wireRunning = true
} else {
offset = 0
currentMessage++
if (currentMessage == cc.length)
currentMessage = 0
timerID = setTimeout("showWire()", pause)
wireRunning = true
}
}
// -->
</SCRIPT>
<CENTER>
<FORM NAME="wireForm">
<INPUT TYPE="text" NAME="wireField" VALUE="...Click here for the News..." SIZE=40 onFocus="if (!wireRunning) { startWire() }">
</FORM>
</CENTER>