Status barda yazı
:: Web Master :: Kod Arşivi
1 sayfadaki 1 sayfası
Status barda yazı
- Kod:
<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.alnumel.com -->
<SCRIPT LANGUAGE="JavaScript">
<!--
// Copyright (c) 1996-1997 Tomer Shiran. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.erenet.net
// set speed of banner (pause in milliseconds between characters)
var speed = 100 // decrease value to increase speed (must be positive)
// set pause between completion of message and beginning of following message
var pause = 1000 // increase value to increase pause
// set initial values
var timerID = null
var bannerRunning = false
// create global array
var ar = new Array()
// assign the strings to the array's elements
ar[0] = "Buraya mesajınızı yazın"
ar[1] = "Buraya 2. mesajınızı yazın."
ar[2] = "Buraya 3. mesajınızı yazın."
ar[3] = "Buraya 4. mesajınızı yazın."
// set index of first message to be displayed first
var currentMessage = 0
// set index of last character to be displayed first
var offset = 0
// 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
bannerRunning = false
}
// start the banner
function startBanner() {
// make sure the banner is stopped
stopBanner()
// start the banner from the current position
showBanner()
}
// type-in the current message
function showBanner() {
// assign current message to variable
var text = ar[currentMessage]
// if current message has not finished being displayed
if (offset < text.length) {
// if last character of current message is a space
if (text.charAt(offset) == " ")
// skip the current character
offset++
// assign the up-to-date to-be-displayed substring
// second argument of method accepts index of last character plus one
var partialMessage = text.substring(0, offset + 1)
// display partial message in status bar
window.status = partialMessage
// increment index of last character to be displayed
offset++ // IE sometimes has trouble with "++offset"
// recursive call after specified time
timerID = setTimeout("showBanner()", speed)
// banner is running
bannerRunning = true
} else {
// reset offset
offset = 0
// increment subscript (index) of current message
currentMessage++
// if subscript of current message is out of range
if (currentMessage == ar.length)
// wrap around (start from beginning)
currentMessage = 0
// recursive call after specified time
timerID = setTimeout("showBanner()", pause)
// banner is running
bannerRunning = true
}
}
// -->
</SCRIPT>
</HEAD>
<BODY onLoad="startBanner()">
</BODY>
</HTML>
<!-- END OF SCRIPT -->
Status Bar'da Mesaj
<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.erenet.net -->
<HTML><HEAD><title>Status Character Scroll</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- hide from old browsers
var init_msg = "Buraya mesajınızı yazın..."
var str = ""
var msg = ""
var leftmsg = ""
function setMessage()
{
if (msg == "")
{
str = " "
msg = init_msg
leftmsg = ""
}
if (str.length == 1)
{
while (msg.substring(0, 1) == " ")
{
leftmsg = leftmsg + str
str = msg.substring(0, 1)
msg = msg.substring(1, msg.length)
}
leftmsg = leftmsg + str
str = msg.substring(0, 1)
msg = msg.substring(1, msg.length)
for (var ii = 0; ii < 120; ii++)
{str = " " + str}
}
else
{
str = str.substring(10, str.length) // decrease str little by little
}
window.status = leftmsg + str
JSCTimeOutID = window.setTimeout('setMessage()',100)
}
<!-- done hiding -->
</SCRIPT></HEAD>
<BODY bgcolor="ffffff"
onload="JSCTimeOutID = window.setTimeout('setMessage()',500);">
Lütfen Status Bar'a bakın...
<!-- END OF SCRIPT -->
</textarea></CENTER>
</td>
</tr>
</table>
<span class="article_separator"> </span>
</td>
</tr>
</table>
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-3217501453391372";
/* 468x60, oluşturulma 18.06.2009 */
google_ad_slot = "3516390971";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<div id="whitebox_b">
<div id="whitebox_bl">
<div id="whitebox_br"></div>
</div>
</div>
</div>
<div id="footerspacer"></div>
</div>
<div id="footer">
<div id="footer_l">
<div id="footer_r">
<p id="syndicate">
</p>
<p>
</p>
</div>
</div>
</div>
</div>
</div>
<style type="text/css"><!-- #loading{width:200px;height:100px;position:absolute;left:50%;top:50%;margin-top:-50px;margin-left:-100px;text-align:center}--></style>
<script type="text/javascript"><!--
<!--
<!--
<!--
document.write('<div id="loading" align="center"><table border="0" width="215" height="80" id="table1"><tr><td background="http://www.alnumel.com/images/load_bg.gif"><p align="center"><font color="#FFFFFF" size="2" face="verdana">Sayfa Yükleniyor Bekleyiniz</font></p><center><img border="0" src="http://www.alnumel.com/images/loading.gif" width="76" height="8"></center></td></tr></table></div>');window.onload=function(){document.getElementById("loading").style.display="none";}//-->
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4550839-1");
pageTracker._trackPageview();
</script>
</body>
</html>
Similar topics
» Status Barda yanıp sönen yazı
» sitene yazı çeşitleri , yazı modelleri
» Lav YAzı YAzma
» Kayan Yazı Yazma
» Krom Yazı Efekti
» sitene yazı çeşitleri , yazı modelleri
» Lav YAzı YAzma
» Kayan Yazı Yazma
» Krom Yazı Efekti
:: Web Master :: Kod Arşivi
1 sayfadaki 1 sayfası
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz