<html>
<head>
</head><body>
<b>
<font size="5">
<script>
/*
For more scripts, visit http://www.phoenixs.blogfa.com
*/
var text="http://www.phoenixs.blogfa.com" // YOUR TEXT
var speed=80 // SPEED OF FADE
if (document.all||document.getElementById){
document.write('<span id="highlight">' + text + '</span>')
var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight
}
else
document.write(text)
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
var r=1
var g=1
var b=1
var seq=1
function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}
function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",speed)
}
starteffect()
</script>
</font></b>
</body>
</html>
<html>
<head>
</head><body>
<h2>
<script language="JavaScript1.2">
/*
http://www.phoenixs.blogfa.com
*/
var message="Welcome to http://www.phoenixs.blogfa.com!"
var neonbasecolor="gray"
var neontextcolor="yellow"
var flashspeed=100
var n=0
if (document.all){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight">'+message.charAt(m)+'</span>')
document.write('</font>')
var tempref=document.all.neonlight
}
else
document.write(message)
function neon(){
if (n==0){
for (m=0;m<message.length;m++)
tempref[m].style.color=neonbasecolor
}
tempref[n].style.color=neontextcolor
if (n<tempref.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",1500)
return
}
}
function beginneon(){
if (document.all)
flashing=setInterval("neon()",flashspeed)
}
beginneon()
</script>
</h2>
</body>
</html>
</body>
</html>
<html dir=rtl>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<script LANGUAGE="JavaScript">
<!--
function submitenter(myfield,e)
{
var key;
if (window.event)
key = window.event.keyCode;
else if (e)
key = e.which;
if (key>31)
if (key<128)
{
if (window.event)
window.event.keyCode=' !"#$%،گ)(×+و-./0123456789:ك,=.؟@ِذ}ىُىلآ÷ـ،/’د×؛َءٍف‘{ًْإ~جژچ^_پشذزيثبلاهتنمئدخحضقسفعرصطغظ<|>ّ'.charCodeAt(key-32);
else if (e)
e.which=' !"#$%،گ)(×+و-./0123456789:ك,=.؟@ِذ}ىُىلآ÷ـ،/’د×؛َءٍف‘{ًْإ~جژچ^_پشذزيثبلاهتنمئدخحضقسفعرصطغظ<|>ّ'.charCodeAt(key-32);
}
return true;
}
//-->
</script>
</head>
<body>
<form name="DataEntry" method="post" action="">
<input type="text" name="T1" size="50" maxlength="50" onkeypress="return submitenter(this,event)" style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma">
<br><br>
<textarea name="T2" rows="10" cols="50" onkeypress="return submitenter(this,event)" style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma"></textarea>
</form>
</body>
</html>
با استفاده از اين اسکريپت ميتوانيد مطلب مورد نظر خود را در قسمت پايين Browser کاربر به دفعات به نمايش درآوريد.
<html>
<script language="JavaScript">
<!--
var x = 0
var speed = 200
var text = "Welcome to phoenixs.blogfa.com."
function Blinky() {
window.status = text
setTimeout("Blinky2()", speed)
}
function Blinky2() {
window.status = " "
setTimeout("Blinky()", speed)
}
Blinky()
//-->
</script>
<body>
<h2>www.phoenixs.blogfa.com</h2>
</body>
</html>
با استفاده از اين اسکريپت می توان نشانی سايت موردنظر را به عنوان home page به browser کاربر معرفی نمود.
<html>
<head>
<title>HOMEPAGE Script</title>
</head>
<body>
<a style="cursor:hand;font-weight:bold;color:#004080;font-family:Verdana" HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.phoenixs.blogfa.com');">Click here to make
phoenixs.blogfa.com your default homepage!</a>
</body>
</html>
<html>
<head>
<style>
.myStyle { writing-mode: tb-rl;
filter: flipH() flipV();
}
</style>
</head>
<body>
<span class="myStyle">
<font size="6" color="#000000">www.phoenixs.blogfa.com</font>
</span>
</body>
</html>
با استفاده از اين اسکريپت ميتوانيد رنگ Boxها را بعد از کليک کردن تغيير دهيد.
<html>
<head>
<style>
.t0 { color: brown; background-color: pink; }
.t1 { color: darkblue; background-color: gold; }
</style>
</head>
<body>
<form name=f1>
<textarea class=t1 id=textone>www.phoenixs.blogfa.com
</textarea>
<BR><input type=button value="Change" onclick="doIt()">
</form>
<script>
var _I=1;
function doIt()
{
_I=(_I+1)%2;
/* example is for DOM browsers only */
if(document.getElementById)
document.getElementById("textone").className="t"+_I;
}
</script>
</body>
</html>
مرورگرهاي IE 4.0 و نگارش هاي بعدي آن نيز داراي سه خاصيت هستند:
browserLanguage , systemLanguage , userLanguage
browserLanguage زبان انتخاب شده در مرورگر
systemLanguage زبان انتخاب شده در سيستم عامل
userLanguage زباني كه كاربر فعلي در Control Panel و در قسمت RegionalSettings انتخاب كرده است.
به اين ترتيب شما مي توانيد به كاربران سايت خود، صفحات را به زبان خودشان نمايش دهيد.
<html>
<head>
<title>Yourr Language</title>
</head>
<body>
<h1>
<script type="text/javascript">
document.write("Yourr Language is: " + navigator.userLanguage);
</script>
</h1>
</body>
</html>
توسط اين اسکريپت جمله اي درون قسمت status bar پنجره هاي browser به حرکت در مي آيد.
<html>
<head>
<script language="javascript" type="text/javascript">
myMsg = "Welcome to www.phoenixs.blogfa.com "
i=0
function scrollMsg() {
window.status = myMsg.substring(i,myMsg.length) + myMsg.substring(0/i-1)
if (i<myMsg.length) {
i++
}
else {
i = 0
}
setTimeout("scrollMsg()",150)
}
</script>
</head>
<body onload="scrollMsg()">
<h1>
www.phoenixs.blogfa.com
</h1>
</body>
</html>