این اسکریپت پیغام شما را به چند قسمت تقسیم و با آرایش منظمی همراه با یک افکت پشت سر هم نمایش می دهد .
نیازمندی سیستم :
+IE 5+, Netscape 7+, Mozilla 1.2+, Opera 7
کد Html :
کد اول را زیر تگ < head> و کد دوم را زیر تگ < body> قرار دهید.
< !--
Author : Richard Hucko
Site : http://www.BaharRayaneh.net
Email : info@baharrayaneh.net
-- >
< script language="JavaScript" type="text/javascript">
< !--
var message=new Array("Welcome","To","BaharRayaneh.Net","All About","Computer and Internet","and More . . .","Www.BaharRayaneh.Net");
var POSTOP=20;
var POSLEFT=40;
var posTP=POSTOP,posTN=-(POSTOP),posLP=POSLEFT,posLN=-(POSLEFT);
var gcount=0;
var count=0;
var bool=true;
var spans=new Array(5);
function Hucko()
{
for(var x=0;x
{
spans[x]=document.getElementById("sid"+x);
if(x!=2)
setSpanID(x);
spans[x].onclick=DYNAMICSCRIPTS;
// - JavaScript Created By Richard Hucko, Kaneohe Hawaii 96744
}
Richard_Huckos_effect();// - Check Out http://www.DynamicScripts.tk
}
function setSpanID(IDno)
{
switch(IDno)
{
case 0: // - Dynamic Scripts By Richard Hucko
with(spans[0].style)
{
top=POSTOP;
visibility="hidden";
}
break;
case 1: // - Dynamic HTML By Richard Hucko
with(spans[1].style)
{
left=POSLEFT;
visibility="hidden";
}
break;
case 3: // - JavaScripts By Richard Hucko
with(spans[3].style)
{
left=-(POSLEFT);
visibility="hidden";
}
break;
case 4: // - http://www.DynamicScripts.da.ru
with(spans[4].style)
{
top=-(POSTOP);
visibility="hidden";
}
}
}
function Richard_Huckos_effect()
{
if(posTP>-20&&gcount
{
if(gcount==message.length-1)
{
with(spans[2].style)
{
color="#00ff00";
}
} // - For More Dynamic Scripts, DHTML, JavaScripts, Forums, Tutorials - http://www.DynamicScripts.tk
spans[4].innerHTML=spans[3].innerHTML=spans[2].innerHTML=spans[1].innerHTML=spans[0].innerHTML=message[gcount];
for(var x=0;x
spans[x].style.visibility="visible";
spans[0].style.top=posTP;
spans[1].style.left=posLP;
spans[3].style.left=posLN;
spans[4].style.top=posTN;
posTP--;posLP-=2;posLN+=2;posTN++;
}
else if(gcount
{
gcount++;posTP=POSTOP,posTN=-(POSTOP),posLP=POSLEFT,posLN=-(POSLEFT);
}
else if(bool==true)
{
if(count>=5)
bool=false;
count++;
}
else
{
for(var x=0;x
{
spans[x]=document.getElementById("sid"+x);
if(x!=2)
setSpanID(x);
}
spans[2].style.color="white";
clearTimeout("timer");
}
timer=setTimeout("Richard_Huckos_effect();",20); // - 2004 Splash Intro Page JavaScript Effect
}
function DYNAMICSCRIPTS()
{
location.replace("http://ee.domaindlx.com/rhucko1");
}
// - JavaScript Effect Created By Richard Hucko, Kaneohe hawaii 96744, For Dynamic Scripts, DHTML, JavaScripts, Forums, Splash Intro Pages, and more: http://www.DynamicScripts.tk
window.onload=Hucko;
//-->
< /script>
< style type="text/css">
< !--
body {
background-color:black;
}
span.scripts {
position:relative;visibility:visible;z-index:3;font-weight:bold;font-size:25;color:white;
}
a {
color:lightyellow;
font-size:20;
font-weight:bold;
letter-spacing:3;
}
a:hover {
color:#00ff00;
}
-->
< /style>
------------------------------------------------------------
< center>
< br />
< br />
< br />
< br />
< br />
< br />
< span class="scripts" id="sid0" style="color:red;">< /span>< br />
< span class="scripts" id="sid1" style="color:red">< /span>
< span class="scripts" id="sid2" >< /span>< div style="color:white;position:relative;z-index:4;display:none;font-weight:bold;text-decoration:none;">
DHTML Splash Intro Page Created By Richard Hucko, Kaneohe Hawaii 96744,
http://www.DynamicScripts.tk, Google Keywords: Richard Hucko, RHUCKO1, dynamicscripts
- JavaScripts, Forums, Scripting, Tutorials, Dynamic HTML and the DOM, Dynamic
Scripts, Check Out: < a href="" target="_blank">http://www.BaharRayaneh.Net">
http://www.BaharRayaneh.Net< /a>< p> < /div>
< span class="scripts" id="sid3" style="color:red;">< /span>< br />
< span class="scripts" id="sid4" style="color:red;">< /span>< br />< br />< br />< br />
< /center>