منوي
باز شو براي گذاشتن لينک دوستان
خیلی خب. عده زیادی از دوستان در
خواست کرده بودن که کدهای منوی بازشویی رو که من در
اینجا برای گذاشتن لینک دوستان
ازش استفاده کردم براشون بذارم. من هم به خواسته این دوستان
عمل کردم و در این پست به همین
درخواست پاسخ خواهم داد و البته چگونگی گذاشتن لینک ها رو هم در این منو
برای دوستان آموزش میدم.
1.
ابتدا کدهای این منو را درون body قالبتون کپی کنید :
2. بعد از کپی کردن کدهای این
منو در قالب نوبت به گذاشتن لینک هاتون درون اون میرسه.این کاره
بسیار ساده ای است.کافی است
شما برای گذاشتن لینک هاتون فقط مطابق دستورالعملی که در زیر نوشتم عمل کنید:
3.
پس از تکمیل مرحله دوم باستی کل دستور العمل بالا را درون قالب و بعد از متن زیر
قرار دهید تا لینک شما بصورت صحیح در محل خودش قرار بگیره.
4.
برای تغییر دادن پس زمینه این منو مقابل عبارت background-color
نام رنگ یا کد رنگ مورد نظرتون رو بنویسید.
نکته: برای هر بار گذاشتن لینک در این منو بایستی
مجدداً از دستور العمل مرحله دوم استفاده کنید.
توجه داشته باشید ممکنه بعضی از
اسکریپت هایی رو که تاحالا معرفی کردم در بعضی از کامپیوتر ها،
کلمان فارسی آنها بهم ریخته بشه که
بایستی برای جلوگیری از این مشکل صفحتون رو یونیکد کنید .
نویسنده : علی مهاجر
افزودن
ویژگی Send To > NotePad برای کلیه فایل ها
ساعت +
مدت زمان حضور در وبلاگ
مدت
زمان حضور در وبلاگ (۱)
سلام دوستان .
این اسکریپت باعث میشه وقتی که بازدیدکننده قصد ترک کردن وبلاگ رو داشته باشه و
صفحه رو ببنده
پیغامی بهش داده بشه مبنی بر اینکه شما اینقدر ثانیه درون وبلاگ
بودید .
همچنین یک متن رو هم میتونید به این پیغام اضافه کنید .که بصورت پیش فرض متن
"دفعه
بعد بیشتر بمونید" میباشد. برای کاربرد این اسکریپت
که 2 مرحله داره به صورت زیره عمل کنيد:
1.
ابتدا کدهای زیر رو درون head کپی کنید.
2. سپس متن زیر رو به body
قالبتون اضافه کنید.
نویسنده : علی مهاجر
قبل از اینکه کد رو براتون بذارم میخوام به دوستانی
که تمایل به تبادل لینک دارن بگم که شما
میتونید در این پست وبلاگتون رو معرفی
کنید تا در اولین فرصت به شما لینک داده بشه.
ممنونم.
اینم کد متن سایه دار که 2 مرحله داره :
1.
ابتدا این کد رو درون head قالبتون کپی کنید
2.
سپس در مرحله دوم کد زیر رو درون body قالب و جایی که دوست
دارید متن قرار بگیره paste کنید.
برای
ایجاد جمله مورد نظرتون کافیه به جای جمله
wel c ome
to alierfan84
که در مرحله دوم هست متن مورد نظرتون رو قرار بدید. شاید
عده ای دوست داشته باشن سایز
و یا رنگ متن رو تغییر بدن برای تغییر دادن سایز
متن میتونید در جلوی font size اندازه مورد نظرتون رو وارد کنید
و همچنین برای
تغییر دادن رنگ متن بایستی در جلوی color نام رنگ مورد نظر
و یا کد رنگ رو وارد
کنید. به
همین سادگی. امیدوارم که از این کد هم خوشتون بیاد .
موفق و پیروز باشید.
نویسنده : علی مهاجر
این بار میخوام کدی
رو معرفی می کنم که با اون میتونید یه منو در سمت چپ وبلاگ یا
سایتتون داشته باشید.
این منو همراه با اسکرول بار حرکت میکنه و در تمام صفحه همراه شماست.
کد:
نویسنده : علی مهاجر
نویسنده : علی مهاجر
نمایش
یک پیغام در حال جوشیدن در statusbar
امكان چت
بازديدكنندگان وبلاگ با شما
کدی رو که در این پست میخوام معرفی کنم یک منو برای گذاشتن پیام هاتون هست که
البته
اگر کمی ابتکار عمل هم داشته باشید به راحتی متونید از اون استفاده های دیگه ای
هم بکنید .
نویسنده : علی مهاجر
لرزش
صفحه در هنگام ورود به آن
نوشته
شما در استاتوس بار (۱)
خب این بار میخوام کدی در رابطه با استاتوس بار براتون معرفی کنم . این کد باعث
به نمایش دراومدن
جمله شما بصورت کلمه به کلمه میشه و پس از تکمیل ، جمله از استاتوس بار خارج میشه
و این عمل همین طور ادامه پیدا میکنه .البته از این موارد زیاد خواهیم داشت .
اینم
کدش که دارای 2 قسمته . قسمت اول رو همونطور که مشخص کردم درون head
کپی کنید
و اما قسمت دوم: در این مرحله باید
onLoad="scrollIn()" رو درون تگ body قالبتون کپی
کنید . به همین راحتی .
نظر یادتون نره .
موفق باشید
نویسنده : علی مهاجر
لينک و نمايش جمله
تعريفي در نوار وضعيت
وسیله این جاوا
اسکریپت میتوانید برای لینک مورد نظرتان جمله خاصی را تعریف کنید که در هنگام
قرار گرفتن
ماوس بروری آن ، جمله در نوار وضعیت نمایش داده شود.برای تغییر دادن
لینک و
جمله تعریف شده ، میتوانید به جای آن ها، جمله و لینک مورد نظرتان را وارد
کنید.
برای استفاده از این اسکریپت کدهای زیر را درون Body
قالب کپی کنید:
نویسنده : علی مهاجر
متن
متحرک در نوار وضعيت (۳)
ت وسط این اسکریپت میتوانید
در نوار وضعیت صفحه جملاتی را به نمایش در آورد .
نحوه نمایش جملات بدین صورت
میباشد که ابتدا از هر جمله کلمات آن جمله بصورت تک تک و با سرعتی زیاد نمایش
داده شده
و پس از پایان آن جمله مورد نظر به طور کامل نشان داده میشود
و
با مکثی کوتاه جمله بعد نیز مراحل قبل را طی میکند. کدهای زیر
را درون Body قالب کپی کنید :
به طور پیش فرض برای این اسکریپت 4 جمله تعیین شده است .
چنانچه تمایل داشته باشید تعداد
جملات را افزایش دهید بایستی مراحل زیر را طی کنید:
1. ابتدا عدد مقابل جمله زیر
را که 4 میباشد به عدد 5 تغییر دهید.(توجه داشته باشید که شمارش اعداد در
اینجا از صفر شروع میشود.)
action = new initArray(4)
2. سپس تابع 1 را بعد از تابع 2 کپی کنید.
1.
action[4 ]=""
2.
action[3]=""
3. در این مرحله
بایستی جمله مرود نظر خود را بین دو علامت " و "
تایپ کنید.
4. حالا میتوانید اسکریپت را تست کنید و نتیجه را ببینید.
نویسنده : علی مهاجر
نمايش گوشه اي از جزئيات سيستم بازديدکننده
بوسیله این اسکریپت توانایی نمایش : نوع مرورگر، نگارش
مرورگر، وضوح نمایشگر و فعال یا غیر فعال
بودن جاوا در سیستم بازدید کننده به او
داده شود.برای استفاده از این اسکریپت کافیست کدهای زیر را درون
Body قالب و در جای مناسب کپی کنید:
نویسنده : علی مهاجر
بوسیله این اسکریپت
که برای عده ای از دوستان آشنا میباشد میتوان توانایی کلیک راست را از میان
برداشت.
جمله پیش فرض این اسکریپت که هنگام فشردن کلیک راست در
صفحه به بازدید کننده نشان داده میشود " ha
ha ha ha" میباشد.
برای تغییر دادن آن در اسکریپت به
دنبال آن گشته و جمله مورد نظر خود را جایگزین آن کنید.
برای استفاده از
این اسکریپت کدهای زیر را درون Body قالب کپی کنید .
نویسنده : علی مهاجر
با
استفاده از این اسکریپت ميتوان سه رنگ قرمز، آبی و سبز را بدنبال ماوس حرکت داده
و حرکتی
ستاره مانند ایجاد کرد. برای بکار گیری این اسکریپت کدهای زیر را درون
Body قالب کپی کنید.
نویسنده : علی مهاجر
متن
چشمک زن در نوار وضعيت
این
اسکریپت متنی را در نوار وضعیت بصورت چشمک زن بنمایش در می آورد . توجه داشته
باشید که برای
این اسکریپت توانایی تعیین کردن فقط یک جمله جود دارد . بمنظور
نمایش جمله دلخواه خود میتوانید
جمله پیش فرض آن را که جمله "Welcome to
AliErfan84.Blogfa.com" میباشد پیدا کرده و آن را
جایگزین این جمله کنید. برای
استفاده از این اسکریپ میبایست کد های زیر را درون Head
کپی کنید .
نویسنده : علی مهاجر
این
اسکریپت توانایی سوال کردن از بازدید کننده را به شما میدهد . بدین صورت که در
هنگام ورود ،
سوالی در صفحه ظاهر میشود که بازدید کننده توانایی لغو آن را نیز
دارد. برای تغییر سوال این اسکریپت میتوانید ،
سوال پیش فرض آن را در میان کدهای
این اسکریپت یافته و آن را تغییر دهید .
برای استفاده از این اسکریپت کدهای موجود
را در Body قالب کپی کنید.
نویسنده : علی مهاجر
وسیله این اسکریپت قادر خاهید بود جمله خاصی را بصورت عمودی
بنمایش درآورید . بمنظور نمایش جمله
مد نظرتان میتوانید جمله تعیین شده برای این
اسکریپت را بیابید و آن را جایگزین کنید . سایز قلم این ایکریپت بصورت
پیش فرض
6 میباشد که براحتی میتوانید سایز موردنظرتان را بجای آن
وارد کنید . همچنین
بمنظور تغییر رنگ جمله میبایست کد رنگ یا نام رنگ را در مقابل
کلمه Color وارد کنید .
نویسنده : علی مهاجر
وسیله این اسکریپت
میتوان کادری را ایجاد کرد که متن دلخواه شما در این کادر از سمت چپ به سمت راست
حرکت میکند و به این حرکت خود ادامه خواهد داد و هرگز نخواهد ایستاد. برای تغییر
متن درون این کادر
میتوانید به جای جمله پیش فرض آن"Hello
and wellcome to my weblog ": جمله
مورد نظر خود را جایگزین کنید .
توجه داشته باشید که فاصله آخرین کلمه تا علامت "
بایستی فاصله ای کمتر از فاصله پیش فرض آن نباشد
تا در صورت نمایش کامل متن در
کادر این فاصله نیز بنمایش درآید و از نمایش پشت سر هم
جمله جلوگیری شود .
(در هنگام تست کردن این اسکریپت متوجه این امر خواهید شد.)
برای بکارگیری این اسکریپت کدهای زیر را درون Body
قالب کپی کنید .
نویسنده : علی مهاجر
این اسکریپت یک ساعت
عقربه دار میباشید که در سمت راست و پایین صفحه قرار میگیرد و همرا با
حرکت
اسکرول بار(نوار پیمایش) ، حرکت کرده و همچنان محل قرار گرفتن خود را حفظ میکند.
برای استفاده از این ساعت میتوانید کدهای زیر را درون Body
قالب وبلاگ یا وب سایتتان کپی کنید:
نویسنده : علی مهاجر
Run Background حرکت عکس پس زمينه سايت
نویسنده : علی مهاجر
تغيير و
کنترل منو ، آدرس ، سايز و .... در صفحه بعد از لينک
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="JavaScript">
function goVisitSite(Site)
{
NewWindow = window.open(Site,
"viewwin",
" toolbar=no, scrollbars=yes, menubar=no, status=yes, resizable=yes, directories=no, width=00, height=430 ");
}</script>
<p> </p>
<div style="position: absolute; top: 47; left: 96; width: 175; height: 38">
<p align="center" dir="ltr"><b><font face="Tahoma">
<a href="JavaScript:goVisitSite('http://www.javacity.co.sr/dollar.htm')">
Click Here for link</a></font><br>
</b>
</p>
</div>
<p align="left"> </p>
<div style="position: absolute; top: 92; left: 9; width: 351; height: 38">
<p align="center" dir="ltr">Please Change Java script code on the Source mode</div>
<div style="position: absolute; top: 134; left: 26; width: 320; height: 32">
<p align="center"><span lang="fa">
<font face="Tahoma" size="2" color="#000080">(</font></span><font color="#000080" size="2" face="Tahoma">
<span lang="fa">کد را در حالت سورس تنظيم کنيد ( قسمت کد جاوا</span></font></div>
<!--END CODE - Powered java script code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
نمايش يک
پنجره اضافي ( پاپ آپ ) هنگام باز شدن صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<!-- ************************** START CODE FOR POP UP ************************ -->
<body>
<script>
window.open("http://www.javacity.co.sr/music2.htm",'2','resizable=yes,directories=no,menubar=no,top=null,left=00, width=250,height=40')
</script>
</body>
</html>
<!-- ************************** END CODE FOR POP UP WINDOW ************************ -->
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
از کار انداختن کليک راست موس + قطع قابليت نمايش سورس صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script language=JavaScript>m='%3Cscript%20language%3DJavaScript%3E%3C%21--%0D%0A%0D%0Avar%20message%3D%22SORRY : %20 %21%22%3B%0D%0A%0D%0Afunction%20clickIE%28%29%20%20%7Bif%20%28document.all%29%20%7Balert%28message%29%3Breturn%20false%3B%7D%7D%0D%0Afunction%20clickNS%28e%29%20%7Bif%20%0D%0A%28document.layers%7C%7C%28document.getElementById%26%26%21document.all%29%29%20%7B%0D%0Aif%20%28e.which%3D%3D2%7C%7Ce.which%3D%3D3%29%20%7Balert%28message%29%3Breturn%20false%3B%7D%7D%7D%0D%0Aif%20%28document.layers%29%20%0D%0A%7Bdocument.captureEvents%28Event.MOUSEDOWN%29%3Bdocument.onmousedown%3DclickNS%3B%7D%0D%0Aelse%7Bdocument.onmouseup%3DclickNS%3Bdocument.oncontextmenu%3DclickIE%3B%7D%0D%0A%0D%0Adocument.oncontextmenu%3Dnew%20Function%28%22return%20false%22%29%0D%0A%0D%0A//%20--%3E%3C/script%3E';d=unescape(m);document.write(d);</script>
نویسنده : علی مهاجر
حرکت خودکار اسکرول صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script language="JavaScript1.2">
var currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize(){
startit()
}
function scrollwindow(){
if (document.all)
temp=document.body.scrollTop
else
temp=window.pageYOffset
if (alt==0)
alt=1
else
alt=0
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=document.body.scrollTop+1
else
currentpos=window.pageYOffset+1
window.scroll(0,currentpos)
}
else{
currentpos=0
window.scroll(0,currentpos)
}
}
function startit(){
setInterval("scrollwindow()",10)
}
window.onload=initialize
</script>
نویسنده : علی مهاجر
باز شدن لينک فقط با اشاره موس
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script>
function winopen(){
win = window.open("http://www.google.com", "newWin", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=700,height=360")
openwindow()
}
function openwindow(){}
</script>
<a href="" onMouseOver="winopen();return false;">YOUR LINK NAME</a>
نویسنده : علی مهاجر
نمايش صفحه طی یک مدت معين با لينک
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script>
function winopen(){
win = window.open("http://www.google.com", "newWin", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=400,height=260")
startTime()
}
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=3; // Amount of time that the window stays open in seconds
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (win.closed == false){
win.close()}}
else{
window.setTimeout("Timer()",8000)}
}
</script>
<a href="" onMouseOver="winopen();return false;">YOUR LINK NAME</a>
نویسنده : علی مهاجر
نمايش صفحه طی یک مدت معين با کليد باتون
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script>
function winopen(){
win = window.open("http://www.google.com", "newWin", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=400,height=260")
startTime()
}
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=3; // Amount of time that the window stays open in seconds
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (win.closed == false){
win.close()}}
else{
window.setTimeout("Timer()",7000)}
}
</script>
<form><input type=button value="YOUR BUTTON NAME" onClick="winopen();"></form>
نویسنده : علی مهاجر
پيغام ترک صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide from JavaScript-Impaired Browsers
locnm=location.href;
pos=locnm.indexOf("indexb.htm");
locnm1=locnm.substring(0,pos);
function ByeWin() {
windowIMA=window.open("",'Anim2','toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=1,width=310,height=290')
windowIMA.document.write("<HTML><TITLE>BYE BYE</TITLE>"
+"<BODY BGCOLOR='black' text= 'white'><CENTER>"
+"<FORM METHOD=GET ACTION='"+locnm1+"h5s3.html'>"
+"<P><B>Good bye.!<P>Thanks for visiting MY SITE !<BR>"
+"Please add your own html text here"
+"<BR>Website Abstraction bids you farewell</B></FORM><BR>");
}
// End Hiding -->
</SCRIPT>
<BODY onUnload="ByeWin()">
نویسنده : علی مهاجر
تعیين
مشخصات ظاهری صفحه بعدی ( لينک شده با عکس
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script language="JavaScript">
function goVisitSite(Site)
{
NewWindow = window.open(Site,
"viewwin",
"toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,status=no,resizable=yes,width=null,height=null");
}
</script>
<p> <p> <p><br>
<p><span style="position: absolute; left: 420; top: 207"><a href="JavaScript:goVisitSite('http://www.javacity.co.sr')"><font size="4">
<img border="0"
src="http://www.javacity.co.sr/danger.gif" width="96" height="67"></font></a></span></p>
نویسنده : علی مهاجر
نمايش دو صفحه اضافی ( پاپ آپ ) بعد از لينک
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script language="JavaScript">
function winopen(){
window.open('http://www.google.com', 'NewWindow1', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=635,height=260')
window.open('http://AliErfan84.Blogfa.com', 'NewWindow2', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')
}
</script>
<a ONCLICK="winopen()" href="http://AliErfan84.Blogfa.com">LINK NAME</a>
نویسنده : علی مهاجر
نمايش يک صفحه اضافی (پاپ آپ ) بعد از لينک
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script language="JavaScript">
function winopen(){
window.open('http://www.google.com', 'NewWindow1', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=635,height=260')
}
</script>
<a ONCLICK="winopen()" href="http://AliErfan84.Blogfa.com">LINK NAME</a>
نویسنده : علی مهاجر
برگشت خودکار صفحه فعلی به صفحه قبل
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<meta http-equiv="Content-Language" content="en-us">
<SCRIPT LANGUAGE="JavaScript">
<!--//hiding it
setTimeout("history.back();", 15000);
//end hiding it-->
</SCRIPT>
<p>asd</p>
نویسنده : علی مهاجر
بستن يك آي پي و جلوگيري
از ورود آن به سايت
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<html>
<body bgcolor=ffffff>
<script language="javascript">
var ip = '24.0.217.223'
if (ip == '206.186.23.178') {
alert("STOP! You are viewing this page from an IP address that is not allowed!");
alert("Why can't you guys just leave me alone?");
if (confirm("Do you want to leave peacefully? Or will I have to help you?"))
{location.href="http://www.mydesktop.com" } else { ("OK you choose I don't care! Bye bye! Don't come back!"); {location.href="http://www.mydesktop.com" }} }
</SCRIPT>
</body>
</html>
نویسنده : علی مهاجر
بسته شدن
خودکار صفحه بعد از يک مدت معين
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<meta http-equiv="Content-Language" content="en-us">
<SCRIPT LANGUAGE="JavaScript">
<!--//hiding it
setTimeout("window.close();", 15000);
//end hiding it-->
</SCRIPT>
نویسنده : علی مهاجر
لرزش موقت
در صفحه سايت
<!-- START CODE Powered javascript code by http://AliErfan84.Blogfa.com-->
<meta http-equiv="Content-Language" content="en-us">
<SCRIPT language=JavaScript>
<!-- Begin
function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
parent.moveBy(-i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,-i);
parent.moveBy(i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,i);
}
}
}
}
// End -->
<!--
shake(1);
//-->
</SCRIPT>
<p align="center"><font size="7" color="#FF0000">salam irani</font></p>
<!-- END CODE Powered javascript code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
با تنظيم
اندازه (windows media ) wma پخش آهنگهای با فرمت
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<body>
<!-- Begin Music -->
<p>
<embed "1" TYPE="application/x-mplayer2" SRC="http://www.arianmusic.com/music/arian2/winMedia/parvaz.wma" autostart="true" WIDTH="350" HEIGHT="250"></embed>
<tr>
<td></p>
<div style="position: absolute; top: 284; left: 78; width: 165; height: 12">
<p dir="ltr"><span lang="fa"><font face="Tahoma" size="1" color="#000080">
کيفيت موسيقي متن بستگي به</font></span></div>
<div style="position: absolute; top: 300; left: 87; width: 133; height: 12">
<p dir="ltr"><span lang="fa"><font face="Tahoma" size="1" color="#000080">سرعت
شما در اينترنت دارد</font></span></div>
<div ALIGN="center">
</td>
</div>
</body>
</html>
نویسنده : علی مهاجر
موجود در
کامپيوتر Real Player پخش آهنگ در صفحه با
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script LANGUAGE="JavaScript">
// You must ask before you use this script //
song = new Array(2);
title = new Array(2);
song[1] ='http://www.arianmusic.com/music/arian2/realPlayer/arian2_t1Parvaz.rm'
title[1] = 'ARIAN Parvaz'
song[2] ='http://www.arianmusic.com/music/arian1/realPlayer/arian1_t6MolaAli.rm'
title[2] = 'ARIAN Mola Ali'
index = Math.floor(Math.random() * song.length);document.write("<DL>\n");
document.write("<EMBED SRC="+song[index]+" width=275 height=45 autostart=true loop=infinite BGCOLOR='#000000'");
document.write(' TEXT="#FFFFFF">');
document.write("<BR>");
document.write(" ");
document.write("<font size=1 color=red>");
document.write(title[index]);
document.write("</font>")
document.write("</DL>\n");
</script>
</body>
</html>
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
پخش آهنگ جديد طبق هر روز
<!--Powered javas cript code by http://AliErfan84.Blogfa.com-->
<body>
<center>
<script LANGUAGE="JavaScript">
page=new Date();
if (page.getDate() == 1)
document.write("<embed src=song1.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 2)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/1979.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 3)
document.write("<embed src=song3.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 4)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/always.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 5)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/bcuz.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 6)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/bhcop.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 7)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/bomb.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 8)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/bone.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 9)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/californa.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 10)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/class.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 11)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/clown.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 12)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/dag.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 13)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/danger.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 14)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/dontlokb.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 15)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/eagle.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 16)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/enter.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 17)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/ff.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 18)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/ftloose.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 19)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/funk.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 20)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/gangsta.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 21)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/gilligan.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 22)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/hawaii50.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 23)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/hotelcal.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 24)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/indiana.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 25)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/ironic.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 26)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/jaws.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 27)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/jeremy.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 28)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/killing.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 29)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/stupdgrl.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 30)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/today.mid width=145 height=60 autostart=true volume=50>");
if (page.getDate() == 31)
document.write("<embed src=http://www.xkiller.simplenet.com/midis/x-files.mid width=145 height=60 autostart=true volume=50>");
page=new Date();
var months = new Array(13);
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
var dateObj = new Date()
var lmonth = months[dateObj.getMonth() + 1]
var fyear = "" + dateObj.getYear()
var date = dateObj.getDate()
document.write("<br>" + lmonth + " " + date + ", " + fyear)
//done hiding -->
</script>
</center>
<p><br>
</p>
</body>
</html>
<!--Powered java script code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
انتخاب نوع آهنگ صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<body>
<p><br>
<script LANGUAGE="JavaScript">
<!--
function PlaySong(SongURL)
{
PopUp = window.open (SongURL, "Crescendo", "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizeable=no,copyhistory=no,width=200,height=30")
}
//-->
</script>
<br>
</p>
<form NAME="midiform">
<p><select NAME="list">
<option VALUE="http://www..........com/sellout.Mid" [SELECTED]>ey IRAN
</option>
<option VALUE="http://www..........com/govt.mid">Tavalood</option>
<option VALUe="http://www..........com/damnit.mid">Baba karam</option>
</select> </p>
<p>
<input TYPE="BUTTON" VALUE="PLAY MIDI" onClick="PlaySong(midiform.list.options[midiform.list.selectedIndex].value)">
</p>
</form>
</body>
</html>
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
Status Bar چشمک يک پيغام در پائين صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script>
var yourwords = "YOUR MESSAGE HERE ( SONY CARD 20 ) ";
var speed = 300;
var control = 1;
function flash()
{
if (control == 1)
{
window.status=yourwords;
control=0;
}
else
{
window.status="";
control=1;
}
setTimeout("flash()",speed);
}
</script>
<!--Now put this inside your body code.-->
<html>
<head>
<title>New Page 3</title>
</head>
<body onLoad="flash()">
</body>
</html>
نویسنده : علی مهاجر
Status
Bar نمايش ساعت در پائين صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<html>
<head>
<title>Digital Clock - Status Bar</title>
<script Language="JavaScript">
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M." : " A.M."
window.status = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock () {
stopclock();
showtime();
}
</script>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080"
onLoad="startclock()">
</body>
</html>
نویسنده : علی مهاجر
Status Bar نمايش ساعت ، روز و تاريخ در پائين صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<HTML>
<HEAD>
<TITLE>Clock And Date</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide JavaScript From Java-Impaired Browsers
var timerID = null
var timerRunning = false
function MakeArray(size)
{
this.length = size;
for(var i = 1; i <= size; i++)
{
this[i] = "";
}
return this;
}
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false
}
function showtime () {
var now = new Date();
var year = now.getYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var day = now.getDay();
Day = new MakeArray(7);
Day[0]="SUN";
Day[1]="MON";
Day[2]="TUE";
Day[3]="WED";
Day[4]="THU";
Day[5]="FRI";
Day[6]="SAT";
var timeValue = "";
timeValue += (Day[day]) + " ";
timeValue += ((month < 10) ? " 0" : " ") + month + "-";
timeValue += date + "-" + year + " ";
timeValue += ((hours <= 12) ? hours : hours - 12);
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
timeValue += (hours < 12) ? " AM" : " PM";
window.status = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true
}
function startclock () {
stopclock();
showtime()
}
// End Hiding -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startclock();">
نویسنده : علی مهاجر
Bar نمايش پيغام به صورت حرف به حرف در پائين صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<html>
<head>
<title>Cool Status Bar Scroller</title>
<script LANGUAGE="JavaScript">
<!--
function snapIn(jumpSpaces,position) {
var msg = "YOUR MESSAGE GOES HERE !!! ........ SONY CARD 20 . COM"
var out = ""
if (killScroll) {return false}
for (var i=0; i<position; i++){
out += msg.charAt(i)}
for (i=1;i<jumpSpaces;i++) {
out += " "}
out += msg.charAt(position)
window.status = out
if (jumpSpaces <= 1) {
position++
if (msg.charAt(position) == ' ') {
position++ }
jumpSpaces = 100-position
}
else if (jumpSpaces > 3) {
jumpSpaces *= .75}
else {
jumpSpaces--}
if (position != msg.length) {
var cmd = "snapIn(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,5);
}
else {
scrolling = false
return false
}
return true
}
function snapSetup() {
if (scrolling)
if (!confirm('Re-initialize snapIn?'))
return false
killScroll = true
scrolling = true
var killID = window.setTimeout('killScroll=false',6)
scrollID = window.setTimeout('snapIn(100,0)',10)
return true
}
var scrollID = Object
var scrolling = false
var killScroll = false
// -->
</script>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080"
onLoad="snapSetup()">
</body>
</html>
نویسنده : علی مهاجر
نمايش چندين پيغام به صورت تايپ شدن در پائين صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script LANGUAGE="JavaScript">
<!--
var speed = 50 // decrease value to increase speed (must be positive)
var pause = 2500 // increase value to increase pause
var timerID = null
var bannerRunning = false
var ar = new Array()
ar[0] = "Welcome to JAVA SCRIPT CODE .... "
ar[1] = "POWERED BY WWW . SONY CARD 20 . COM ..... "
ar[2] = "Enjoy my Friend "
ar[3] = "********** Sony Card 20 . com *********** "
var currentMessage = 0
var offset = 0
function stopBanner() {
if (bannerRunning)
clearTimeout(timerID)
bannerRunning = false
}
function startBanner() {
stopBanner()
showBanner()
}
function showBanner() {
var text = ar[currentMessage]
if (offset < text.length) {
if (text.charAt(offset) == " ")
offset++
var partialMessage = text.substring(0, offset + 1)
window.status = partialMessage
offset++
timerID = setTimeout("showBanner()", speed)
bannerRunning = true
} else {
offset = 0
currentMessage++
if (currentMessage == ar.length)
currentMessage = 0
timerID = setTimeout("showBanner()", pause)
bannerRunning = true
}
}
// -->
</script>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startBanner()">
</body>
</html>
نویسنده : علی مهاجر
نمايش پيغام روز بخير طبق زمان روز
<!--Powered javas cript code by http://AliErfan84.Blogfa.com-->
<!-- ONE STEP TO INSTALL TIME MESSAGE:
1. Add the coding into the BODY of your HTML document -->
<!-- STEP ONE: Put this code into the BODY of your HTML document -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
</head>
<body>
<center>
<script LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
document.write("<center><font size=+1>")
day = new Date()
hr = day.getHours()
if (hr ==1)
document.write("بامداد بخير ")
if (hr ==2)
document.write("نيمه شب شما بخير")
if (hr ==3)
document.write("نيمه شب شما بخير .... نميروی بخوابي")
if (hr ==4)
document.write("ساعت 4 صبح شده برو بخواب")
if (hr ==5)
document.write("سحر بخير")
if (hr ==6)
document.write("صبح زود شما بخير")
if ((hr == 6) || (hr ==7) || (hr ==8) || (hr == 9) || (hr ==10))
document.write("صبح بخير")
if (hr ==11)
document.write("نيمروز بخير")
if (hr ==12)
document.write("ظهر بخير")
if (hr ==13)
document.write("بعد از ظهر شما بخير")
if ((hr==15) || (hr==16) || (hr==14))
document.write("عصر شما بخير")
if ((hr==17) || (hr==18) || (hr==19) || (hr==20) || (hr==21) || (hr==22))
document.write("شب بخير")
if (hr==23)
document.write("شب شما بخير")
if (hr==0)
document.write("نيمه شب بخير")
document.write("</font></center>")
// End -->
</script>
</center>
<!-- Script Size: 1.76 KB -->
</body>
</html>
<!-- END CODE - Powered java script code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
تغيير نمايش چندين بنر يا عکس به همراه لينک آن بنر تبليغات
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<script language="JavaScript">
<!-- Hide from old browsers
var i = 1;
//This is where you load your banners change logo220.Gif to your banner name
banner1= new Image();
banner1.src = "http://www.javacity.co.sr/logo220.gif";
banner2 = new Image();
banner2.src = "http://www.javacity.co.sr/anim44.gif";
banner3 = new Image();
banner3.src = "http://www.javacity.co.sr/baneratr.gif";
//This where you make your links for the banners banners1 is linked to links[1]
links = new Array
links[1] = "http://www.javacity.co.sr/domain.htm"
links[2] = "http://www.namafilm.com"
links[3] = "http://www.isbps.com/"
//This will show up on the status bar when the mouse is moved over the banner
description = new Array
description[1] = "DOMAIN NAD HOSTING BY SONY CARD 20"
description[2] = "BEST SITE ...... Click Here"
description[3] = "Tozihat site"
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=11;
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (i < 3){
i++;
document.banner.src = eval("banner" + i + ".src");
}
else{
i = 1;
document.banner.src = eval("banner" + i + ".src");
}
startTime();
}
else{
window.setTimeout("Timer()",1000)}
}
function clickLink(){
top.location = links[i]
}
function descript(){
window.status = description[i]
}
// -->
</script>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startTime();">
<h2 align="center">Exchange Banner</h2>
<a target="_blank" href onClick="clickLink(); return false;" onMouseOver="descript(); return true;" onMouseOut="window.status=''">
<p align="center">
<img src="http://www.javacity.co.sr/logo220.gif" href="http://www.javacity.co.sr/domain.htm" border="0" name="banner" width="468" height="60"></a><br>
</p>
<p align="center"> </p>
</body>
</html>
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
ايجاد منوی توضيحات
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<!-- TWO STEPS TO INSTALL MENU MESSAGE:
1. Add the specified code into the BODY of your HTML document
2. Put the last code into the HEAD of your HTML document -->
<!-- STEP ONE: Put this code into the BODY of your HTML document -->
<script LANGUAGE="JavaScript">
<!-- Original: Stephanie M. Clarkson (thespian@sleepingcat.com) -->
<!-- Web Site: http://www.sleepingcat.com -->
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
var messages = new Array(6);
messages[0] = "";
messages[1] = "SONY CARD 20 IS BEST SITE AT ALL IRANIAN SITE";
messages[2] = "Can you imagine how you could use it on your site?";
messages[3] = "It's great for sharing lots of information.";
messages[4] = "And doesn't take up much space! ";
messages[5] = "So, get the code and put it on your site!";
function messageReveal() {
var messageindex = document.messageForm.messagePick.selectedIndex
document.messageForm.messageField.value = messages[messageindex];
}
// End -->
</script>
<!-- STEP TWO: Put this code into the BODY of your HTML document -->
<body>
<center>
<form name="messageForm">
<p><select name="messagePick" OnChange="messageReveal()">
<option value="0">The Menu Message</option>
<option>SONY CARD 20</option>
<option>Possible uses?</option>
<option>Shares Information</option>
<option>Saves space</option>
<option>Get the code!</option>
</select> <br>
</p>
<p><textarea name="messageField" rows="5" cols="41" wrap="virtual">
نویسنده : علی مهاجر
پرواز
پروانه در سايت
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
</head>
<body>
<p>
<script language="JavaScript1.2">
//specify path to cursor image
var cursorpath="http://www.sonycard20.com/fly2.gif"
if (document.layers)
{document.write("<LAYER NAME='PoInTeRs' LEFT=800 TOP=10><img src='"+cursorpath+"' width=17 height=22></LAYER>")}
else if (document.all){document.write("<div id='pOiNtErS' style='position:absolute;top:10px;left:10px;width:17px;height:22px;z-index:50'><img src='"+cursorpath+"' width=40 height=40></div>")}
count=-1;
move=1;
function Curve(){
abc=new Array(0,1,1,1,2,3,4,0,6,-1,-1,-1,-2,-3,-4,0,-6)
for (i=0; i < abc.length; i++)
{var C=Math.round(Math.random()*[i])}
howbend=abc[C];
setTimeout('Curve()',1900);
return howbend;
}
ypos=100;
xpos=100;
degree = 600;
function MoveRandom(){
PathBend=degree+=howbend;//ok!
y = 4*Math.sin(PathBend*Math.PI/180);
x = 6*Math.cos(PathBend*Math.PI/180);
if (document.layers){
ypos+=y;
xpos+=x;
document.PoInTeRs.top=ypos+window.pageYOffset;
document.PoInTeRs.left=xpos+window.pageXOffset;
}
else if (document.all){
ypos+=y;
xpos+=x;
document.all.pOiNtErS.style.top=ypos+document.body.scrollTop;
document.all.pOiNtErS.style.left=xpos+document.body.scrollLeft;
}
T=setTimeout('MoveRandom()',50);
}
function edges(){
if (document.layers){
if (document.PoInTeRs.left >= window.innerWidth-40+window.pageXOffset)degree=Math.round(Math.random()*45+157.5);
if (document.PoInTeRs.top >= window.innerHeight-30+window.pageYOffset)degree=Math.round(Math.random()*45-112.5);
if (document.PoInTeRs.top <= 2+window.pageYOffset) degree = Math.round(Math.random()*45+67.5);//OK!
if (document.PoInTeRs.left <= 2+window.pageXOffset) degree = Math.round(Math.random()*45-22.5);//OK!
}
else if (document.all)
{
if (document.all.pOiNtErS.style.pixelLeft >= document.body.offsetWidth-45+document.body.scrollLeft)degree=Math.round(Math.random()*45+157.5);
if (document.all.pOiNtErS.style.pixelTop >= document.body.offsetHeight-35+document.body.scrollTop)degree=Math.round(Math.random()*45-112.5);
if (document.all.pOiNtErS.style.pixelTop <= 2+document.body.scrollTop) degree = Math.round(Math.random()*45+67.5);//OK!
if (document.all.pOiNtErS.style.pixelLeft <= 2+document.body.scrollLeft) degree = Math.round(Math.random()*45-22.5);//OK!
}
setTimeout('edges()',100);
}
function starteffect(){
Curve();
MoveRandom();// onUnload="opener.gO()"
edges();
}
if (document.all||document.layers)
window.onload=starteffect
</script>
</p>
</body>
</html>
<!--END CODE - Powered java script code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
حرکت
موزون عکس به دنبال موس
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<body>
<div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11">
<img src="bullet.gif" height="11" width="11">
</div>
<div id="dot1" style="position: absolute; height: 11; width: 11">
<img src="http://www.sonycard20.com/fly2.gif" height="40" width="40">
</div>
<div id="dot2" style="position: absolute; height: 11; width: 11">
<img src="http://www.sonycard20.com/fly2.gif" height="20" width="20">
</div>
<div id="dot3" style="position: absolute; height: 11; width: 11">
<img src="http://www......YOUR%20IMAGE%20.gif" height="11" width="11">
</div>
<div id="dot4" style="position: absolute; height: 11; width: 11">
<img src="bullet.gif" height="11" width="11">
</div>
<div id="dot5" style="position: absolute; height: 11; width: 11">
<img src="bullet.gif" height="11" width="11">
</div>
<div id="dot6" style="position: absolute; height: 11; width: 11">
<img src="bullet.gif" height="11" width="11">
</div>
<script LANGUAGE="JavaScript">
<!-- hide code
//Elastic Trail script (By Philip Winston @ pwinston@yahoo.com, URL: http://www.geocities.com/pwinston/)
var nDots = 7;
var Xpos = 0;
var Ypos = 0;
// fixed time step, no relation to real time
var DELTAT = .01;
// size of one spring in pixels
var SEGLEN = 10;
// spring constant, stiffness of springs
var SPRINGK = 10;
// all the physics is bogus, just picked stuff to
// make it look okay
var MASS = 1;
// Positive XGRAVITY pulls right, negative pulls left
// Positive YGRAVITY pulls down, negative up
var XGRAVITY = 0;
var YGRAVITY = 50;
// RESISTANCE determines a slowing force proportional to velocity
var RESISTANCE = 10;
// stopping criterea to prevent endless jittering
// doesn't work when sitting on bottom since floor
// doesn't push back so acceleration always as big
// as gravity
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 11;
// BOUNCE is percent of velocity retained when
// bouncing off a wall
var BOUNCE = 0.75;
var isNetscape = navigator.appName=="Netscape";
// always on for now, could be played with to
// let dots fall to botton, get thrown, etc.
var followmouse = true;
var dots = new Array();
init();
function init()
{
var i = 0;
for (i = 0; i < nDots; i++) {
dots[i] = new dot(i);
}
if (!isNetscape) {
// I only know how to read the locations of the
// <LI> items in IE
//skip this for now
// setInitPositions(dots)
}
// set their positions
for (i = 0; i < nDots; i++) {
dots[i].obj.left = dots[i].X;
dots[i].obj.top = dots[i].Y;
}
if (isNetscape) {
// start right away since they are positioned
// at 0, 0
startanimate();
} else {
// let dots sit there for a few seconds
// since they're hiding on the real bullets
setTimeout("startanimate()", 1000);
}
}
function dot(i)
{
this.X = Xpos;
this.Y = Ypos;
this.dx = 0;
this.dy = 0;
if (isNetscape) {
this.obj = eval("document.dot" + i);
} else {
this.obj = eval("dot" + i + ".style");
}
}
function startanimate() {
setInterval("animate()", 20);
}
// This is to line up the bullets with actual LI tags on the page
// Had to add -DOTSIZE to X and 2*DOTSIZE to Y for IE 5, not sure why
// Still doesn't work great
function setInitPositions(dots)
{
// initialize dot positions to be on top
// of the bullets in the <ul>
var startloc = document.all.tags("LI");
var i = 0;
for (i = 0; i < startloc.length && i < (nDots - 1); i++) {
dots[i+1].X = startloc[i].offsetLeft
startloc[i].offsetParent.offsetLeft - DOTSIZE;
dots[i+1].Y = startloc[i].offsetTop +
startloc[i].offsetParent.offsetTop + 2*DOTSIZE;
}
// put 0th dot above 1st (it is hidden)
dots[0].X = dots[1].X;
dots[0].Y = dots[1].Y - SEGLEN;
}
// just save mouse position for animate() to use
function MoveHandler(e)
{
Xpos = e.pageX;
Ypos = e.pageY;
return true;
}
// just save mouse position for animate() to use
function MoveHandlerIE() {
Xpos = window.event.x + document.body.scrollLeft;
Ypos = window.event.y + document.body.scrollTop;
}
if (isNetscape) {
document.captureEvents(Event.MOUSEMOVE);
document.onMouseMove = MoveHandler;
} else {
document.onmousemove = MoveHandlerIE;
}
function vec(X, Y)
{
this.X = X;
this.Y = Y;
}
// adds force in X and Y to spring for dot[i] on dot[j]
function springForce(i, j, spring)
{
var dx = (dots[i].X - dots[j].X);
var dy = (dots[i].Y - dots[j].Y);
var len = Math.sqrt(dx*dx + dy*dy);
if (len > SEGLEN) {
var springF = SPRINGK * (len - SEGLEN);
spring.X += (dx / len) * springF;
spring.Y += (dy / len) * springF;
}
}
function animate() {
// dots[0] follows the mouse,
// though no dot is drawn there
var start = 0;
if (followmouse) {
dots[0].X = Xpos;
dots[0].Y = Ypos;
start = 1;
}
for (i = start ; i < nDots; i++ ) {
var spring = new vec(0, 0);
if (i > 0) {
springForce(i-1, i, spring);
}
if (i < (nDots - 1)) {
springForce(i+1, i, spring);
}
// air resisitance/friction
var resist = new vec(-dots[i].dx * RESISTANCE,
-dots[i].dy * RESISTANCE);
// compute new accel, including gravity
var accel = new vec((spring.X + resist.X)/MASS + XGRAVITY,
(spring.Y + resist.Y)/ MASS + YGRAVITY);
// compute new velocity
dots[i].dx += (DELTAT * accel.X);
dots[i].dy += (DELTAT * accel.Y);
// stop dead so it doesn't jitter when nearly still
if (Math.abs(dots[i].dx) < STOPVEL &&
Math.abs(dots[i].dy) < STOPVEL &&
Math.abs(accel.X) < STOPACC &&
Math.abs(accel.Y) < STOPACC) {
dots[i].dx = 0;
dots[i].dy = 0;
}
// move to new position
dots[i].X += dots[i].dx;
dots[i].Y += dots[i].dy;
// get size of window
var height, width;
if (isNetscape) {
height = window.innerHeight + window.pageYOffset;
width = window.innerWidth + window.pageXOffset;
} else {
height = document.body.clientHeight + document.body.scrollTop;
width = document.body.clientWidth + document.body.scrollLeft;
}
// bounce off 3 walls (leave ceiling open)
if (dots[i].Y >= height - DOTSIZE - 1) {
if (dots[i].dy > 0) {
dots[i].dy = BOUNCE * -dots[i].dy;
}
dots[i].Y = height - DOTSIZE - 1;
}
if (dots[i].X >= width - DOTSIZE) {
if (dots[i].dx > 0) {
dots[i].dx = BOUNCE * -dots[i].dx;
}
dots[i].X = width - DOTSIZE - 1;
}
if (dots[i].X < 0) {
if (dots[i].dx < 0) {
dots[i].dx = BOUNCE * -dots[i].dx;
}
dots[i].X = 0;
}
// move img to new position
dots[i].obj.left = dots[i].X;
dots[i].obj.top = dots[i].Y;
}
}
// end code hiding -->
</script>
</body>
</html>
<!-- END CODE - Powered javascript code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
فشفشه در
صفحه
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<body>
<script LANGUAGE="JavaScript1.2">
<!--
//set Interval between each firework display,
var intervals=2000
var sparksOn = true;
var speed = 25;
var power = 1;
//Dont change these values-------
var documentWidth=documentHeight=randomx=randomy=leftcorner=topcorner=0
var ns=(document.layers);
var ie=(document.all);
var sparksAflyin = false;
var allDivs = new Array(10);
var totalSparks = 0;
//-------------------------------
function initAll(){
if(!ns && !ie){
sparksOn = false;
return;
}
setInterval("firework()",intervals)
if (ns)
document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE);
for(dNum=0; dNum<7; ++dNum){
if(ie)
allDivs[dNum]=eval('document.all.sDiv'+dNum+'.style');
else
allDivs[dNum]=eval('document.layers["sDiv'+dNum+'"]');
}
}
function firework(){
//below code detects the browser dimenions
if (ie){
documentWidth=document.body.clientWidth
documentHeight=document.body.clientHeight
leftcorner=document.body.scrollLeft
topcorner=document.body.scrollTop
}
else if (ns){
documentWidth=window.innerWidth
documentHeight=window.innerHeight
leftcorner=pageXOffset
topcorner=pageYOffset
}
//below code randomly generates a set of coordinates that fall within the dimension
randomx=leftcorner+Math.floor(Math.random()*documentWidth)
randomy=topcorner+Math.floor(Math.random()*documentHeight)
if(sparksOn){
if(!sparksAflyin){
sparksAflyin=true;
totalSparks=0;
for(var spark=0;spark<=6;spark++){
dx=Math.round(Math.random()*50);
dy=Math.round(Math.random()*50);
moveTo(spark,randomx,randomy,dx,dy);
}
}
}
}
function moveTo(i,tempx,tempy,dx,dy){
if(ie){
if(tempy+80>(document.body.offsetHeight+document.body.scrollTop))
tempy=document.body.offsetHeight+document.body.scrollTop-80;
if(tempx+80>(document.body.offsetWidth+document.body.scrollLeft))
tempx=document.body.offsetWidth+document.body.scrollLeft-80;
}
if(tempx>-50&&tempy>-50){
tempx+=dx;tempy+=dy;
allDivs[i].left=tempx;
allDivs[i].top=tempy;
dx-=power;dy-=power;
setTimeout("moveTo("+i+","+tempx+","+tempy+","+dx+","+dy+")",speed)
}
else
++totalSparks
if(totalSparks==7){
sparksAflyin=false;
totalSparks=0;
}
}
window.onload=initAll
//End-->
</script>
<style>
#sDiv0 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:Aqua;}
#sDiv1 {position:absolute; height:1; width:1; font-family:arial black; font-size:22px; color:red;}
#sDiv2 {position:absolute; height:1; width:1; font-family:arial black; font-size:20px; color:blue;}
#sDiv3 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:orange;}
#sDiv4 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:yellow;}
#sDiv5 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:lightgreen;}
#sDiv6 {position:absolute; height:1; width:1; font-family:arial black; font-size:20px; color:silver;}
</style>
<p></p>
<div id="sDiv0">
*</div>
<div id="sDiv1">
*</div>
<div id="sDiv2">
*</div>
<div id="sDiv3">
*</div>
<div id="sDiv4">
*</div>
<div id="sDiv5">
*</div>
<div id="sDiv6">
*</div>
</body>
</html>
<!--END CODE - Powered java script code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
تقويم در
سايت
<!--Powered javascript code by http://AliErfan84.Blogfa.com-->
<!-- ONE STEP TO INSTALL MONTHLY: DAY HIGHLIGHTED:
1. Put the code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD your HTML document -->
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<body>
<center>
<script LANGUAGE="JavaScript">
<!-- Begin
monthnames = new Array(
"January",
"Februrary",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"Decemeber");
var linkcount=0;
function addlink(month, day, href) {
var entry = new Array(3);
entry[0] = month;
entry[1] = day;
entry[2] = href;
this[linkcount++] = entry;
}
Array.prototype.addlink = addlink;
linkdays = new Array();
monthdays = new Array(12);
monthdays[0]=31;
monthdays[1]=28;
monthdays[2]=31;
monthdays[3]=30;
monthdays[4]=31;
monthdays[5]=30;
monthdays[6]=31;
monthdays[7]=31;
monthdays[8]=30;
monthdays[9]=31;
monthdays[10]=30;
monthdays[11]=31;
todayDate=new Date();
thisday=todayDate.getDay();
thismonth=todayDate.getMonth();
thisdate=todayDate.getDate();
thisyear=todayDate.getYear();
thisyear = thisyear % 100;
thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
if (((thisyear % 4 == 0)
&& !(thisyear % 100 == 0))
||(thisyear % 400 == 0)) monthdays[1]++;
startspaces=thisdate;
while (startspaces > 7) startspaces-=7;
startspaces = thisday - startspaces + 1;
if (startspaces < 0) startspaces+=7;
document.write("<table border=2 bgcolor=white ");
document.write("bordercolor=black><font color=black>");
document.write("<tr><td colspan=7><center><strong>"
+ monthnames[thismonth] + " " + thisyear
+ "</strong></center></font></td></tr>");
document.write("<tr>");
document.write("<td align=center>Su</td>");
document.write("<td align=center>M</td>");
document.write("<td align=center>Tu</td>");
document.write("<td align=center>W</td>");
document.write("<td align=center>Th</td>");
document.write("<td align=center>F</td>");
document.write("<td align=center>Sa</td>");
document.write("</tr>");
document.write("<tr>");
for (s=0;s<startspaces;s++) {
document.write("<td> </td>");
}
count=1;
while (count <= monthdays[thismonth]) {
for (b = startspaces;b<7;b++) {
linktrue=false;
document.write("<td>");
for (c=0;c<linkdays.length;c++) {
if (linkdays[c] != null) {
if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) {
document.write("<a href=\"" + linkdays[c][2] + "\">");
linktrue=true;
}
}
}
if (count==thisdate) {
document.write("<font color='FF0000'><strong>");
}
if (count <= monthdays[thismonth]) {
document.write(count);
}
else {
document.write(" ");
}
if (count==thisdate) {
document.write("</strong></font>");
}
if (linktrue)
document.write("</a>");
document.write("</td>");
count++;
}
document.write("</tr>");
document.write("<tr>");
startspaces=0;
}
document.write("</table></p>");
// End -->
</script>
</center>
<!-- Script Size: 2.98 KB -->
</body>
</html>
<!-- END CODE - Powered javascript code by http://AliErfan84.Blogfa.com-->
نویسنده : علی مهاجر
کد
قرار دادن در هم پیج
<!-- this script got from KKR-->
<table>
<TD width="100%"><A class=chlnk
style="CURSOR: hand; font-decoration: underline"
onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://AliErfan84.Blogfa.com');"
href="\">set as your home page
نویسنده : علی مهاجر
کد
پیام در ابتدای ورود کاربر
<html>
<head>
<script language="javascript" type="text/javascript">
alert("Welcome to my site")
</script>
</head>
<body>
<h1>
<!-- hide script from old browsers -->
<!--this is on example of a long JavaScript comment-->
<script language="javascript" type="text/javascript">
document.write("KKR")
//end hiding script from old browsers -->
</script>
</h1>
</body>
</html>
نویسنده : علی مهاجر
کد
جستجو در وبلاگ یا سایت
<SCRIPT language=JavaScript>
var NS4 = (document.layers);
var IE4 = (document.all);
var win = window;
var n = 0;
function findInPage(str) {
var txt, i, found;
if (str == "")
return false;
if (NS4) {
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
if (n == 0)
alert("Not found.");
}
if (IE4) {
txt = win.document.body.createTextRange();
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart("character", 1);
txt.moveEnd("textedit");
}
if (found) {
txt.moveStart("character", -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
}
else {
if (n > 0) {
n = 0;
findInPage(str);
}
else
alert("(( ببخشيد... كلمه اي كه نوشتي تو وبلاگ نيست)) ");
}
}
return false;
}
</SCRIPT>
<FORM name=search onsubmit="return findInPage(this.string.value);">
<P align=center><FONT size=3><INPUT
style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid"
onchange="n = 0;" size=11 name=string></FONT><BR><INPUT style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #aaaaaa" type=submit value=جستجو در وبلاگ ><center><font size=2pt;><font family=Times New Roman;><b><A title=persianblog href="http://www.Javascripts.persianblog.com/">Javascripts
</A><BR>
</P></FORM></DIV><BR><!-- /Search-->
نویسنده : علی مهاجر
کد
گل باران در سایت یا وبلاگ
<!-- this script got from http://AliErfan84.Blogfa.com-->
<body bgcolor='#000000' >
<!-- Start of Fireworks -->
<script language="JavaScript">
<!-- IE4+, NS4+, NS6 Fireworks script by kurt.grigg@virgin.net
CL=new Array('#ff0000','#00ff00','#ffffff','#ff00ff','#ffa500','#ffff00','#00ff00','#ffffff','#ff00ff')
CL2=new Array('#ffa500','#00ff00','#FFAAFF','#fff000','#fffffF')
Xpos=130;
Ypos=130;
I='#00ff00';
C=0;
S=5;
H=null;
W=null;
Y=null;
NS4=(document.layers);
NS6=(document.getElementById&&!document.all);
IE4=(document.all);
A=14;
E=120;
L=null;
if (NS4){
for (i=0; i < A; i++)
document.write('<LAYER NAME="nsstars'+i+'" TOP=0 LEFT=0 BGCOLOR='+I+' CLIP="0,0,2,2"></LAYER>');
}
if (NS6){
window.document.body.style.overflow='hidden';
for (i=0; i < A; i++)
document.write('<div id="ns6stars'+i+'" style="position:absolute;top:0px;left:0px;height:2px;width:2px;font-size:2px;background:'+I+'"></div>');
}
if (IE4){
document.write('<div id="ie" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < A; i++)
document.write('<div id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:'+I+';font-size:2px"></div>');
document.write('</div></div>');
}
function Fireworks(){
H=(NS4||NS6)?window.innerHeight:window.document.body.clientHeight;
W=(NS4||NS6)?window.innerWidth:window.document.body.clientWidth;
Y=(NS4||NS6)?window.pageYOffset:window.document.body.scrollTop;
for (i=0; i < A; i++){
if (IE4)L=iestars[i].style;
if (NS4)L=document.layers["nsstars"+i];
if (NS6)L=document.getElementById("ns6stars"+i).style;
var F = CL[Math.floor(Math.random()*CL.length)];
var RS=Math.round(Math.random()*2);
L.top = Ypos + E*Math.sin((C+i*5)/3)*Math.sin(C/100)
L.left= Xpos + E*Math.cos((C+i*5)/3)*Math.sin(C/100)
if (C < 110){
if (NS4){L.bgColor=I;L.clip.width=1;L.clip.height=1}
if (IE4||document.getElementById)
{L.background=I;L.width=1;L.height=1;L.fontSize=1}
}
else{
if (NS4){L.bgColor=F;L.clip.width=RS;L.clip.height=RS}
if (IE4||document.getElementById){L.background=F;L.width=RS;L.height=RS;L.fontSize=RS}
}
}
if (C > 220){
C=0;
var NC = CL2[Math.floor(Math.random()*CL2.length)];
I=NC;
E=Math.round(100+Math.random()*90);
Ypos = E+Math.round(Math.random()*(H-(E*2.2)))+Y;
Xpos = E+Math.round(Math.random()*(W-(E*2.2)));
}
C+=S;
setTimeout("Fireworks()",10);
}
Fireworks();
// -->
</script>
<!-- End of Fireworks -->
نویسنده : علی مهاجر
كد عكس به دنبال موس
توجه كنيد بايد نام عكس خود را به جاي تي 1 وارد كنيد
<div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11;">
<img src="t1.gif" height=11 width=11>
</div>
<div id="dot1" style="position: absolute; height: 11; width: 11;">
<img src="t1.gif" height=11 width=11>
</div>
<div id="dot2" style="position: absolute; height: 11; width: 11;">
<img src="t1.gif" height=11 width=11>
</div>
<div id="dot3" style="position: absolute; height: 11; width: 11;">
<img src="t1.gif" height=11 width=11>
</div>
<div id="dot4" style="position: absolute; height: 11; width: 11;">
<img src="t1.gif" height=11 width=11>
</div>
<div id="dot5" style="position: absolute; height: 11; width: 11;">
<img src="t1.gif" height=11 width=11>
</div>
<div id="dot6" style="position: absolute; height: 11; width: 11;">
<img src="t1.gif" height=11 width=11>
</div>
<script LANGUAGE="JavaScript">
<!-- hide code
var nDots = 7;
var Xpos = 0;
var Ypos = 0;
// fixed time step, no relation to real time
var DELTAT = .01;
// size of one spring in pixels
var SEGLEN = 10;
// spring constant, stiffness of springs
var SPRINGK = 10;
// all the physics is bogus, just picked stuff to
// make it look okay
var MASS = 1;
// Positive XGRAVITY pulls right, negative pulls left
// Positive YGRAVITY pulls down, negative up
var XGRAVITY = 0;
var YGRAVITY = 50;
// RESISTANCE determines a slowing force proportional to velocity
var RESISTANCE = 10;
// stopping criterea to prevent endless jittering
// doesn't work when sitting on bottom since floor
// doesn't push back so acceleration always as big
// as gravity
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 11;
// BOUNCE is percent of velocity retained when
// bouncing off a wall
var BOUNCE = 0.75;
var isNetscape = navigator.appName=="Netscape";
// always on for now, could be played with to
// let dots fall to botton, get thrown, etc.
var followmouse = true;
var dots = new Array();
init();
function init()
{
var i = 0;
for (i = 0; i < nDots; i++) {
dots[i] = new dot(i);
}
if (!isNetscape) {
// I only know how to read the locations of the
// <LI> items in IE
//skip this for now
// setInitPositions(dots)
}
// set their positions
for (i = 0; i < nDots; i++) {
dots[i].obj.left = dots[i].X;
dots[i].obj.top = dots[i].Y;
}
if (isNetscape) {
// start right away since they are positioned
// at 0, 0
startanimate();
} else {
// let dots sit there for a few seconds
// since they're hiding on the real bullets
setTimeout("startanimate()", 1000);
}
}
function dot(i)
{
this.X = Xpos;
this.Y = Ypos;
this.dx = 0;
this.dy = 0;
if (isNetscape) {
this.obj = eval("document.dot" + i);
} else {
this.obj = eval("dot" + i + ".style");
}
}
function startanimate() {
setInterval("animate()", 20);
}
// This is to line up the bullets with actual LI tags on the page
// Had to add -DOTSIZE to X and 2*DOTSIZE to Y for IE 5, not sure why
// Still doesn't work great
function setInitPositions(dots)
{
// initialize dot positions to be on top
// of the bullets in the <ul>
var startloc = document.all.tags("LI");
var i = 0;
for (i = 0; i < startloc.length && i < (nDots - 1); i++) {
dots[i+1].X = startloc[i].offsetLeft
startloc[i].offsetParent.offsetLeft - DOTSIZE;
dots[i+1].Y = startloc[i].offsetTop +
startloc[i].offsetParent.offsetTop + 2*DOTSIZE;
}
// put 0th dot above 1st (it is hidden)
dots[0].X = dots[1].X;
dots[0].Y = dots[1].Y - SEGLEN;
}
// just save mouse position for animate() to use
function MoveHandler(e)
{
Xpos = e.pageX;
Ypos = e.pageY;
return true;
}
// just save mouse position for animate() to use
function MoveHandlerIE() {
Xpos = window.event.x + document.body.scrollLeft;
Ypos = window.event.y + document.body.scrollTop;
}
if (isNetscape) {
document.captureEvents(Event.MOUSEMOVE);
document.onMouseMove = MoveHandler;
} else {
document.onmousemove = MoveHandlerIE;
}
function vec(X, Y)
{
this.X = X;
this.Y = Y;
}
// adds force in X and Y to spring for dot[i] on dot[j]
function springForce(i, j, spring)
{
var dx = (dots[i].X - dots[j].X);
var dy = (dots[i].Y - dots[j].Y);
var len = Math.sqrt(dx*dx + dy*dy);
if (len > SEGLEN) {
var springF = SPRINGK * (len - SEGLEN);
spring.X += (dx / len) * springF;
spring.Y += (dy / len) * springF;
}
}
function animate() {
// dots[0] follows the mouse,
// though no dot is drawn there
var start = 0;
if (followmouse) {
dots[0].X = Xpos;
dots[0].Y = Ypos;
start = 1;
}
for (i = start ; i < nDots; i++ ) {
var spring = new vec(0, 0);
if (i > 0) {
springForce(i-1, i, spring);
}
if (i < (nDots - 1)) {
springForce(i+1, i, spring);
}
// air resisitance/friction
var resist = new vec(-dots[i].dx * RESISTANCE,
-dots[i].dy * RESISTANCE);
// compute new accel, including gravity
var accel = new vec((spring.X + resist.X)/MASS + XGRAVITY,
(spring.Y + resist.Y)/ MASS + YGRAVITY);
// compute new velocity
dots[i].dx += (DELTAT * accel.X);
dots[i].dy += (DELTAT * accel.Y);
// stop dead so it doesn't jitter when nearly still
if (Math.abs(dots[i].dx) < STOPVEL &&
Math.abs(dots[i].dy) < STOPVEL &&
Math.abs(accel.X) < STOPACC &&
Math.abs(accel.Y) < STOPACC) {
dots[i].dx = 0;
dots[i].dy = 0;
}
// move to new position
dots[i].X += dots[i].dx;
dots[i].Y += dots[i].dy;
// get size of window
var height, width;
if (isNetscape) {
height = window.innerHeight + window.pageYOffset;
width = window.innerWidth + window.pageXOffset;
} else {
height = document.body.clientHeight + document.body.scrollTop;
width = document.body.clientWidth + document.body.scrollLeft;
}
// bounce off 3 walls (leave ceiling open)
if (dots[i].Y >= height - DOTSIZE - 1) {
if (dots[i].dy > 0) {
dots[i].dy = BOUNCE * -dots[i].dy;
}
dots[i].Y = height - DOTSIZE - 1;
}
if (dots[i].X >= width - DOTSIZE) {
if (dots[i].dx > 0) {
dots[i].dx = BOUNCE * -dots[i].dx;
}
dots[i].X = width - DOTSIZE - 1;
}
if (dots[i].X < 0) {
if (dots[i].dx < 0) {
dots[i].dx = BOUNCE * -dots[i].dx;
}
dots[i].X = 0;
}
// move img to new position
dots[i].obj.left = dots[i].X;
dots[i].obj.top = dots[i].Y;
}
}
// end code hiding -->
</script>
نویسنده : علی مهاجر
کد
ستاره باران در پس ضمینه
<FONT face=Tahoma color=white>
<html>
<head>
</head>
<body>
<!-- STEP ONE: Insert the onLoad event handler into your BODY tag -->
<BODY BGCOLOR="#000000" onLoad="fly()">
<!-- STEP TWO: Paste this code into the BODY of your HTML document -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
SmallStars = 30;
LargeStars = 10;
SmallYpos = new Array();
SmallXpos = new Array();
LargeYpos = new Array();
LargeXpos = new Array();
Smallspeed= new Array();
Largespeed= new Array();
ns=(document.layers)?1:0;
if (ns) {
for (i = 0; i < SmallStars; i++) {
document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,1,1'></LAYER>");
}
for (i = 0; i < LargeStars; i++) {
document.write("<LAYER NAME='ln"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFFF' CLIP='0,0,2,2'></LAYER>");
}
}
else {
document.write('<div style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
for (i = 0; i < SmallStars; i++) {
document.write('<div id="si" style="position:absolute;top:0;left:0;width:1px;height:1px;background:#fffff0;font-size:1px"></div>');
}
document.write('</div>');
document.write('</div>');
document.write('<div style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
for (i = 0; i < LargeStars; i++) {
document.write('<div id="li" style="position:absolute;top:0;left:0;width:2px;height:2px;background:#ffffff;font-size:2px"></div>');
}
document.write('</div>');
document.write('</div>');
}
WinHeight = (document.layers)?window.innerHeight:window.document.body.clientHeight;
WinWidth = (document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i = 0; i < SmallStars; i++) {
SmallYpos[i] = Math.round(Math.random() * WinHeight);
SmallXpos[i] = Math.round(Math.random() * WinWidth);
Smallspeed[i]= Math.random() * 5 + 1;
}
for (i = 0; i < LargeStars; i++) {
LargeYpos[i] = Math.round(Math.random() * WinHeight);
LargeXpos[i] = Math.round(Math.random() * WinWidth);
Largespeed[i] = Math.random() * 10 + 5;
}
function fly() {
var WinHeight = (document.layers)?window.innerHeight:window.document.body.clientHeight;
var WinWidth = (document.layers)?window.innerWidth:window.document.body.clientWidth;
var hscrll = (document.layers)?window.pageYOffset:document.body.scrollTop;
var wscrll = (document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i = 0; i < LargeStars; i++) {
LargeXpos[i] -= Largespeed[i];
if (LargeXpos[i] < -10) {
LargeXpos[i] = WinWidth;
LargeYpos[i] = Math.round(Math.random() * WinHeight);
Largespeed[i] = Math.random() * 10 + 5;
}
if (ns) {
document.layers['ln'+i].left = LargeXpos[i];
document.layers['ln'+i].top = LargeYpos[i] + hscrll;
}
else {
li[i].style.pixelLeft = LargeXpos[i];
li[i].style.pixelTop = LargeYpos[i] + hscrll;
}
}
for (i = 0; i < SmallStars; i++) {
SmallXpos[i] -= Smallspeed[i];
if (SmallXpos[i] < -10) {
SmallXpos[i] = WinWidth;
SmallYpos[i] = Math.round(Math.random()*WinHeight);
Smallspeed[i] = Math.random() * 5 + 1;
}
if (ns) {
document.layers['sn'+i].left = SmallXpos[i];
document.layers['sn'+i].top = SmallYpos[i]+hscrll;
}
else {
si[i].style.pixelLeft = SmallXpos[i];
si[i].style.pixelTop = SmallYpos[i]+hscrll;
}
}
setTimeout('fly()', 10);
}
// End -->
</script>
<!-- Script Size: 3.79 KB -->
</body>
</html>
نویسنده : علی مهاجر
کد
تغییر تیتر جستجو گر به صورت متحرک
<SCRIPT language=javascript>
msg = "I am the best programmer in the world";
msg = "..." + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
pos++;
if (pos > msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
</SCRIPT>
نویسنده : علی مهاجر
کد برگهای
پاییزی در سایت یا وبلاگ
<script language="JavaScript1.2">
//Pre-load your image below!
grphcs=new Array(6)
Image0=new Image();
Image0.src=grphcs[0]="http://home.ripway.com/2004-5/117697/1.gif";
Image1=new Image();
Image1.src=grphcs[1]="http://home.ripway.com/2004-5/117697/2.gif"
Image2=new Image();
Image2.src=grphcs[2]="http://home.ripway.com/2004-5/117697/3.gif"
Image3=new Image();
Image3.src=grphcs[3]="http://home.ripway.com/2004-5/117697/4.gif"
Image4=new Image();
Image4.src=grphcs[4]="http://home.ripway.com/2004-5/117697/5.gif"
Image5=new Image();
Image5.src=grphcs[5]="http://home.ripway.com/2004-5/117697/6.gif"
Amount=8; //Smoothness depends on image file size, the smaller the size the more you can use!
Ypos=new Array();
Xpos=new Array();
Speed=new Array();
Step=new Array();
Cstep=new Array();
ns=(document.layers)?1:0;
ns6=(document.getElementById&&!document.all)?1:0;
if (ns){
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*grphcs.length);
rndPic=grphcs[P];
document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+rndPic+"></LAYER>");
}
}
else{
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*grphcs.length);
rndPic=grphcs[P];
document.write('<img id="si'+i+'" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">');
}
document.write('</div></div>');
}
WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;
WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
for (i=0; i < Amount; i++){
Ypos[i] = Math.round(Math.random()*WinHeight);
Xpos[i] = Math.round(Math.random()*WinWidth);
Speed[i]= Math.random()*5+3;
Cstep[i]=0;
Step[i]=Math.random()*0.1+0.05;
}
function fall(){
var WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;
var WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
var hscrll=(ns||ns6)?window.pageYOffset:document.body.scrollTop;
var wscrll=(ns||ns6)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < Amount; i++){
sy = Speed[i]*Math.sin(90*Math.PI/180);
sx = Speed[i]*Math.cos(Cstep[i]);
Ypos[i]+=sy;
Xpos[i]+=sx;
if (Ypos[i] > WinHeight){
Ypos[i]=-60;
Xpos[i]=Math.round(Math.random()*WinWidth);
Speed[i]=Math.random()*5+3;
}
if (ns){
document.layers['sn'+i].left=Xpos[i];
document.layers['sn'+i].top=Ypos[i]+hscrll;
}
else if (ns6){
document.getElementById("si"+i).style.left=Math.min(WinWidth,Xpos[i]);
document.getElementById("si"+i).style.top=Ypos[i]+hscrll;
}
else{
eval("document.all.si"+i).style.left=Xpos[i];
eval("document.all.si"+i).style.top=Ypos[i]+hscrll;
}
Cstep[i]+=Step[i];
}
setTimeout('fall()',20);
}
window.onload=fall
//-->
</script>
نویسنده : علی مهاجر
کد
جستجوی گوگل در سایت یا وبلاگ
<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.com/search">
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif" <br>border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT TYPE=hidden name=hl value="en">
<INPUT type=submit name=btnG VALUE="Google Search">
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->
نویسنده : علی مهاجر
کد
جستجوگر ام اس ان در سایت یا وبلاگ
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<table BORDER="0" WIDTH="222" HEIGHT="18">
<tr>
<td WIDTH="214" HEIGHT="10">
<form NAME="search" ID="search" ACTION="http://search.msn.com/results.asp" METHOD="get">
<p><a HREF="http://www.msn.com">
<img SRC="http://go.msn.com/AG/E/0.asp" width="61" height="33" BORDER="0" ALT="Go to msn.com"></a><font FACE="arial" SIZE="2"><strong>Search
<font COLOR="#808080">the Web for:</font></strong></font><br>
<input TYPE="text" ID="q" SIZE="18" MAXLENGTH="251" NAME="q" VCARD_NAME="SearchText"><input TYPE="submit" VALUE="Search" NAME="B1"><input TYPE="hidden" NAME="FORM" VALUE="FRNT"><input TYPE="hidden" NAME="un" VALUE="doc"><input TYPE="hidden" NAME="v" VALUE="1"></p>
</form>
</td>
</tr>
<tr>
<td WIDTH="214" HEIGHT="21" VALIGN="bottom">
<p ALIGN="center"><font SIZE="1" FACE="arial">
<a HREF="http://search.msn.com/advanced.asp?MT=&RS=CHECKED&Form=FRNT">Use
Advanced Search</a></font></td>
</tr>
</table>
<p> </p>
</body>
</html>
</body>
</html>
نویسنده : علی مهاجر
کد
خروج از جستجو گر
<!-- Start of Close Browser Script -->
<!-- When the "Close Window" button is clicked, this script
will close the browser window that the webpage is in.
-->
<script language="JavaScript">
<!--
function closeIt() {
close();
}
// -->
</script>
<center>
<form>
<input type=button value="Close Window" onClick="closeIt()">
</form>
</center>
<!-- End of Close Browser Script -->
نویسنده : علی مهاجر
کد
رقص متن در استاتوس بار
<!-- DESCRIPTION: This script will make your status message slide into place. Neat effect.
INSTRUCTIONS: Place this script in the BODY tags of
your webpage. Then place the appropriate message in the var msg value.
FUNCTIONALITY: Works in both Netscape and IE.
//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.
-->
<BODY onLoad="timerONE=window.setTimeout('slide(120,0)',20);">
<SCRIPT LANGUAGE="JavaScript">
function slide(jumpSpaces,position) {
var msg = "This JavaScript will slide in your desired message....Cool...isn't it???.......drink more coffee"
var out = ""
if (endScroll) {return false}
for (var i=0; i<position; i++)
{out += msg.charAt(i)}
for (i=1;i<jumpSpaces;i++)
{out += " "}
out += msg.charAt(position)
window.status = out
if (jumpSpaces <= 1) {
position++
if (msg.charAt(position) == ' ')
{position++ }
jumpSpaces = 100-position
} else if (jumpSpaces > 3)
{jumpSpaces *= .75}
else
{jumpSpaces--}
if (position != msg.length) {
var cmd = "slide(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,5);
} else {
scrolling = false
return false
}
return true
}
function ccSetup() {
if (scrolling)
if (!confirm('Re-initialize slide?'))
return false
endScroll = true
scrolling = true
var killID = window.setTimeout('endScroll=false',6)
scrollID = window.setTimeout('slide(100,0)',10)
return true
}
var scrollID = Object
var scrolling = false
var endScroll = false
</SCRIPT>
نویسنده : علی مهاجر
کد
یک منوی جالب برای خارجی
<!-- START OF Watermark Navigation Menu DHTML --><!-- START OF Watermark Navigation Menu DHTML -->
<!-- SUMMARY BRIEF
This DHTML script will make a navigation menu
that will follow your screen as you scroll,
kind of like the old Geocities™ watermark.
Look through the code for comments that will
tell you where to change the code to configure
it how you want in order to display the links
that you want.
-->
<!-- Put this code inside of your <HEAD> tag. -->
<STYLE TYPE="text/css">
<!--
.menuheader {
BORDER-COLOR : #000000 ;
cursor : hand ;
Border-Left : #000000 ;
Border-Top : #000000 ;
Padding-Left : 1px ;
Padding-Top : 1px ;
Background-Color : #000000 ;
}
.menu {
Background-Color : white ;
}
.home {
cursor : hand ;
}
.menulinks {
text-decoration:none;
}
//-->
</STYLE>
<!-- Put this code inside of your <BODY> tag on your page, but OUTSIDE of any other tags. This can NOT be inside of any other tags on your page. -->
<SCRIPT Language="Javascript1.2">
<!--
///////////////////////////////////////////////////////////////
// Change the width and placement of the menu on the page below.
///////////////////////////////////////////////////////////////
var menuwidth=110
var offsetleft=10
var offsettop=10
var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}
setTimeout("makeStatic()",0);
}
if (ie4||ns6) {document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="white">')}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR=black><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}
///////////////////////////////////////////////////////////////
// Change the name of the menu (the text at the top) below.
// You can also shange the font face, size and border colors.
///////////////////////////////////////////////////////////////
if (ie4||ns6||ns4)
document.write('<TR><TD BGCOLOR="#3399FF" BORDERCOLORDARK="#99CCFF" BORDERCOLORLIGHT="#003399"><P ALIGN=CENTER><FONT SIZE="4" FACE=ARIAL>Navigation</FONT></TD></TR>')
var menui = new Array();
var menul = new Array();
///////////////////////////////////////////////////////////////
// Edit menus listing here. You can make as many as you need,
// just make sure that the numbers go up in order correctly.
// The "menui" variables are the actual link text that will
// show up in the menu. The "menul" variables are the URLs
// that match the text displayed there.
///////////////////////////////////////////////////////////////
menui[0]="CoffeeCup Software";
menui[1]="CoffeeCup HTML Editor";
menui[2]="CoffeeCup Help Site";
menui[3]="CoffeeCup Site Map";
menui[4]="Other CoffeeCup Products";
menui[5]="Bob & Larry\'s Free Stuff";
menui[6]="About CoffeeCup Software";
menui[7]="Bluedomino Webhosting";
menul[0]="http://www.webloger.5u.com";
menul[1]="http://www.webloger.5u.com";
menul[2]="http://www.webloger.5u.com";
menul[3]="http://www.webloger.5u.com";
menul[4]="http://www.webloger.5u.com";
menul[5]="http://www.webloger.5u.com";
menul[6]="http://www.webloger.5u.com";
menul[7]="http://www.webloger.5u.com";
for (i=0;i<=menui.length-1;i++)
///////////////////////////////////////////////////////////////
// You can change table cell background colors below.
// Just change the color names to whatever you want,
// but do NOT change any other code.
///////////////////////////////////////////////////////////////
if (ie4||ns6) {document.write('<TR><TD BORDERCOLOR="white" ONCLICK="location=\''+menul[i]+'\'" onmouseover="className=\'menuheader\'" onMouseout="className=\'menu\'"><CENTER><FONT>'+menui[i]+'</FONT></TD></TR>')}
else if (ns4){document.write('<TR><TD BGCOLOR="white"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'yellow\'" onmouseout="bgColor=\'white\'"><CENTER><A HREF="'+menul[i]+'" class=menulinks>'+menui[i]+'</A></CENTER></LAYER></ILAYER></TD></TR>')}
if (ie4||ns6) {document.write('</TABLE></span>')}
else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}
function menu3(){
if (ns6||ie4||ns4)
makeStatic()
}
window.onload=menu3
//-->
</SCRIPT>
<!-- END OF Watermark Navigation Menu DHTML -->
<!-- SUMMARY BRIEF
This DHTML script will make a navigation menu
that will follow your screen as you scroll,
kind of like the old Geocities™ watermark.
Look through the code for comments that will
tell you where to change the code to configure
it how you want in order to display the links
that you want.
-->
<!-- Put this code inside of your <HEAD> tag. -->
<STYLE TYPE="text/css">
<!--
.menuheader {
BORDER-COLOR : #000000 ;
cursor : hand ;
Border-Left : #000000 ;
Border-Top : #000000 ;
Padding-Left : 1px ;
Padding-Top : 1px ;
Background-Color : #000000 ;
}
.menu {
Background-Color : white ;
}
.home {
cursor : hand ;
}
.menulinks {
text-decoration:none;
}
//-->
</STYLE>
<!-- Put this code inside of your <BODY> tag on your page, but OUTSIDE of any other tags. This can NOT be inside of any other tags on your page. -->
<SCRIPT Language="Javascript1.2">
<!--
///////////////////////////////////////////////////////////////
// Change the width and placement of the menu on the page below.
///////////////////////////////////////////////////////////////
var menuwidth=110
var offsetleft=10
var offsettop=10
var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}
setTimeout("makeStatic()",0);
}
if (ie4||ns6) {document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="white">')}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR=black><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}
///////////////////////////////////////////////////////////////
// Change the name of the menu (the text at the top) below.
// You can also shange the font face, size and border colors.
///////////////////////////////////////////////////////////////
if (ie4||ns6||ns4)
document.write('<TR><TD BGCOLOR="#3399FF" BORDERCOLORDARK="#99CCFF" BORDERCOLORLIGHT="#003399"><P ALIGN=CENTER><FONT SIZE="4" FACE=ARIAL>Navigation</FONT></TD></TR>')
var menui = new Array();
var menul = new Array();
///////////////////////////////////////////////////////////////
// Edit menus listing here. You can make as many as you need,
// just make sure that the numbers go up in order correctly.
// The "menui" variables are the actual link text that will
// show up in the menu. The "menul" variables are the URLs
// that match the text displayed there.
///////////////////////////////////////////////////////////////
menui[0]="CoffeeCup Software";
menui[1]="CoffeeCup HTML Editor";
menui[2]="CoffeeCup Help Site";
menui[3]="CoffeeCup Site Map";
menui[4]="Other CoffeeCup Products";
menui[5]="Bob & Larry\'s Free Stuff";
menui[6]="About CoffeeCup Software";
menui[7]="Bluedomino Webhosting";
menul[0]="http://www.javakhafan.9f.com";
menul[1]="http://www.javakhafan.9f.com";
menul[2]="http://www.javakhafan.9f.com";
menul[3]="http://www.javakhafan.9f.com";
menul[4]="http://www.javakhafan.9f.com";
menul[5]="http://www.javakhafan.9f.com";
menul[6]="http://www.javakhafan.9f.com";
menul[7]="http://www.javakhafan.9f.com";
for (i=0;i<=menui.length-1;i++)
///////////////////////////////////////////////////////////////
// You can change table cell background colors below.
// Just change the color names to whatever you want,
// but do NOT change any other code.
///////////////////////////////////////////////////////////////
if (ie4||ns6) {document.write('<TR><TD BORDERCOLOR="white" ONCLICK="location=\''+menul[i]+'\'" onmouseover="className=\'menuheader\'" onMouseout="className=\'menu\'"><CENTER><FONT>'+menui[i]+'</FONT></TD></TR>')}
else if (ns4){document.write('<TR><TD BGCOLOR="white"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'yellow\'" onmouseout="bgColor=\'white\'"><CENTER><A HREF="'+menul[i]+'" class=menulinks>'+menui[i]+'</A></CENTER></LAYER></ILAYER></TD></TR>')}
if (ie4||ns6) {document.write('</TABLE></span>')}
else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}
function menu3(){
if (ns6||ie4||ns4)
makeStatic()
}
window.onload=menu3
//-->
</SCRIPT>
<!-- END OF Watermark Navigation Menu DHTML -->
نویسنده : علی مهاجر
کد رفتن
به بالای صفحه
<!-- START OF Watermark Jump to Top Link DHTML -->
<!-- SUMMARY BRIEF
This DHTML script will put a small watermark
link in the bottom right corner of your page
that will stay there even when the page scrolls.
This link will always take the user back to
the top of the page.
-->
<!-- Put this portion of the script inside of your <HEAD> tag -->
<script>
<!--
// Change this text to the text that you want to be displayed as the link on your page.
var displayed="<nobr><font size=2 face=Arial><b>[Top]</b></font></nobr>"
// === DO NOT EDIT ANYTHING BELOW THIS LINE!!! === //
var logolink='javascript:window.scrollTo(0,0)'
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (ns4)
setTimeout("window.onresize=regenerate",400)
}
if (ie4||ns6)
document.write('<span id="logo" style="position:absolute;top:-300;z-index:100">'+displayed+'</span>')
function createtext(){ //function for NS4
staticimage=new Layer(5)
staticimage.left=-300
staticimage.document.write('<a href="'+logolink+'">'+displayed+'</a>')
staticimage.document.close()
staticimage.visibility="show"
regenerate2()
staticitns()
}
function staticit(){ //function for IE4/ NS6
var w2=ns6? pageXOffset+w : document.body.scrollLeft+w
var h2=ns6? pageYOffset+h : document.body.scrollTop+h
crosslogo.style.left=w2
crosslogo.style.top=h2
}
function staticit2(){ //function for NS4
staticimage.left=pageXOffset+window.innerWidth-staticimage.document.width-28
staticimage.top=pageYOffset+window.innerHeight-staticimage.document.height-10
}
function inserttext(){ //function for IE4/ NS6
if (ie4)
crosslogo=document.all.logo
else if (ns6)
crosslogo=document.getElementById("logo")
crosslogo.innerHTML='<a href="'+logolink+'">'+displayed+'</a>'
w=ns6? window.innerWidth-crosslogo.offsetWidth-20 : document.body.clientWidth-crosslogo.offsetWidth-10
h=ns6? window.innerHeight-crosslogo.offsetHeight-15 : document.body.clientHeight-crosslogo.offsetHeight-10
crosslogo.style.left=w
crosslogo.style.top=h
if (ie4)
window.onscroll=staticit
else if (ns6)
startstatic=setInterval("staticit()",100)
}
if (ie4||ns6){
window.onload=inserttext
window.onresize=new Function("window.location.reload()")
}
else if (ns4)
window.onload=createtext
function staticitns(){ //function for NS4
startstatic=setInterval("staticit2()",90)
}
//-->
</script>
<!-- END OF Watermark Jump to Top Link DHTML -->
نویسنده : علی مهاجر
کد حرکت
جستجوگر به صورت بسیار جالب
<!-- Start of Browser Shake JavaScript -->
<!-- This script causes your entire browser window to shake. ::rumble:: -->
<!-- Instructions: Just put the beginning of this code inside your pages
'<head>' tags and the later part inside your pages '<body>' tags. -->
<!-- Script supplied with CoffeeCup HTML Editor -->
<!-- www.coffeecup.com -->
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<script>
function drop(n) {
if(self.moveBy){
self.moveBy (0,-900);
for(i = n; i > 0; i--){
self.moveBy(0,3);
}
for(j = 8; j > 0; j--){
self.moveBy(0,j);
self.moveBy(j,0);
self.moveBy(0,-j);
self.moveBy(-j,0);
}
}
}
</script>
<SCRIPT language="JavaScript">
<!--
var TrackRed= 0x00; //(RED) Replace the values after '0x' with the
var TrackGreen= 0x00; //(GREEN) two-letter/number hexadecimal color codes
var TrackBlue= 0x00; //(BLUE) in the BODY tag (after bgcolor=).
function FadeTo(steps,red,green,blue)
{
for (var i = 0; i <= steps; i++)
{
var endpart = i/steps;
var startpart = 1 - endpart;
document.bgColor =
Math.floor(TrackRed * startpart + red * endpart)*256*256 +
Math.floor(TrackGreen * startpart + green * endpart)*256 +
Math.floor(TrackBlue * startpart + blue * endpart);
}
TrackRed=red; TrackGreen=green; TrackBlue=blue;
}
//-->
</SCRIPT>
<STYLE TYPE="text/css">
<!--
A {text-decoration:none;}
A:hover {color:silver;}
//-->
</STYLE>
</head>
<body bgcolor="black" text="silver" link="silver"
vlink="silver" alink="silver" onload="drop(300); FadeTo(50,0xFF,0xFF,0xFF);">
<p align="center"><b><font face="Tahoma" size="2">Created By
<a href="http://www.webloger.5u.com/">Webloger.5u.com</a></font></b></p>
</body>
</html>
<!-- End of Browser Shake JavaScript -->
نویسنده : علی مهاجر
کد
تغییر رنگ پس زمینه
<!-- Start of Change BackGround Color-->
<!-- DESCRIPTION: This will allow the user to change the background color of your page. Neat trick.
INSTRUCTIONS: Place this script anywhere in the <BODY> tag.
FUNCTIONALITY: Works in both Netscape and IE.
-->
<!--
//Modified by CoffeeCup Software
//This code is Copyright (c) 1998 CoffeeCup Software
//All rights reserved. License is granted to a single user to
//reuse this code on a personal or business Web Site.
// -->
<CENTER>
<FORM>
<FONT FACE="VERDANA, ARIAL"><B>Choose a background color:</B></FONT>
<SELECT name="ccGround" size="1" onChange=(document.bgColor=ccGround.options[ccGround.selectedIndex].value)>
<OPTION value="408080" target="1" selected>Cool Green
<OPTION value="C0C0C0" target="1">Cool Grey
<OPTION value="000000" target="1">Black
<OPTION value="730200" target="1">DarkRed
<OPTION value="231800" target="1">Brown
<OPTION value="044302" target="1">DarkGreen
<OPTION value="0D09A3" target="1">Dark Blue
<OPTION value="808040" target="1">Avocado
<OPTION value="800080" target="1">Purple
<OPTION value="444444" target="1">Gray
<OPTION value="FF0400" target="1">Red
<OPTION value="EFE800" target="1">Yellow
<OPTION value="05EF00" target="1">Green
<OPTION value="0206FF" target="1">Blue
<OPTION value="AE08EF" target="1">Violet
<OPTION value="FF8C8A" target="1">Mauve
<OPTION value="FF80FF" target="1">Pink
<OPTION value="FFCCCC" target="1">Peach
<OPTION value="FFCC99" target="1">Orange
<OPTION value="000080" target="1">Darker Blue
<OPTION value="808080" target="1">Dark Grey
<OPTION value="D5CCBB" target="1">Tan
<OPTION value="DDDDDD" target="1">LightGray
<OPTION value="FBFF73" target="1">Light Yellow
<OPTION value="7CFF7D" target="1">LightGreen
<OPTION value="A6BEFF" target="1">Light Blue
<OPTION value="FFFFFF" target="1">White
</SELECT></FORM></CENTER>
<!-- Start of Change BackGround Color-->
نویسنده : علی مهاجر
کد
قراردادن دکمه عقب و جلو
<!-- Start of Back/Forward Buttons Script-->
<!-- Instructions: Just put this script anywhere on your webpage
and you will give your visitor 2 Back and Forward Navigation
buttons. Designed for websites that have multiple webpages.
-->
<SCRIPT LANGUAGE="JavaScript">
<!-- hide this script tag's contents from old browsers
function goHist(a)
{
history.go(a); // Go back one.
}
//<!-- done hiding from old browsers -->
</script>
<FORM METHOD="post">
<INPUT TYPE="button" VALUE=" BACK " onClick="goHist(-1)">
<INPUT TYPE="button" VALUE="FORWARD" onClick="goHist(1)">
</form>
<!-- End of Back/Forward Buttons Script -->
نویسنده : علی مهاجر
کد دکمه
ای برای پرینت از صفحه
<!-- Print Page Script
Use this script to have your
users print your HTML page
-->
<SCRIPT LANGUAGE="JavaScript">
if (window.print) {
document.write('<form> '
+ '<input type=button name=print value="Click" '
+ 'onClick="javascript:window.print()"> To Print this page!</form>');
}
// End -->
</script>
نویسنده : علی مهاجر
کدقرار
دادن ماشین حساب
<!-- Start of CoffeeCup Calculator Script -->
<!-- A Simple Calculator -->
<!-- Instructions: Just put this script anywhere on your webpage
between the body tags and you will have a calculator for your visitors! -->
<!-- Script supplied with CoffeeCup HTML Editor -->
<!-- www.coffeecup.com -->
<CENTER>
<FORM name="Keypad" action="">
<TABLE>
<B>
<TABLE border=2 width=50 height=60 cellpadding=1 cellspacing=5>
<TR>
<TD colspan=3 align=middle>
<input name="ReadOut" type="Text" size=24 value="0" width=100%>
</TD>
<TD
</TD>
<TD>
<input name="btnClear" type="Button" value=" C " onclick="Clear()">
</TD>
<TD><input name="btnClearEntry" type="Button" value=" CE " onclick="ClearEntry()">
</TD>
</TR>
<TR>
<TD>
<input name="btnSeven" type="Button" value=" 7 " onclick="NumPressed(7)">
</TD>
<TD>
<input name="btnEight" type="Button" value=" 8 " onclick="NumPressed(8)">
</TD>
<TD>
<input name="btnNine" type="Button" value=" 9 " onclick="NumPressed(9)">
</TD>
<TD>
</TD>
<TD>
<input name="btnNeg" type="Button" value=" +/- " onclick="Neg()">
</TD>
<TD>
<input name="btnPercent" type="Button" value=" % " onclick="Percent()">
</TD>
</TR>
<TR>
<TD>
<input name="btnFour" type="Button" value=" 4 " onclick="NumPressed(4)">
</TD>
<TD>
<input name="btnFive" type="Button" value=" 5 " onclick="NumPressed(5)">
</TD>
<TD>
<input name="btnSix" type="Button" value=" 6 " onclick="NumPressed(6)">
</TD>
<TD>
</TD>
<TD align=middle><input name="btnPlus" type="Button" value=" + " onclick="Operation('+')">
</TD>
<TD align=middle><input name="btnMinus" type="Button" value=" - " onclick="Operation('-')">
</TD>
</TR>
<TR>
<TD>
<input name="btnOne" type="Button" value=" 1 " onclick="NumPressed(1)">
</TD>
<TD>
<input name="btnTwo" type="Button" value=" 2 " onclick="NumPressed(2)">
</TD>
<TD>
<input name="btnThree" type="Button" value=" 3 " onclick="NumPressed(3)">
</TD>
<TD>
</TD>
<TD align=middle><input name="btnMultiply" type="Button" value=" * " onclick="Operation('*')">
</TD>
<TD align=middle><input name="btnDivide" type="Button" value=" / " onclick="Operation('/')">
</TD>
</TR>
<TR>
<TD>
<input name="btnZero" type="Button" value=" 0 " onclick="NumPressed(0)">
</TD>
<TD>
<input name="btnDecimal" type="Button" value=" . " onclick="Decimal()">
</TD>
<TD colspan=3>
</TD>
<TD>
<input name="btnEquals" type="Button" value=" = " onclick="Operation('=')">
</TD>
</TR>
</TABLE>
</TABLE>
</B>
</FORM>
</CENTER>
<font face="Verdana, Arial, Helvetica" size=2>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var FKeyPad = document.Keypad;
var Accumulate = 0;
var FlagNewNum = false;
var PendingOp = "";
function NumPressed (Num) {
if (FlagNewNum) {
FKeyPad.ReadOut.value = Num;
FlagNewNum = false;
}
else {
if (FKeyPad.ReadOut.value == "0")
FKeyPad.ReadOut.value = Num;
else
FKeyPad.ReadOut.value += Num;
}
}
function Operation (Op) {
var Readout = FKeyPad.ReadOut.value;
if (FlagNewNum && PendingOp != "=");
else
{
FlagNewNum = true;
if ( '+' == PendingOp )
Accumulate += parseFloat(Readout);
else if ( '-' == PendingOp )
Accumulate -= parseFloat(Readout);
else if ( '/' == PendingOp )
Accumulate /= parseFloat(Readout);
else if ( '*' == PendingOp )
Accumulate *= parseFloat(Readout);
else
Accumulate = parseFloat(Readout);
FKeyPad.ReadOut.value = Accumulate;
PendingOp = Op;
}
}
function Decimal () {
var curReadOut = FKeyPad.ReadOut.value;
if (FlagNewNum) {
curReadOut = "0.";
FlagNewNum = false;
}
else
{
if (curReadOut.indexOf(".") == -1)
curReadOut += ".";
}
FKeyPad.ReadOut.value = curReadOut;
}
function ClearEntry () {
FKeyPad.ReadOut.value = "0";
FlagNewNum = true;
}
function Clear () {
Accumulate = 0;
PendingOp = "";
ClearEntry();
}
function Neg () {
FKeyPad.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1;
}
function Percent () {
FKeyPad.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accumulate);
}
// End -->
</SCRIPT>
نویسنده : علی مهاجر
کد
ساعت در وبلاگ یا سایت
<SCRIPT
LANGUAGE="JavaScript">
var timerID = null;
var timerRunning = false;
function stopclock ()
{
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime ()
{
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M." : " A.M."
document.clock.face.value = timeValue;
// you could replace the above with this
// and have a clock on the status bar:
// window.status = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock ()
{
// Make sure the clock is stopped
stopclock();
showtime();
}
</SCRIPT>
<BODY onLoad="startclock(); timerONE=window.setTimeout" BGCOLOR="000080"
TEXT="ffffff">
<CENTER><form name="clock" onSubmit="0">
<input type="text" name="face" size=13 value=""></CENTER>
نویسنده : علی مهاجر
کد
رنگ به صورت تصادفی
<script>
// Select fade-effect below:
// Set 1 if the background may fade from dark to medium
// Set 2 if the background may fade from light to medium
// Set 3 if the background may fade from very dark to very light light
// Set 4 if the background may fade from light to very light
// Set 5 if the background may fade from dark to very dark
var fade_effect=3
// What type of gradient should be applied Internet Explorer 5x or higher?
// Set "none" or "horizontal" or "vertical"
var gradient_effect="horizontal"
// Speed higher=slower
var speed=60
///////////////////////////////////////////////////////////////////////////
// CONFIGURATION ENDS HERE
///////////////////////////////////////////////////////////////////////////
var browserinfos=navigator.userAgent
var ie4=document.all&&!document.getElementById
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var opera=browserinfos.match(/Opera/)
var browserok=ie4||ie5||ns4||ns6||opera
if (fade_effect==1) {
var darkmax=1
var lightmax=127
}
if (fade_effect==2) {
var darkmax=127
var lightmax=254
}
if (fade_effect==3) {
var darkmax=1
var lightmax=254
}
if (fade_effect==4) {
var darkmax=190
var lightmax=254
}
if (fade_effect==5) {
var darkmax=1
var lightmax=80
}
var hexc = new Array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F')
var newred
var newgreen
var newblue
var oldred
var oldgreen
var oldblue
var redcol_1
var redcol_2
var greencol_1
var greencol_2
var bluecol_1
var bluecol_2
var oldcolor
var newcolor
var firsttime=true
var stepred=1
var stepgreen=1
var stepblue=1
function setrandomcolor() {
var range=(lightmax-darkmax)
if (firsttime) {
newred=Math.ceil(range*Math.random())+darkmax
newgreen=Math.ceil(range*Math.random())+darkmax
newblue=Math.ceil(range*Math.random())+darkmax
firsttime=false
}
oldred=Math.ceil(range*Math.random())+darkmax
oldgreen=Math.ceil(range*Math.random())+darkmax
oldblue=Math.ceil(range*Math.random())+darkmax
stepred=newred-oldred
if (oldred>newred) {stepred=1}
else if (oldred<newred) {stepred=-1}
else {stepred=0}
stepgreen=newgreen-oldgreen
if (oldgreen>newgreen) {stepgreen=1}
else if (oldgreen<newgreen) {stepgreen=-1}
else {stepgreen=0}
stepblue=newblue-oldblue
if (oldblue>newblue) {stepblue=1}
else if (oldblue<newblue) {stepblue=-1}
else {stepblue=0}
fadebg()
}
function fadebg() {
if (newred==oldred) {stepred=0}
if (newgreen==oldgreen) {stepgreen=0}
if (newblue==oldblue) {stepblue=0}
newred+=stepred
newgreen+=stepgreen
newblue+=stepblue
if (stepred!=0 || stepgreen!=0 || stepblue!=0) {
redcol_1 = hexc[Math.floor(newred/16)];
redcol_2 = hexc[newred%16];
greencol_1 = hexc[Math.floor(newgreen/16)];
greencol_2 = hexc[newgreen%16];
bluecol_1 = hexc[Math.floor(newblue/16)];
bluecol_2 = hexc[newblue%16];
newcolor="#"+redcol_