اكواد جافا > الكلمات والعبارات
يمكنك تغيير الجمل والالوان في الاكواد بما يناسب موقعك
عبارات متحركة
عبارات مشعة
موقع يوار
<p><span id="theText" style="width:100%"> </p> <p align="center"><font color="#FFF9F2" size="5" face="Monotype Koufi"><strong>نصك يظهر هنا</strong></font><font color="#FFF9F2" size="4" face="Tahoma"><strong> </strong></font><font color="#FFF9F2" size="6"><strong> </span><script language="JavaScript"><!-- /* موقع يوار www.yawwar.com */ //range of glowing var from = 3; var to = 7; //speed of pulsing var delay = 85; //color of glow, name or RGB value (example:'#') var glowColor = "#FFBC6A"; //NO MORE EDITING!!! var i = to; var j = 0; //can be called here or whenever you want the text to start pulsing textPulseDown(); function textPulseUp() { if (!document.all) return if (i < to) { theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")"; i++; theTimeout = setTimeout('textPulseUp()',delay); return 0; } if (i = to) { theTimeout = setTimeout('textPulseDown()',delay); return 0; } } function textPulseDown() { if (!document.all) return if (i > from) { theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")"; i--; theTimeout = setTimeout('textPulseDown()',delay); return 0; } if (i = from) { theTimeout = setTimeout('textPulseUp()',delay); return 0; } } // --></script> </strong></font></p>
نص بشكل مميز
<h2> <script language="JavaScript1.2"> /* موقع يوار www.yawwar.com */ var message="Welcome to yawWAR.CoM" var neonbasecolor="gray" var neontextcolor="yellow" var flashspeed=100 //in milliseconds ///No need to edit below this line///// var n=0 if (document.all){ document.write('<font color="'+neonbasecolor+'">') for (m=0;m<message.length;m++) document.write('<span id="neonlight">'+message.charAt(m)+'</span>') document.write('</font>') //cache reference to neonlight array var tempref=document.all.neonlight } else document.write(message) function neon(){ //Change all letters to base color if (n==0){ for (m=0;m<message.length;m++) tempref[m].style.color=neonbasecolor } //cycle through and change individual letters to neon color tempref[n].style.color=neontextcolor if (n<tempref.length-1) n++ else{ n=0 clearInterval(flashing) setTimeout("beginneon()",1500) return } } function beginneon(){ if (document.all) flashing=setInterval("neon()",flashspeed) } beginneon() </script> </h2>
نص يظهر الحروف مدرجه من صغيره الى كبيره
<script> /* موقع يوار www.yawwar.com */ var fs=1 var direction="right" function rollertext(whichone){ var thetext=whichone for (i=0;i<thetext.length;i++){ document.write(thetext.charAt(i).fontsize(fs)) if (fs<7&&direction=="right") fs++ else if (fs==7){ direction="left" fs-- } else if (fs==1){ direction="right" fs++ } else if (fs>1&&direction=="left") fs-- } } //غير ما يلزم في الاسفل rollertext("Welcome To yawWAR.CoM") </script>
رسالة تتغير مع كل زيارة
<script LANGUAGE="JavaScript"> <!-- Begin var a = Math.random() + "" var rand1 = a.charAt(5) quotes = new Array quotes[1] = "ضع رسالتك الاولــى هنا" quotes[2] = "ضع رسالتك الثانية هنا" quotes[3] = "ضع رسالتك الثالثة هنا" quotes[4] = "ضع رسالتك الرابعة هنا" quotes[5] = "ضع رسالتك الخامسة هنا " quotes[6] = "ضع رسالتك السادسة هنا" quotes[7] = "ضع رسالتك السابعة هنا" quotes[8] = "ضع رسالتك الثامنة هنا" quotes[9] = "ضع رسالتك التاسعة هنا" quotes[0] = "ضع رسالتك العاشرة هنا" var quote = quotes[rand1] document.write(quote); // End --> </script>
عباره تحذيرية تظهر في شريط المعلومات السفلي
<script language="JavaScript"> <!-- var x = 0 var speed = 300 var text = "ضع رسالتك هنا" function Blinky() { window.status = text setTimeout("Blinky2()", speed) } function Blinky2() { window.status = " " setTimeout("Blinky()", speed) } Blinky() //--> //موقع يوار </script>
عبارة متحركة من اليسار الى اليمين
<script language="JavaScript1.2"> /* موقع يوار www.yawwar.com */ var it=0 function initialize(){ mytext=typing.innerText var myheight=typing.offsetHeight typing.innerText='' document.all.typing.style.height=myheight document.all.typing.style.visibility="visible" typeit() } function typeit(){ typing.insertAdjacentText("beforeEnd",mytext.charAt(it)) if (it<mytext.length-1){ it++ setTimeout("typeit()",100) } else return } if (document.all) document.body.onload=initialize </script> <span id="typing" style="visibility:hidden" align="left">شكرا لزيارتك موقع يوار </span></font></b></p>
شكل جميل يظهر في اسفل شريط المعلومات وهو عباره عن تحريك الحروف مابين كبتل وسمول
<script language="Javascript"> <!-- var text = "www.yawwar.com" var speed = 200 var x = 0 function bb() { var a = text.substring(0,x) var b = text.substring(x,x+1).toUpperCase() var c = text.substring(x+1,text.length) window.status = a + b + c if (x == text.length) { x = 0 } else { x++ } setTimeout("bb()",speed) } bb(); //موقع يوار //--> </script>
نموذج لجمله متحركه داخل مستطيل
<CENTER> <FORM NAME="marquee1"> <INPUT NAME="text" SIZE=25 VALUE=" أهلا بكم في موقع يوار " > </FORM> </CENTER> <SCRIPT> <!-- /*موقع يوار yawwar.com*/ ScrollSpeed = 100 ScrollChars = 1 function ScrollMarquee() { window.setTimeout('ScrollMarquee()',ScrollSpeed); var msg = document.marquee1.text.value; document.marquee1.text.value = msg.substring(ScrollChars) + msg.substring(0,ScrollChars); } ScrollMarquee() //--> </SCRIPT>
جمل تطبع متتاليةفي اسفل شريط المعلومات
<SCRIPT LANGUAGE="JavaScript"> <!-- var x = 0 var y = 0 var z = 140 var delay = 70 var text = " أهلا وسهلا بكم " +"مرحبا بك في موقع يوار " +"وفي القسم الخاص بتصميم المواقع " +"شكرا لزيارتك" while (y ++ < z) { text = " " + text } function scroller() { window.status = text.substring(x++, text.length); if (x == text.length) { x = 0; } setTimeout("scroller()", delay); } scroller(); //--> //موقع يوار </SCRIPT>
عبارة ثابتة في اسفل شريط المعلومات
<script language="JavaScript"> var boodschap = 'اهلا بكم'; function dgstatus() { window.status = boodschap; timerID= setTimeout("dgstatus()", 25); } </script> <script language="JavaScript"><!-- dgstatus(); //--></script>
عودة