۱۳۹۰/۶/۱۱، ۰۴:۱۱:۵۹ صبح
درود
اول از همه بگم اگر بعضی هاش تکراری بود به بزرگی خودتون ببخشید
کد اول تغییر رنگ پیام به صورت خودکار میباشد
دو کد جالب ک من شیفته اون شدم
حرکت لینک به صورت رندم و ورود به صفحه ای خاص
این کد جاوا اسکریپت لینک از بالا به پایین حرکت میکند و به صفحه ای که به صورت تصادفی مشخص شده میرود
بازم در همین تاپیک کد های زیبا قرار میدم
اول از همه بگم اگر بعضی هاش تکراری بود به بزرگی خودتون ببخشید
کد اول تغییر رنگ پیام به صورت خودکار میباشد
کد php:
<b>
<script>
/*
RAINBOW TEXT Script by Matt Hedgecoe (c) 2002
Featured on JavaScript Kit
For this script, visit http://www.javascripts.8k.com
*/
// ********** MAKE YOUR CHANGES HERE
var text="نوشتن متن در این قسمت" // YOUR TEXT
var speed=80 // SPEED OF FADE
// ********** LEAVE THE NEXT BIT ALONE!
if (document.all||document.getElementById){
document.write('<span id="highlight">' + text + '</span>')
var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight
}
else
document.write(text)
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
var r=1
var g=1
var b=1
var seq=1
function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}
function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",speed)
}
starteffect()
</script>
</b>
حرکت لینک به صورت رندم و ورود به صفحه ای خاص
این کد جاوا اسکریپت لینک از بالا به پایین حرکت میکند و به صفحه ای که به صورت تصادفی مشخص شده میرود
کد php:
<script>
/*
Wheel of links script
By JavaScript Kit (http://javascripts.8k.com)
Over 200+ free scripts here!
*/
var count=0
function dothis(){
setTimeout("document.wheel.wheel2.selectedIndex =1000",100)
setTimeout("document.wheel.wheel2.selectedIndex =count",200)
setTimeout("document.wheel.wheel2.selectedIndex =1000",300)
setTimeout("document.wheel.wheel2.selectedIndex =count",400)
setTimeout("document.wheel.wheel2.selectedIndex =1000",500)
setTimeout("document.wheel.wheel2.selectedIndex =count",600)
setTimeout("window.location=document.wheel.wheel2.options[document.wheel.wheel2.selectedIndex].value",800)
}
function animate(){
var countfinal=Math.round(Math.random()*(document.wheel.wheel2.length-1))
document.wheel.wheel2.selectedIndex =count
if (count==countfinal){
dothis()
return
}
if (count<document.wheel.wheel2.length)
count++
else
count=0
setTimeout("animate()",50)
}
</script>
<form method="POST" name="wheel">
<div align="center"><center><p><select name="wheel2" size="8">
<option value="http://parsrah.com">انجمن پارس راه</option>
<option value="http://parsrah.com">انجمن پارس راه</option>
<option value="http://parsrah.com">انجمن پارس راه</option>
<option value="http://parsrah.com">انجمن پارس راه</option>
<option value="http://parsrah.com">انجمن پارس راه</option>
<option value="http://parsrah.com">انجمن پارس راه</option>
<option value="http://parsrah.com">انجمن پارس راه</option>
<option value="http://parsrah.com">انجمن پارس راه</option>
</select></p>
</center></div><div align="center"><center><p><input type="button" value="کلیک کنید!"
name="B1" onClick="animate()"></p>
</center></div>
</form>