ط³ظƒط±ط¨طھط§طھ ط¬ط§ظپط§ ط³ظƒط±ط¨طھ ظ…ط¬ط§ظ†ظٹط©:



عرض الساعة، حسب توقيت جهاز كمبيوتر المستخدم

رمز PHP:
<code style="white-space:nowrap"> <code> Install instructions:
1) copy and paste this code between the <HEAD> </HEAD> tags (if you do not have these tags you can place them under the
<HTML> tag):
<
script language="JavaScript"><!-- hide the script from old browsers --
var
timerID = null;
var
timerRunning = false;
var
id,pause=0,position=0;
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;
timerID=setTimeout("showtime()",1000);
timerRunning = true;
}
function
startclock () {
stopclock();
showtime();
}
// --end hiding here -->
</script>

2)Place this code in your body tag (if you do not have a body tag you can place this code under your <HTML> tag)
<body onLoad="startclock()">

3)Place this code somewhere between your <BODY></BODY> tags
<form name="clock" onsubmit="0">
<input type="text" name="face" size="13" value="">
</form>
</code> </code>

إظهار الجملة joomla بألوان متدرجة.

اقتباس
Install instructions:
1) options you can set are 'color_d1' you can set this value from 0-255
2) copy and paste this code between the <HEAD> </HEAD> tags (if you do not have these tags you can place them under the
<HTML> tag):
<script language=&quot;JavaScript&quot;>
<!-- Hide the script from old browsers --
function MakeArray(n){
this.length=n;
for(var i=1; i<=n; i++) this[i]=i-1;
return this
}
hex=new MakeArray(16);
hex[11]=&quot;A&quot;; hex[12]=&quot;B&quot;; hex[13]=&quot;C&quot;; hex[14]=&quot;D&quot;;
hex[15]=&quot;E&quot;; hex[16]=&quot;F&quot;;
function ToHex(x){ // Changes a int to hex (in the range 0 to 255)
var high=x/16;
var s=high+&quot;&quot;; //1
s=s.substring(0,2); //2 the combination of these = trunc funct.
high=parseInt(s,10); //3
var left=hex[high+1]; // left part of the hex-value
var low=x-high*16; // calculate the rest of the values
s=low+&quot;&quot;; //1
s=s.substring(0,2); //2 the combination of these = trunc funct.
low=parseInt(s,10); //3
var right=hex[low+1]; // right part of the hex-value
var string=left+&quot;&quot;+right; // add the high and low together
return string;
}
function fadeout(text){
text=text.substring(3,text.length-4);
// gets rid of the HTML-comment-tags
color_d1=255; // any value in 'begin' 0 to 255
mul=color_d1/text.length;
for(i=0;i<text.length;i++){
color_d1=255-mul*i;
// some other things you can try>>
// &quot;=255-mul*i&quot; to fade out, &quot;=mul*i&quot; to fade in,
// or try &quot;255*Math.sin(i/(text.length/3))&quot;
color_h1=ToHex(color_d1);
color_d2=mul*i;
color_h2=ToHex(color_d2);
document.write(&quot;<FONT COLOR='#FF&quot;+color_h1+color_h2+&quot;'>&quot;+
text.substring(i,i+1)+'</FONT>');
}
}
// --End Hiding Here -->



</script>

3)Place this code somewhere between your <BODY></BODY> tags
<script language=&quot;JavaScript&quot;><!--
{fadeout(&quot;-->THIS IS WHERE YOUR TEXT GOES<!__&quot;}
//--></script>

تكبير أحجام النصوص عند التأشير بالفأرة على النص.

رمز PHP:
<code style="white-space:nowrap"> <code> Install instructions:
1)Change the Put Your "Mouse Over Here" text to your text
change the
'style="color:red"' to the color you want your text

2
)Place this code somwhere on your website between the <BODY></BODY> tags if you do not have these tags you can place them
under the
</HEAD> tag:
<
span onmouseover="this.style.fontSize = 'larger'"
onmouseout="this.style.fontSize =''" style="color:red">Put Your Mouse Over Here</span></p>
</code> </code>


تكبير النص المعروض داخل صندوق، عند التأشير بالفأرة على الصندوق

رمز PHP:
<code style="white-space:nowrap"> <code> Install instructions:
1)Change the Put Your "Mouse Over Here" text to your text
change the
'style="color:red"' to the color you want your text
2
)copy and paste this code between the <HEAD> </HEAD> tags (if you do not have these tags you can place them under the
<HTML> tag):
<
style>
.
bigChange {color:blue; font-weight:bolder; font-size:175%; letter-spacing:4px; text-transform: uppercase; background:yellow}
.
start {color:yellow; background:navy}
</
style>
<
script LANGUAGE="JAVASCRIPT">
function
highlightButton(s) {
if (
"INPUT"==event.srcElement.tagName)
event.srcElement.className=s
}
</script>

3)Place this code somwhere on your website between the <BODY></BODY> tags if you do not have these tags you can place them
under the </HEAD> tag:
<span onmouseover="this.className = 'bigChange'" onmouseout="this.className='start'"
class="start">And Over Here</span>
</code> </code>


صندوق يحتوي على رسالة نصية، يظهر عند فتح الصفحة

رمز PHP:
<code style="white-space:nowrap"> <code> Install instructions:
1)change the text "THIS IS WHERE YOUR MESSAGE GOES!" to your text
2
) copy and paste this code between the <HEAD> </HEAD> tags (if you do not have these tags you can place them under the
<HTML> tag):
<
script language="javascript">
<!--
hide the script from old browsers --
function
loadalert ()
{
alert("THIS IS WHERE YOUR MESSAGE GOES!")
}
// --end hiding here -->
</script>

3)Place this code in your body tag (if you do not have a body tag you can place this code under your <HTML> tag)
<body onLoad="loadalert()">
</code> </code>

قم بنسخ الشفرة البرمجية ولصقها داخل صفحة الويب التي ترغب بعرض السكربت فيها.
افحص الصفحة التي قمت بإدخال الشفرة فيها عبر أحد المتصفحات الداعمة للغة جافا سكربت








©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©