کد جاوا اسکریپت متن متحرک در نوار وضعیت

//**************************************
// Name: Scrolling Message
// Description:Scrolls message at bottom left of screen. Please vote for me thanks.
// By: Priscilla Khoo
//
//
// Inputs:None
//
// Returns:None
//
//Assumes:None
//
//Side Effects:None
//This code is copyrighted and has limited warranties.
//Please see http://www.Planet-Source-Code.com/xq/ASP/txtCodeId.3207/lngWId.2/qx/vb/scripts/ShowCode.htm
//for details.
//**************************************

<html>
<head>
<title>Scrolling Message</title>
</head>
//Done by Priscilla Khoo
<body>
<script LANGUAGE=”JavaScript”>
<!–
// Scrolling message settings
var MessageText = “Welcome to Yupigirl’s Homepage enjoy!:)”
var DisplayLength = 130
var pos = 1 – DisplayLength;

function ScrollInStatusBar(){
var scroll = “”;
pos++;
if (pos == MessageText.length) pos = 1 – DisplayLength;

if (pos<0) {
for (var i=1; i<=Math.abs(pos); i++)
scroll = scroll + “”;
scroll = scroll + MessageText.substring(0, DisplayLength – i + 1);
}
else
scroll = scroll + MessageText.substring(pos, pos + DisplayLength);
window.status = scroll;
//Scrolling speed
setTimeout(“ScrollInStatusBar()”,0);
}
ScrollInStatusBar()
//–>
</script>
</body>
</html>

يك پاسخ براي “کد جاوا اسکریپت متن متحرک در نوار وضعیت”

  1. به وبلاگ برای زندگی خوش امدید…
    امیدورارم ساعات خوشی را سپری کنید.

Leave a Reply