استعمل مربع البحث في الاسفل لمزيد من المواضيع
سريع للبحث عن مواضيع في المنتدى
-
11-01-2013, بتوقيت غرينيتش 02:47 AM
#1
سكربتات جافا سكربت مجاني freeة:
ط³ظƒط±ط¨طھط§طھ ط¬ط§ظپط§ ط³ظƒط±ط¨طھ ظ…ط¬ط§ظ†ظٹط©:
عرض الساعة، حسب توقيت جهاز كمبيوتر المستخدم
رمز 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="JavaScript">
<!-- 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]="A"; hex[12]="B"; hex[13]="C"; hex[14]="D";
hex[15]="E"; hex[16]="F";
function ToHex(x){ // Changes a int to hex (in the range 0 to 255)
var high=x/16;
var s=high+""; //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+""; //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+""+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>>
// "=255-mul*i" to fade out, "=mul*i" to fade in,
// or try "255*Math.sin(i/(text.length/3))"
color_h1=ToHex(color_d1);
color_d2=mul*i;
color_h2=ToHex(color_d2);
document.write("<FONT COLOR='#FF"+color_h1+color_h2+"'>"+
text.substring(i,i+1)+'</FONT>');
}
}
// --End Hiding Here -->
</script>
3)Place this code somewhere between your <BODY></BODY> tags
<script language="JavaScript"><!--
{fadeout("-->THIS IS WHERE YOUR TEXT GOES<!__"
;}
//--></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>
قم بنسخ الشفرة البرمجية ولصقها داخل صفحة الويب التي ترغب بعرض السكربت فيها.
افحص الصفحة التي قمت بإدخال الشفرة فيها عبر أحد المتصفحات الداعمة للغة جافا سكربت

©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©
المواضيع المتشابهه
-
بواسطة salima في المنتدى لغات البرمجه للويب
مشاركات: 0
آخر مشاركة: 11-01-2013, بتوقيت غرينيتش 04:19 PM
-
بواسطة romaissa في المنتدى القسم العام لتطوير المواقع
مشاركات: 0
آخر مشاركة: 11-01-2013, بتوقيت غرينيتش 04:19 AM
-
بواسطة walid في المنتدى القسم العام لتطوير المواقع
مشاركات: 0
آخر مشاركة: 11-01-2013, بتوقيت غرينيتش 03:19 AM
-
بواسطة walid في المنتدى القسم العام لتطوير المواقع
مشاركات: 0
آخر مشاركة: 11-01-2013, بتوقيت غرينيتش 02:03 AM
-
بواسطة walid في المنتدى القسم العام لتطوير المواقع
مشاركات: 0
آخر مشاركة: 11-01-2013, بتوقيت غرينيتش 12:09 AM
ضوابط المشاركة
- لا تستطيع إضافة مواضيع جديدة
- لا تستطيع الرد على المواضيع
- لا تستطيع إرفاق ملفات
- لا تستطيع تعديل مشاركاتك
-
قوانين المنتدى