مـكـتـبـة أكـواد الـجـافـا

أبو نور

عضو جديد
30 أكتوبر 2009
421
3
0
غير معروف

السلام عليكم ورحمة الله

{ مـكـتـبـة أكـواد الـجـافـا }

{ الساعات و التاريخ }


ساعة ذات خلفية سوداء

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<style>
<!--
.styling{
background-color:black;
color:lime;
font: bold 15px MS Sans Serif;
padding: 3px;
}
-->
</style>
2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

PHP:
<div align="center" dir="ltr">
<span id="digitalclock" class="styling"></span>
<script>
/*****************************************
* LCD Clock script- by Javascriptkit
* Translated By www.sakrjava.netfirms.com/
* Visit our site at http://www.star28.com/ for more code
* This notice must stay intact for use
***********************************************/
<!--

var alternate=0
var standardbrowser=!document.all&&!document.getElementById

if (standardbrowser)
document.write('<form name="tick"><input type="text" name="tock" size="6"></form>')

function show(){
if (!standardbrowser)
var clockobj=document.getElementById? document.getElementById("digitalclock") : document.all.digitalclock
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var dn="AM"

if (hours==12) dn="PM" 
if (hours>12){
dn="PM"
hours=hours-12
}
if (hours==0) hours=12
if (hours.toString().length==1)
hours="0"+hours
if (minutes<=9)
minutes="0"+minutes

if (standardbrowser){
if (alternate==0)
document.tick.tock.value=hours+" : "+minutes+" "+dn
else
document.tick.tock.value=hours+"   "+minutes+" "+dn
}
else{
if (alternate==0)
clockobj.innerHTML=hours+"<font color='lime'> : </font>"+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>"
else
clockobj.innerHTML=hours+"<font color='black'> : </font>"+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>"
}
alternate=(alternate==0)? 1 : 0
setTimeout("show()",1000)
}
window.onload=show

//-->
</script></div>
ساعة في أعلى و يسار الصفحة

طريقة التركيب

1- أضف هذا المتغير للوسم BODY لتبدو مثل هذه


PHP:
<BODY onLoad="show5()">
2- انسخ هذا الكود و ضعه بعد الوسم BODY

PHP:
<span id="liveclock" style="position:absolute;left:0;top:0;">
</span>
 <script language="JavaScript">
 
/* Visit our site at http://www.star28.com/ for more code
* This notice must stay intact for use */

 <!--
 function show5(){
if (!document.layers&&!document.all)
return;
var Digital=new Date();
var hours=Digital.getHours();
var minutes=Digital.getMinutes();
var seconds=Digital.getSeconds();
var dn="AM";
if (hours>12){
dn="PM";
hours=hours-12;
}
if (hours==0)
hours=12;
if (minutes<=9)
minutes="0"+minutes;
if (seconds<=9)
seconds="0"+seconds;
//change font size here to your desire
myclock="<font size='5' face='Arial' color= red><b><font size='3'>الساعة تشير إلى</font></br>"+hours+":"+minutes+":"
+seconds+" "+dn+"</b></font>";
if (document.layers){
document.layers.liveclock.document.write(myclock);
document.layers.liveclock.document.close();
}
else if (document.all)
liveclock.innerHTML=myclock;
setTimeout("show5()",1000);
}
 
 //-->
</script>
ساعة ضمن مستطيل - ساعات + دقائق + ثواني

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script language="JavaScript">

/* Visit our site at http://www.star28.com/ for more code
* This notice must stay intact for use */

<!-- begin script
var ddt1, delay;
function debuteTemps1() {
  var hhmmss = "  ", mymin, sec;
  delay = 1000;

  adate = new Date();
  hhmmss += adate.getHours();
  mymin = adate.getMinutes();
  if (mymin < 10) hhmmss += ":0" + mymin;
  else hhmmss += ":" + mymin;
  sec = adate.getSeconds();
  if (sec < 10) hhmmss += ":0" + sec;
  else hhmmss += ":" + sec;
  hhmmss = " " + hhmmss;
  document.Temps11.heure.value = hhmmss;

  ddt1 = setTimeout("debuteTemps1(delay)",delay);
}
//  end script -->
</script>
2- أضف المتغير للوسم BODY لتبدو مثل هذه

PHP:
<BODY onLoad="debuteTemps1()" onUnload="clearTimeout(ddt1)">
3- انسخ هذا الكود و ضعه بعد الوسم BODY
PHP:
<form name="Temps11">
<input type="text" name="heure" size="8"><br> 
</form>
ساعة ضمن مستطيل صغير - ( am - fm )

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<SCRIPT LANGUAGE="JavaScript">

/* Visit our site at http://www.star28.com/ for more code
* This notice must stay intact for use */

    var timerID = null
    var timerRunning = false

    function stopclock()
    {
        if(timerRunning)
            clearTimeout(timerID)
        timerRunning = false
    }

    function startclock()
    {
        stopclock()
        showtime()
    }

    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) ? "PM" : "AM"
        document.clock.face.value = timeValue 
        timerID = setTimeout("showtime()",1000)
        timerRunning = true
    }
//-->
</SCRIPT>
2- انسخ هذا الكود و ضعه في المكان الذي تريد أن تظهر الساعة

PHP:
<form name="clock" onSubmit="0">
    <INPUT TYPE="text" NAME="face" SIZE=11 READONLY VALUE ="....Initializing....">
</form>

<SCRIPT LANGUAGE="JavaScript">
<!--
    startclock()
//-->
</SCRIPT>
ساعة حائط ملونة

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة BODY


PHP:
<script language="VBScript">
Dim a
Dim min1
Dim hr1
Dim sec1

'Initializes clock and tells it how to behave, when to start animation, etc

Sub window_onload
    a = time
    min1 = minute(time)
    hr1 = hour(time)
    if hr1 > 12 then
        hr1 = hr1 - 12
    end if
    sec1 = second(time)
    call sgSecondHand.Rotate(0,0,sec1*6 - 90)
    call sgMinuteHand.Rotate(0,0,min1*6 - 90)
    call sgHourHand.Rotate(0,0,hr1*360/12 - 90)
    call seq("Time").Play
end Sub


'Sequencer initilization

Sub Seq_OnInit
    Call seq("Time").at(0.000, "SecRot", -1, 1.000, 1)
    Call seq("Time").at(60.000, "MinRot", -1, 60.000, 1)
    Call seq("Time").at(0.000, "HourRot", -1, 1800.000, 1)
End Sub

'rotates second hand of clock

Sub SecRot
    Call sgSecondHand.Rotate(0,0,6)
End Sub

' rotates minute hand of clock

Sub MinRot
    Call sgMinuteHand.Rotate(0,0,6)
End Sub

' rotates hour hand of clock

Sub HourRot
    Call sgHourHand.Rotate(0,0,15)
End Sub


</script>

<!-- This is the master div, sets over all height, width and positioning-->

<div id="MASTERLAYOUT" STYLE="POSITION:ABSOLUTE;WIDTH:300; HEIGHT:300;TOP:25%;LEFT:25%">

<!-- Div sets positioning of text on clock face, z-index tells it to go in front of background data in master div -->

<div id="divTimeText" STYLE="POSITION:ABSOLUTE; WIDTH:200; HEIGHT:200; TOP:0; LEFT:0;z-index:2">

<br>
<br>
<br>

<p  align="center">

<font face="Verdana,Tahoma,Arial" size="5" color="YELLOW">
<BR>
<BR>

</font> 

</p>

<!-- Object displays the numbers on the clock face -->

<OBJECT ID="SgNumbers"
    CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
    STYLE= "POSITION:ABSOLUTE; WIDTH:215; HEIGHT:200; TOP:0; LEFT:0;Z-INDEX:5">
    <PARAM NAME="Line0001" VALUE="SetLineColor(255, 255, 255)">
    <PARAM NAME="Line0002" VALUE="SetLineStyle(1)">
    <PARAM NAME="Line0003" VALUE="SetFillStyle(1)">
    <PARAM NAME="Line0004" VALUE="SetFillColor(255,255,255)">
    <PARAM NAME="Line0005" VALUE="SetFont('ARIAL',24,650,0,0,0)">
    <PARAM NAME="Line0006" VALUE="Text('1',30,-66,0">
    <PARAM NAME="Line0007" VALUE="Text('2',60,-36,0">
    <PARAM NAME="Line0008" VALUE="Text('3',70,4,0">
    <PARAM NAME="Line0009" VALUE="Text('4',60,44,0">
    <PARAM NAME="Line0010" VALUE="Text('5',30,74,0">
    <PARAM NAME="Line0011" VALUE="Text('6',-10,89,0">
    <PARAM NAME="Line0012" VALUE="Text('7',-50,79,0">
    <PARAM NAME="Line0013" VALUE="Text('8',-85,44,0">
    <PARAM NAME="Line0014" VALUE="Text('9',-95,4,0">
    <PARAM NAME="Line0015" VALUE="Text('10',-85,-36,0">
    <PARAM NAME="Line0016" VALUE="Text('11',-60,-61,0">
    <PARAM NAME="Line0017" VALUE="Text('12',-20,-76,0">
</OBJECT>

</div>

<!-- Creates the clock face , structured graphic-->

<OBJECT ID="sgBackground"
    CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
    STYLE="POSITION:absolute; TOP:0; LEFT:0; WIDTH:200; HEIGHT:200">
    <PARAM NAME="Line0001" VALUE="SetLineStyle(5)">
    <PARAM NAME="Line0002" VALUE="SetFillStyle(11)">
    <PARAM NAME="Line0003" VALUE="SetFillColor(255,0,0,0,0,255)">
    <PARAM NAME="Line0004" VALUE="SetGradientFill(0,0,-100,-100,0)">
    <PARAM NAME="Line0005" VALUE="Oval(-100,-100,200,200,0)">
</OBJECT>

<div id="divClock" STYLE="POSITION:ABSOLUTE; WIDTH:200; HEIGHT:200; TOP:0; LEFT:0;">

<!-- Object creates second hand for clock, structured graphic -->

<OBJECT ID="sgSecondHand"
    CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
    STYLE="POSITION:absolute; TOP:0; LEFT:0; WIDTH:200; HEIGHT:200; Z-INDEX:5">
    <PARAM NAME="Line0001" VALUE="SetLineColor(255, 255, 255)">
    <PARAM NAME="Line0002" VALUE="SetLineStyle(1)">
    <PARAM NAME="Line0003" VALUE="SetFillColor(255,255,255)">
    <PARAM NAME="Line0004" VALUE="SetFillStyle(1)">
    <PARAM NAME="Line0005" VALUE="Rect(-5,-2,100,4,0)">
</OBJECT>

<!-- Object creates minute hand for clock, structured graphic-->

<OBJECT ID="sgMinuteHand"
    CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
    STYLE="POSITION:absolute; TOP:0; LEFT:0; WIDTH:200; HEIGHT:200; Z-INDEX:5">
    <PARAM NAME="Line0001" VALUE="SetLineColor(255, 0, 0)">
    <PARAM NAME="Line0002" VALUE="SetLineStyle(1)">
    <PARAM NAME="Line0003" VALUE="SetFillColor(255,0,0)">
    <PARAM NAME="Line0004" VALUE="SetFillStyle(1)">
    <PARAM NAME="Line0005" VALUE="Rect(-5,-3,85,6,0)">
</OBJECT>

<!-- Object creates hour hand for clock, structured graphic -->

<OBJECT ID="sgHourHand"
    CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
    STYLE="POSITION:ABSOLUTE; TOP:0; LEFT:0; WIDTH:200; HEIGHT:200; Z-INDEX:5">
    <PARAM NAME="Line0001" VALUE="SetLineColor(0, 0, 255)">
    <PARAM NAME="Line0002" VALUE="SetLineStyle(1)">
    <PARAM NAME="Line0003" VALUE="SetFillColor(0,0,255)">
    <PARAM NAME="Line0004" VALUE="SetFillStyle(1)">
    <PARAM NAME="Line0005" VALUE="Rect(-5,-3,70,6,0)">
</OBJECT>

</div>
</div>

<!-- Sequencer, controls timing and continuation of clock motion -->

<OBJECT ID="Seq"
    CLASSID="CLSID:B0A6BAE2-AAF0-11d0-A152-00A0C908DB96">
</OBJECT>
سكربت لتواقيت دول العالم

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<form name="where">
 <table border="0" width="200" cellspacing="0" cellpadding="3">
<tr>
    <td width="100%">
<select name="city" size="1" onchange="updateclock(this);"> 
<option selected>التوقيت المحلي</option>
<option value="3">السعودية</option>
<option value="4">الإمارات</option>
<option value="3">الكويت</option>
<option value="3">لبنان</option>
<option value="4">عمان</option>
<option value="3">قطر</option>
<option value="3">مصر</option>
<option value="0">المغرب</option>
<option value="1">تونس</option>
<option value="3">السودان</option>
<option value="0">لندن</option> 
<option value="1">روما</option>
<option value="7">بانكوك</option>
<option value="8">هونكغ كونغ</option>
<option value="9">طوكيو</option> 
<option value="10">سيدني</option>
<option value="12">فوجي</option>
<option value="-10">هاواي</option>
<option value="-8">سان فرانسيسكو</option> 
<option value="-5">نيويورك</option>
</select>
</td>
  </tr>
  <tr>
    <td width="100%">
<script language="JavaScript">

/*
Drop Down World Clock- By JavaScript Kit (http://www.javascriptkit.com)
Portions of code by Kurt @ http://www.btinternet.com/~kurt.grigg/javascript
This credit notice must stay intact
Visit our site at http://www.star28.com/ for more code
*/

if (document.all||document.getElementById)
document.write('<span id="worldclock" style="font:bold 16px Arial;"></span><br>')

zone=0;
isitlocal=true;
ampm='';

function updateclock(z){
zone=z.options[z.selectedIndex].value;
isitlocal=(z.options[0].selected)?true:false;
}

function WorldClock(){
now=new Date();
ofst=now.getTimezoneOffset()/60;
secs=now.getSeconds();
sec=-1.57+Math.PI*secs/30;
mins=now.getMinutes();
min=-1.57+Math.PI*mins/30;
hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone);
hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
if (hr < 0) hr+=24;
if (hr > 23) hr-=24;
ampm = (hr > 11)?"PM":"AM";
statusampm = ampm.toLowerCase();

hr2 = hr;
if (hr2 == 0) hr2=12;
(hr2 < 13)?hr2:hr2 %= 12;
if (hr2<10) hr2="0"+hr2

var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;

if (document.all)
worldclock.innerHTML=finaltime
else if (document.getElementById)
document.getElementById("worldclock").innerHTML=finaltime
else if (document.layers){
document.worldclockns.document.worldclockns2.document.write(finaltime)
document.worldclockns.document.worldclockns2.document.close()
}


setTimeout('WorldClock()',1000);
}

window.onload=WorldClock
//-->
</script>

<!--Place holder for NS4 only-->
<ilayer id="worldclockns" width=100% height=35><layer id="worldclockns2" width=100% height=35 left=0 top=0 style="font:bold 16px Arial;"></layer></ilayer>
</td></tr></table></form>
عرض الساعة و التاريخ

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<CENTER>
<SCRIPT LANGUAGE="JavaScript">

/* Visit our site at http://www.star28.com/ for more code
*********************************************************/

<!-- Begin
Stamp = new Date();
document.write('<font size="2" face="Arial"><B>' + (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+Stamp.getYear() + '</B></font><BR>');
var Hours;
var Mins;
var Time;
Hours = Stamp.getHours();
if (Hours >= 12) {
Time = " P.M ";
}
else {
Time = " A.M ";
}
if (Hours > 12) {
Hours -= 12;
}
if (Hours == 0) {
Hours = 12;
}
Mins = Stamp.getMinutes();
if (Mins < 10) {
Mins = "0" + Mins;
}    
document.write('<font size="2" face="Arial"><B>' + Hours + ":" + Mins + Time + '</B></font>');
// End -->
</SCRIPT>
</CENTER>
الرجاء عدم الرد لحين اكتمال المكتبة


 

أبو نور

عضو جديد
30 أكتوبر 2009
421
3
0
غير معروف


تغيير لون الصفحة بضطة زر

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<SCRIPT LANGUAGE="JavaScript">
/* Visit our site at http://www.star28.com/ for more code
 This notice must stay intact for use */
<!-- Begin
function rnd(scale) {
var dd=new Date();      
return((Math.round(Math.abs(Math.sin(dd.getTime()))*1000000000)%scale)); 
}
function show() {       
document.blah.bg.value=document.bgColor;        
document.blah.fg.value=document.fgColor; 
}
document.fgColor=256*rnd(255)+16*rnd(255)+rnd(255);
document.bgColor=256*rnd(255)+16*rnd(255)+rnd(255);
// End -->
</SCRIPT>
2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY
PHP:
<CENTER>
<a href="javascript:history.go(0)"><font color="#000000" face="Tahoma ,Arial" size="3">إضغط هنا لتغيير لون الصفحة</font></a>
</CENTER>
غير لون الصفحة بمجرد مرور الماوس على اسم اللون

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<center><font face="Tahoma" color="#FF0000">مرر
    فأرتك على أحد الألوان</font><br>
    <p align="center"><font face="Tahoma">[<a href="/" onmouseover="document.bgColor='green'">أخضر</a>]
    [<a href="/" onmouseover="document.bgColor='greem'">أخضر فاتح</a>] [<a href="/"
    onmouseover="document.bgColor='seagreen'">أخضر عفني</a>] [<a href="/"
    onmouseover="document.bgColor='red'">أحمر</a>]<br>
    [<a href="/" onmouseover="document.bgColor='magenta'">وردي غامق</a>] [<a href="/"
    onmouseover="document.bgColor='fusia'">فوشي</a>] [<a href="/"
    onmouseover="document.bgColor='pink'">وردي</a>] [<a href="/"
    onmouseover="document.bgColor='purple'">بنفسجي</a>]<br>
    [<a href="/" onmouseover="document.bgColor='navy'">كحلي</a>] [<a href="/"
    onmouseover="document.bgColor='blue'">أزرق</a>] [<a href="/"
    onmouseover="document.bgColor='royalblue'">أزرق ملكي</a>] [<a href="/"
    onmouseover="document.bgColor='Skyblue'">أزرق سماوي</a>]<br>
    [<a href="/" onmouseover="document.bgColor='yellow'">أصفر</a>] [<a href="/"
    onmouseover="document.bgColor='brown'">بني</a>] [<a href="/"
    onmouseover="document.bgColor='almond'">أحمر قاني</a>] [<a href="/"
    onmouseover="document.bgColor='white'">أبيض</a>]<br>
    [<a href="/" onmouseover="document.bgColor='black'">أسود</a>] [<a href="/"
    onmouseover="document.bgColor='coral'">مشمشي</a>] [<a href="/"
    onmouseover="document.bgColor='olivedrab'">زيتوني</a>] [<a href="/"
    onmouseover="document.bgColor='orange'">برتقالي</a>] </font></center>
كود ألعاب نارية

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<layer name="a0" left=10 top=10 visibility=show bgcolor="#ffffff" clip="0,0,1,1"></layer>
<layer name="a1" left=10 top=10 visibility=show bgcolor="#fff000" clip="0,0,1,1"></layer>
<layer name="a2" left=10 top=10 visibility=show bgcolor="#ffa000" clip="0,0,1,1"></layer>
<layer name="a3" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer>
<layer name="a4" left=10 top=10 visibility=show bgcolor="#00ff00" clip="0,0,1,1"></layer>
<layer name="a5" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer>
<layer name="a6" left=10 top=10 visibility=show bgcolor="#ff0000" clip="0,0,1,1"></layer>
<layer name="a7" left=10 top=10 visibility=show bgcolor="#ffffff" clip="0,0,1,1"></layer>
<layer name="a8" left=10 top=10 visibility=show bgcolor="#fff000" clip="0,0,1,1"></layer>
<layer name="a9" left=10 top=10 visibility=show bgcolor="#ffa000" clip="0,0,1,1"></layer>
<layer name="a10" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer>
<layer name="a11" left=10 top=10 visibility=show bgcolor="#00ff00" clip="0,0,2,2"></layer>
<layer name="a12" left=10 top=10 visibility=show bgcolor="#0000ff" clip="0,0,2,2"></layer>
<layer name="a13" left=10 top=10 visibility=show bgcolor="#ff0000" clip="0,0,2,2"></layer>

<script language="JavaScript">

/*
Document firework script (By Kurt Gregg, kurt.grigg@virgin.net)
Modified granted to Dynamic Drive to feature script in archive
For full source and 100's more DHTML scripts, visit http://dynamicdrive.com
Visit our site at http://www.star28.com/ for more code
* This notice must stay intact for use */

if (document.all)
with(document){
write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">')
write('<div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px"></div>')
write('</div>')
}


var Clrs=new Array(9)
Clrs[0]='ff0000';
Clrs[1]='00ff00';
Clrs[2]='000aff';
Clrs[3]='ff00ff';
Clrs[4]='ffa500';
Clrs[5]='ffff00';
Clrs[6]='00ff00';
Clrs[7]='ffffff';
Clrs[8]='fffff0';
var sClrs=new Array(5)
sClrs[0]='ffa500';
sClrs[1]='55ff66';
sClrs[2]='AC9DFC';
sClrs[3]='fff000';
sClrs[4]='fffff0';
var yBase;
var xBase;
var step;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;
var initialStarColor='ffa000';
var Mtop=250;
var Mleft=250;

function Fireworks() {
if (document.all)
{
yBase = window.document.body.offsetHeight/3;
xBase = window.document.body.offsetWidth/8;
}
else if (document.layers)
{
yBase = window.innerHeight/3;
xBase = window.innerWidth/8;
}
if (document.all)
{
step=5;
for ( i = 0 ; i < starsDiv.all.length ; i++ )
{
for (ai=0; ai < Clrs.length; ai++)
{
var c=Math.round(Math.random()*[ai]);
}
if (currStep < 90)
starsDiv.all[i].style.background=initialStarColor;
if (currStep > 90)
starsDiv.all[i].style.background=Clrs[c];
starsDiv.all[i].style.top = Mtop + yBase*Math.sin((currStep+i*5)/3)*Math.sin(550+currStep/100)
starsDiv.all[i].style.left = Mleft + yBase*Math.cos((currStep+i*5)/3)*Math.sin(550+currStep/100)
}
}
else if (document.layers)
{
step = 5;
for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!
{
var templayer="a"+j
for (ai=0; ai < Clrs.length; ai++)
{
var c=Math.round(Math.random()*[ai]);
}
if (currStep < 90)
document.layers[templayer].bgColor=initialStarColor;
if (currStep > 90)
document.layers[templayer].bgColor=Clrs[c];
document.layers[templayer].top = Mtop + yBase*Math.sin((currStep+j*5)/3)*Math.sin(550+currStep/100)
document.layers[templayer].left = Mleft + yBase*Math.cos((currStep+j*5)/3)*Math.sin(550+currStep/100)
}
}
currStep+= step;
//window.status=currStep;
T=setTimeout("Fireworks()",5);
if (currStep==220)
{
currStep=-10;
for (n=0; n < sClrs.length; n++)
{
var k=Math.round(Math.random()*n);
}
initialStarColor=sClrs[k];
if (document.all)
{
Dtop=window.document.body.clientHeight-250;
Dleft=xBase*3.5;
Mtop=Math.round(Math.random()*Dtop);
Mleft=Math.round(Math.random()*Dleft);
document.all.starsDiv.style.top=Mtop+document.body.scrollTop;
document.all.starsDiv.style.left=Mleft+document.body.scrollLeft;
}
else if (document.layers)
{
Dleft=window.innerWidth-100;
Dtop=window.innerHeight-100;
Mtop=Math.round(Math.random()*Dtop+window.pageYOffset);
Mleft=Math.round(Math.random()*Dleft+window.pageXOffset);
document.layers[templayer].top=Mtop;
document.layers[templayer].left=Mleft;
}
if ((Mtop < 20) || (Mleft < 20))
{
Mtop+=90;
Mleft+=90;
} 
}
}
if (document.all||document.layers)
Fireworks();

</script>
غير لون الصفحة حسب رمز اللون

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<!-- Original:  Dion (yobo42@hotmail.com) -->
<!-- Web Site:  http://yoboseyo42.virtualave.net -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source! http://javascript.internet.com -->

<script language="JavaScript">
/* Visit our site at http://www.star28.com/ for more code
* Translated By www.star28.com/
* This notice must stay intact for use */

<!-- Begin
function color(frm, clr, val) {
v = eval("0x" + frm[clr].value) + val;
if (v < 0 || v > 255) v -= val;
v = v.toString(16).toUpperCase();
while (v.length < 2) v = "0" + v;
frm[clr].value = v; nc = "";
for(i = 1; i < 8; i += 3) nc += frm.elements[i].value;
document.bgColor = nc;
}
function setval(myitem) {
v = prompt("أدخل قيمة جديدة للون " + myitem.name + " مثال : (00 )", myitem.value);
if (v) {
v = eval("0x" + v);
if ((v & 255) == v) {
myitem.value=v.toString(16).toUpperCase();
while (myitem.value.length < 2) myitem.value = "0" + myitem.value;
color(document.f, myitem.name, 0);
      }
   }
}
//  End -->
</script>
2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

PHP:
  <div align="center">
<form name="f">
<table border="1">
<tr>
<td colspan="3" align="center" bgcolor="#ff0000">أحمر</td>
<td colspan="3" align="center" bgcolor="#00ff00">أخضر</td>
<td colspan="3" align="center" bgcolor="#000ff">أزرق</td>
</tr>
<tr>
<td><input type="button" name="rm" value="<" onclick = "color(this.form, 'Red' , -1);"></td>
<td><input type="button" name="الأحمر" value="AF" onclick = "setval(this);"></td>
<td><input type="button" name="rp" value=">" onclick = "color(this.form, 'Red', 1);"></td>
<td><input type="button" name="gm" value="<" onclick = "color(this.form, 'Green', -1);"></td>
<td><input type="button" name="الأخضر" value="BF" onclick = "setval(this);"></td>
<td><input type="button" name="gp" value=">" onclick = "color(this.form, 'Green', 1);"></td>
<td><input type="button" name="bm" value="<" onclick = "color(this.form, 'Blue', -1);"></td>
<td><input type="button" name="الأزرق" value="CF" onclick = "setval(this);"></td>
<td><input type="button" name="bp" value=">" onclick = "color(this.form, 'Blue', 1);"></td>
</tr>
</table>
</form>
</div>
جدول يحتوي على 512 كود للألوان

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<center>
<SCRIPT LANGUAGE="JavaScript">

//Color chart script by Dion (http://members.xoom.com/yoboseyo)
//Script featured on JavaScript Kit (http://javascriptkit.com)
/* Visit our site at http://www.star28.com/ for more code
 This notice must stay intact for use */

clr=new Array('00','20','40','60','80','a0','c0','ff');
for (i=0;i<8;i++) { 
document.write("<table border=1 cellpadding=8>");
for (j=0;j<8;j++) {
document.write("<tr>");
for (k=0;k<8;k++) {
document.write('<td bgcolor="#'+clr[i]+clr[j]+clr[k]+'">');
document.write('<tt><font color="#'+clr[7-i]+clr[7-j]+clr[7-k]+'"> ');
document.write(clr[i]+clr[j]+clr[k]+' </font></tt></td>'); }
document.write("</tr>"); }
document.write("</table><br>"); }
// end -->
</script>
</center>
غير لون الصفحة بمجرد مرور الماوس على اسم اللون

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<SCRIPT LANGUAGE="JavaScript">

/*<!-- Original:  The Radiance Group, Inc.  (info@radiancegroup.com) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! ->
 Visit our site at http://www.star28.com/ for more code
* Translated By www.star28.com/
* This notice must stay intact for use */

<!--  Begin
function makeArray(q){
for(i=1 ; i <= q ; i++){this[i]=0}}
Colors = new makeArray(7);
Colors[1] = "00";
Colors[2] = "33";
Colors[3] = "66";
Colors[4] = "99";
Colors[5] = "CC";
Colors[6] = "FF";
// End -->
</SCRIPT>
2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

PHP:
 <center>
<table cellspacing =0 cellpadding =0>
<script language="JavaScript">
for(i=1 ; i <= 6 ; i++){
for(j=1 ; j <= 6 ; j++){
for(k=1 ; k <= 6 ; k++){
var thiscolor = Colors[i] + Colors[j] + Colors[k];
document.writeln("<tr><td height = 20 bgcolor = \"#" + thiscolor + "\" align = right><a href = ");
document.writeln("\'\' onMouseOver = \"document.bgColor = \'" + thiscolor + "\'\">" + thiscolor + "</a></td></tr>");
      }
   }
}
</script>
</table>
</center>
تغيير ألوان شريط تحريك الصفحة الجانبي و السفلي

طريقة التركيب

انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<STYLE>
BODY {
scrollbar-3dlight-color: #00ff33; 
scrollbar-arrow-color: #00ff00; 
scrollbar-darkshadow-color: #00ff33;  
scrollbar-face-color: #000000; 
scrollbar-highlight-color: #00ff00; 
scrollbar-shadow-color: #00ff00; 
scrollbar-track-color: #000033}
</STYLE>
الرجاء عدم الرد لحين اكتمال المكتبة


 

أبو نور

عضو جديد
30 أكتوبر 2009
421
3
0
غير معروف
كلمات تظهر في شريط المعلومات السفلي

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script LANGUAGE="JavaScript">
  
/* Visit our site at http://www.star28.com/ for more code
*/

var init_msg = "Welcome To STAR28.com" 

var str = "" 
var msg = "" 
var leftmsg = "" 


function setMessage()
{
    if (msg == "") 
    {
        str = " "         
        msg = init_msg    
        leftmsg = ""      
    }
    
    if (str.length == 1) 
    {
        
        while (msg.substring(0, 1) == " ")
        {
            leftmsg = leftmsg + str            
            str = msg.substring(0, 1)           
            msg = msg.substring(1, msg.length) 
        }
        leftmsg = leftmsg + str            
        str = msg.substring(0, 1)           
        msg = msg.substring(1, msg.length) 
        for (var ii = 0; ii < 120; ii++) 
            {str = " " + str}           
            }
    else
    {
        str = str.substring(10, str.length) // decrease str little by little
    }


    window.status = leftmsg + str
    JSCTimeOutID = window.setTimeout('setMessage()',100)
}

</script>

2- ضع هذه الرموز ضمن الوسم BODY لتصبح هكذا


PHP:
<BODY onLoad="JSCTimeOutID = window.setTimeout('setMessage()',500);">
كلام ثابت في شريط المعلومات السفلي

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script LANGUAGE="JavaScript">

/* Visit our site at http://www.star28.com/ for more code
* This notice must stay intact for use */ 
   <!--
      // Following COPYRIGHT ©1997  Dennis & Family.  All Rights Reserved.
           function snapIn(jumpSpaces,position) { var msg = "ضع الكلام الذي تريده هنا"; var out = ""; for (var i=0; i<position; i++) { out += msg.charAt(i) } for (i=1;i<jumpSpaces;i++) { out += " " } out += msg.charAt(position); window.status = out; if (jumpSpaces <= 1) { position++; if (msg.charAt(position) == ' ') { position++ } jumpSpaces = 100-position } else if (jumpSpaces >  3) { jumpSpaces *= .09 } else { jumpSpaces-- } if (position != msg.length) { var cmd = "snapIn(" + jumpSpaces + "," + position + ")"; window.setTimeout(cmd,10); } return true }
   //-->

</script>
2- ضع هذه الرموز ضمن الوسم BODY لتصبح هكذا

PHP:
<BODY onLoad="snapIn(50,0)">
التاريخ و الوقت في شريط المعلومات السفلي



طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
theTime = window.setTimeout("runClock()", 1000);
var today = new Date();
var display= today.toLocaleString();
status=display;
}
// End -->
</script>
2- ضع هذه الرموز ضمن الوسم BODY لتصبح هكذا

PHP:
<BODY  onLoad="runClock()">
ساعة تظهر في شريط المعلومات السفلي

طريقة التركيب

انسخ هذا الكود و ضعه في منطقة BODY

PHP:
<script language="JavaScript"><!--
var timerID = null;
var TimerRunning = false; 
function stop(){
if(TimerRunning)
clearTimeout(timerID);
TimerRunning = false;
} 
function display() {
var thedate = new Date();
var hours = thedate.getHours();
var Min = thedate.getMinutes();
var Sec = thedate.getSeconds();
var TimeV = "" + ((hours >12) ? hours -12 :hours)
TimeV += ((Min < 10) ? ":0" : ":") + Min
TimeV += ((Sec < 10) ? ":0" : ":") + Sec
TimeV += (hours >= 12) ? " PM" : " AM"
window.status = TimeV;
timerID = setTimeout("display()",1000);
TimerRunning = true;
} 
function start() {
stop();
display();
} 
start(); 
// end hide 
// --></script>
ظهور شرح للرابط في الشريط السفلي

طريقة التركيب

ضع هذا الكود بعد الوسم BODY في المكان الذي تريده


PHP:
<a target="_blank" onMouseOver="window.status='ضع هنا وصف الرابط';return true" onMouseOut="window.status='';return true" href="ضع هنا رابط URL">اسم الرابط</a>
كلام متحرك يظهر في البار العلوي للصفحة


طريقة التركيب

انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
  <script language="JavaScript1.2">
// *******************************************************************
// script by drevil_nz, Michael Dillon, Christchurch New Zealand. 
// Permission granted to use this script provided this credit        
// remains intact. Visit my homepage www.chc.quik.co.nz/juggler/mikey.html
// Script written for Internet Explorer 4.0+.
// ******************************************************************* 

var message="مرحباً بكم فى موقعنا"     //specifys the title
var message=message+"          " //gives a pause at the end,1 space=1 speed unit, here I used 10 spaces@150 each = 1.5seconds. 
i="0"                     //declares the variable and sets it to start at 0
var temptitle=""                 //declares the variable and sets it to have no value yet.
var speed="150"                  //the delay in milliseconds between letters

function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i)  //sets the initial title
temptitle=temptitle+message.charAt(i)       //increases the title by one letter
i++                        //increments the counter
if(i==message.length)                //determines the end of the message
{
i="0"                        //resets the counter at the end of the message
temptitle=""                    //resets the title to a blank value
}
setTimeout("titler()",speed)            //Restarts. Remove line for no-repeat.
}

window.onload=titler
</script>
الرجاء عدم الرد لحين اكتمال المكتبة


 

أبو نور

عضو جديد
30 أكتوبر 2009
421
3
0
غير معروف
صفحة تفتح بشكل تلقائي عند الخروج من الموقع

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script>
function openpopup(){
// غير العنوان للذي يناسبك
window.open("http://www.star28.com/")
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadpopup(){
if (get_cookie('popped')==''){
openpopup()
document.cookie="popped=yes"
}
}
// للمزيد من أكواد الجافا تفضل بزيارتنا
// http://www.star28.com/
</script>
2- أضف هذا الكود ضمن الوسم BODY ليصبح مثل هذا

PHP:
<body onunload="loadpopup()">
فتح صفحة عند الدخول الى صفحة ما

طريقة التركيب

انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script> window.open("ضع هنا عنوان الصفحة المراد فتحها ");</script>
ظهور موقع و ظهور آخر عند تحديث الصفحة

طريقة التركيب

انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script>

//Pop-under window II- By JavaScript Kit
//Credit notice must stay intact for use
//Visit http://javascriptkit.com for this script
// Visit http://www.star28.com/ for more code
// Translated By http://soft.vip600.com/ & http://www.star28.com/

// ضع هنا روابط المواقع التي ستفتح بشكل عشوائي في كل مرة
var popunder=new Array()
popunder[0]="http://www.google.com"  // الموقع الأول 
popunder[1]="http://www.star28.com"  // الموقع الثاني
popunder[2]="http://www.msn.com"      // الموقع الثالث
popunder[3]="http://www.yahoo.com"   // الموقع الرابع

//specify popunder window features
//set 1 to enable a particular feature, 0 to disable // حدد طول و عرض الصفحة المراد ظهورها
var winfeatures="width=800,height=510,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"

//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=0

///No editing beyond here required/////

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()

</script>
ظهور صفحة أو صورة يمكنك التحكم بحجمها و دعم الكوكيز

طريقة التركيب

انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script>
// Visit http://www.star28.com/ for more code
// Translated By http://www.star28.com/

// عنوان رابط النافذة
var popunder="http://www.star28.com"

// ضع هنا طول و عرض الصفحة  // بدل 500 للعرض و 210 للطول
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=500,height=210,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"

// القيمة 0 ليظهر البانر في كل مرة يقوم الزائر بفتحها
// القيمة 1 تظهر للزائر صفحة البانر مرة واحدة بدعم الكوكيز
//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=0

/// لا تغير شي هنا  //   مستحسن /////

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()

</script>
ظهور صفحة لا تمكن الزائر من تكبيرها

طريقة التركيب

انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script>

//Pop-under window II- By JavaScript Kit
//Credit notice must stay intact for use
//Visit http://javascriptkit.com for this script
// Visit http://www.star28.com/ for more code
// Translated By http://www.star28.com/

// ضع رابط الموقع
var popunder=new Array()
popunder[0]="http://www.star28.com"
//specify popunder window features  // التحكم بالنافذة المفتوحة
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=600,height=300,scrollbars=0,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0"

//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=0

/// لا تغير شي هنا/////

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()

</script>
نافذة تفتح بشكل تلقائي عند الخروج من الموقع بدعم الكويكز

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script>

/*
Fair well window launcher script
By JavaScript Kit (http://javascriptkit.com)
Over 200+ free scripts here!
// Visit http://www.star28.com/ for more code
// Translated By http://www.star28.com/
*/

function openpopup(){
// حدد طول و عرض الصفحة أو البانر الذي تريد ظهوره
// غير العنوان للذي يناسبك
window.open("http://www.star28.com/images/SSSS.gif","","width=260,height=28")
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadpopup(){
if (get_cookie('popped')==''){
openpopup()
document.cookie="popped=yes"
}
}

</script>
2- أضف هذا الكود ضمن الوسم BODY ليصبح مثل هذا

PHP:
<body onunload="loadpopup()">
الرجاء عدم الرد لحين اكتمال المكتبة
 

أبو نور

عضو جديد
30 أكتوبر 2009
421
3
0
غير معروف

اعلان مثل رسالة الماسنجر يختفي بعد الوقت الذي تحدده

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة BODY


PHP:
<div id="watermarklogo" style="position:absolute;"></div>
<script src="staticlogo.js"></script>
2- حمل الملف الموجود بالمرفقات الذي يحتوي على ملف يدعى staticlogo.js افتحه

و عدل به للذي يناسبك ستجد ايضا صورة الماسنجر عدل بها و ارفع الملفين الى مساحة موقعك


ثلاثة بنرات تتبدل بشكل جميل

طريقة التركيب

انسخ هذا الكود و ضعه في منطقة BODY و عدل للذي يناسبك


PHP:
<table width="470" height="90" dir="ltr"><tr><td>
<script>

var slideurl=new Array()
var slidecomment=new Array()
var slidelink=new Array()
var slidetarget=new Array()

///////////////////////////////////////////////////////////////////////////
// EDIT-ZONE STARTS HERE  // BY : WWW.STAR28.COM
//////////////////////////////////////////////////////////////////////////

// Set the URLs of your slides (images) // مسار الصور
slideurl[0]="b1.png"
slideurl[1]="b2.png"
slideurl[2]="b3.png"

// Add a link for each slide // 
// If you don't want to link a slide type "#" instead (see middle-sample below)
// روابط البنرات على الترتيب
slidelink[0]="http://www.star28.com"
slidelink[1]="http://www.ttt4.com"
slidelink[2]="http://vb.star28.net"

// Add a target for each link
// Allowed values are: "_blank", "_top", "_parent", "_self" or the name of a frame
slidetarget[0]="_blank"
slidetarget[1]="_blank"
slidetarget[2]="_blank"

// Add a comment for each slide // الوصف
slidecomment[0]="وصف البانر رقم  - 1 -"
slidecomment[1]="وصف البانر رقم  - 2 - "
slidecomment[2]="وصف البانر رقم  - 3 -"

// Set the font for the comments
var slidefont="TAHOMA" // نوع الخط

// Set the fontcolor for the comments
var slidefontcolor="black" // لون الخط

// Set the fontsize for the comments (HTML-values ranging form 1 - 6)
var slidefontsize=2 // حجم الخط

// Set the width of the pictures (pixels)
var slidewidth=468 // عرض الصورة بالبكسل

// Set the height of the pictures (pixels)
var slideheight=60 // طول الصورة بالبكسل

// Set the pause between the pictures (seconds)
var pause=5 // المدة الفاصلة بين كل صورة

///////////////////////////////////////////////////////////////////////////
// EDIT-ZONE ENDS HERE
//////////////////////////////////////////////////////////////////////////

var preloadedimages=new Array()
for (i=0;i<slideurl.length;i++){
    preloadedimages[i]=new Image()
    preloadedimages[i].src=slideurl[i]
}

var ns4=document.layers?1:0
var ns6=document.getElementById&&!document.all?1:0 
var ie=document.all?1:0

var imgpreload=new Array()
for (i=0;i<=slideurl.length-1;i++) {
    imgpreload[i]=new Image()
    imgpreload[i].src=slideurl[i]
}

var pos_left=0
var pos_top=0
var speed=20
var step=10
var i_loop=0
var i_image1=0
var i_image2=1
var i_space=""
var all_space=""
var max_space=20
var content=""
var i_slide=0
pause*=1000

function stretchimage() {
    if (i_loop<=slidewidth) {
        if (ie) {
            imgcontainer1.innerHTML="<a href='"+slidelink[i_image1]+"' target='"+slidetarget[i_image1]+"'><img width='"+i_loop+"' height='"+slideheight+"' src='"+slideurl[i_image1]+"' border='0'></a>"
            document.all.imgcontainer2.style.posLeft=document.all.imgcontainer1.style.posLeft+i_loop
            
            imgcontainer2.innerHTML="<a href='"+slidelink[i_image2]+"' target='"+slidetarget[i_image2]+"'><img width='"+(slidewidth-i_loop)+"' height='"+slideheight+"' src='"+slideurl[i_image2]+"' border='0'></a>"
        }
        if (ns6) {
            document.getElementById('imgcontainer1').innerHTML="<a href='"+slidelink[i_image1]+"' target='"+slidetarget[i_image1]+"'><img width='"+i_loop+"' height='"+slideheight+"' src='"+slideurl[i_image1]+"' border='0'></a>"
            document.getElementById('imgcontainer2').style.left=parseInt(document.getElementById('imgcontainer1').style.left)+i_loop
            
            document.getElementById('imgcontainer2').innerHTML="<a href='"+slidelink[i_image2]+"' target='"+slidetarget[i_image2]+"'><img width='"+(slidewidth-i_loop)+"' height='"+slideheight+"' src='"+slideurl[i_image2]+"' border='0'></a>"
        }
        i_loop=i_loop+step
        var timer=setTimeout("stretchimage()",speed)
      }
    else {
        clearTimeout(timer)
        var imgcontent="<a href='"+slidelink[i_image1]+"' target='"+slidetarget[i_image1]+"'><img width='"+i_loop+"' height='"+slideheight+"' src='"+slideurl[i_image1]+"' border='0'></a><br><center><font face='"+slidefont+"' size="+slidefontsize+" color='"+slidefontcolor+"'>"+slidecomment[i_image1]+"</font></center>"
        if (ie) {
            imgcontainer1.innerHTML=imgcontent
            document.all.imgcontainer2.style.posLeft=document.all.imgcontainer1.style.posLeft+i_loop    
            imgcontainer2.innerHTML=""
        }
        if (ns6) {
            document.getElementById('imgcontainer1').innerHTML=imgcontent
    document.getElementById('imgcontainer2').style.left=parseInt(document.getElementById('imgcontainer1').style.left)+i_loop    
            document.getElementById('imgcontainer2').innerHTML=""
        
        }
        changeimage()
    }
}

function changeimage() {
    i_loop=0
    i_image1++
    if (i_image1>slideurl.length-1) {i_image1=0}
    i_image2=i_image1-1
    if (i_image2>slideurl.length-1) {i_image2=0}
    if (i_image2<0) {i_image2=slideurl.length-1}
    if (ie) {
        document.all.imgcontainer2.style.posLeft=document.all.imgcontainer1.style.posLeft
    }
    if (ns6) {
        document.getElementById('imgcontainer2').style.left=parseInt(document.getElementById('imgcontainer2').style.left)
    }
       var timer=setTimeout("stretchimage()",pause)
}


function simpleslideshow() {
    i_slide++
    if (i_slide>=slideurl.length) {i_slide=0}
    document.slideimage.src=preloadedimages[i_slide].src
    simpleslideshowcomment()
    var fadetimer=setTimeout("simpleslideshow()",pause)
}

function simpleslideshowcomment() {
    if (i_space>=0){
        all_space=""
        content=""
        for (i=0;i<i_space;i++) {
            all_space+=" "
        }
        for (i=0;i<slidecomment[i_slide].length;i++) {
            var thisletter=slidecomment[i_slide].substring(i,i+1)
            thisletter=thisletter+all_space
            content+=thisletter
        }
        window.status=content
        i_space--
        var fadetimer=setTimeout("simpleslideshowcomment()",20)
    }
    else {
        clearTimeout(fadetimer)
        i_space=max_space
    }
}

function simpleslideshowjump() {
    if (slidetarget[i_slide]=="_self") {
        document.location.href=slidelink[i_slide]
    } 
    else if (slidetarget[i_slide]=="_blank") {
        codepopup=window.open(slidelink[i_slide], "code", "status=yes,location=yes,toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,width=780,height=580,top=10,left=10");
    } 
    else if (slidetarget[i_slide]=="_top") {
        top.location.href=slidelink[i_slide]
    } 
    
    else if (slidetarget[i_slide]=="_parent") {
        parent.location.href=slidelink[i_slide]
    } 
    else {
        var jumpto=eval("parent."+slidetarget[i_slide])
        jumpto.location.href=slidelink[i_slide]
    }
}

if (ie || ns6) {
    var slideh=slideheight+30
    document.write("<div style=\"position:relative;width:"+slidewidth+"px;height:"+slideh+"px;overflow:hidden\">")
    document.write("<div id=\"imgcontainer1\" style=\"position:absolute;width:"+slidewidth+"px;height:"+slideh+"px;top:0px;left:0px\"><img src=\""+slideurl[0]+"\"></div>")
        document.write("<div id=\"imgcontainer2\" style=\"position:absolute;width:"+slidewidth+"px;height:"+slideh+"px;top:0px;left:0px\"><img src=\""+slideurl[1]+"\"></div>")
    document.write("</div>")
    window.onload=stretchimage
}
else {
    document.write("<a href=\"javascript:simpleslideshowjump()\"><img name=\"slideimage\" src=\""+slideurl[0]+"\" border=0></a>")
    window.onload=simpleslideshow
}
</script>
</td></tr></table>
ثلاثة صور تظهر بالتناوب - يمكن زيادة عددها و التحكم بسرعة ظهورها

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script language="JavaScript1.2">

/*
Blending Image Slide Show Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
* Visit http://www.star28.com/ for more code
* Translated By http://www.star28.com/
*/
function reapply(){
setTimeout("slideit()",2000);
return true;
}
window.onerror=reapply;
</script>
<script language="JavaScript1.1">
<!--
var image1=new Image();
image1.src="1.gif";        // ضع هنا عنوان الصورة الأولى
var image2=new Image();    
image2.src="2.gif";        // عنوان الصورة الثانية
var image3=new Image();
image3.src="3.gif";        // عنوان الصورة الثالثة
//-->
</script>
2- أضف هذا الكود ضمن الوسم BODY لتصبح هكذا

PHP:
<body onLoad="slideit()">
3- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY و لا تنسى تعديل الروابط

PHP:
<a href="javascript:slidelink()" onMouseover="window.status='اضغط على الصورة';return true" onMouseout="window.status=''">
<img src="firstimage.gif" name="slide" border=0 style="filter:blendTrans(duration=3)"></a>
<script>
<!--
////change number of images below // يمكنك تغيير عدد الصور و لا تنسى تعديل السطور التي في الرأس و الروابط
var number_of_images=3;
//change speed below (in seconds) //  يمكنك تغيير السرعة أيضاً
var speed=4;        // الفارق بين كل صورة بالثواني
var step=1;
var whichimage=1;
function slideit(){
if (!document.images)
return;
if (document.all)
slide.filters.blendTrans.apply();
document.images.slide.src=eval("image"+step+".src");
if (document.all)
slide.filters.blendTrans.play();
whichimage=step;
if (step<number_of_images)
step++;
else
step=1;
if (document.all)
setTimeout("slideit()",speed*1000+3000);
else
setTimeout("slideit()",speed*1000);
}
function slidelink(){
if (whichimage==1)
window.location="http://www.google.com";  // غير للذي يناسب الصورة الأولى
else if (whichimage==2)
window.location="http://www.msn.com";     // غير للذي يناسب الصورة الثانية
else if (whichimage==3)
window.location="http://www.yahoo.com";   // غير للذي يناسب الصورة الثالثة
}
//-->
</script>
صورة يستطيع تحريكها الزائر الى اليمين و اليسار

استعمل A لتحريك الصورة الى اليسار, D لتحريكها الى اليمين

طريقة التركيب

1- ضع هذا الكود في الرأس HEAD


PHP:
<!-- Original:  Massimo Giari (motore@iol.it) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<script language="JavaScript">

/* Visit http://www.star28.com/ for more code */

<!-- Begin
 var ieKey, nKey;
n = (document.layers) ? 1 : 0;
ie = (document.all) ? 1 : 0;
function moveImage() {
if (n) {
block = document.blockDiv;
}
if (ie) {
block = blockDiv.style;
}
block.xpos = parseInt(block.left);
block.active = 0;
document.onkeydown = keyDown;
document.onkeyup = keyUp;
if (n) {
document.captureEvents(Event.keydown | Event.keyup); 
   }
}
function keyDown(e) {
if (n) {
nKey = e.which;
ieKey = 0;
}
if (ie) {
ieKey = event.keyCode;
nKey = 0;
}
if ((nKey == 97 || ieKey == 65) && !block.active) {   
block.active = 1;
slideLeft();
}
if ((nKey == 100 || ieKey == 68) && !block.active) {   
block.active = 1;
slideRight();
   }
}
function keyUp(e) {
if (n) {
nKey = e.which;
ieKey = 0;
}
if (ie) {
ieKey = event.keyCode;
nKey = 0;
}
if ((nKey == 97 || ieKey == 65 || nKey == 100 || ieKey == 68))
block.active = 0;
}
function slideRight() {
if (block.active) {
block.xpos += 5;
block.left = block.xpos;
status = block.xpos;
setTimeout("slideRight()", 25);
   }
}
function slideLeft() {
if (block.active) {
block.xpos -= 5;
block.left = block.xpos;
status = block.xpos;
setTimeout("slideLeft()", 25);
   }
}
//  End -->
</script>
  <div id="blockDiv" STYLE="position:absolute; left:180px; top:110px; width:260px; height:28px">
<img src="SSSS.gif"></div>
2- أضف هذا الكود ضمن الوسم BODY لتصبح هكذا

PHP:
<body onLoad="moveImage()">
الرجاء عدم الرد لحين اكتمال المكتبة


 

المرفقات

  • msn.zip
    10.7 KB · المشاهدات: 129

أبو نور

عضو جديد
30 أكتوبر 2009
421
3
0
غير معروف
نص يومض في أسفل الصفحة

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY



PHP:
<script>

/*
Always-on-top message Script-
Dynamic Drive (www.dynamicdrive.com)
// Visit http://www.star28.com/ for more code
// Translated By http://www.star28.com/
*/

// ضع النص الذي تريده و يمكنك التعديل في أكواد HTML
var message='<b><font face=Arial color=000000 size=5>ضع النص هنا</font></b>';

// ضع لون الخلفية الأول
var backgroundcolor="yellow";

//enter 0 for always display, 1 for a set period, 2 for random display mode
var displaymode=0;

//if displaymode is set to display for a set period, enter the period below (1000=1 sec)
var displayduration=10000;

// اذا أردت أن لا يومض النص غير القيمة الى 0
var flashmode=1;
// ضع لون الخلفية الآخر
var flashtocolor="LIME";


///////////////do not edit below this line////////////////////////////////////////

function regenerate(){
window.location.reload();
}

var which=0;

function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",400);
}


function display2(){
if (document.layers){
if (topmsg.visibility=="show")
topmsg.visibility="hide";
else
topmsg.visibility="show";
}
else if (document.all){
if (topmsg.style.visibility=="visible")
topmsg.style.visibility="hidden";
else
topmsg.style.visibility="visible";
setTimeout("display2()",Math.round(Math.random()*10000)+10000);
}
}

function flash(){
if (which==0){
if (document.layers)
topmsg.bgColor=flashtocolor;
else
topmsg.style.backgroundColor=flashtocolor;
which=1;
}
else{
if (document.layers)
topmsg.bgColor=backgroundcolor;
else
topmsg.style.backgroundColor=backgroundcolor;
which=0;
}
}


if (document.all){
document.write('<span id="topmsg" style="position:absolute;visibility:hidden">'+message+'</span>');
}


function logoit(){
document.all.topmsg.style.left=document.body.scrollLeft+document.body.clientWidth/2-document.all.topmsg.offsetWidth/2;
document.all.topmsg.style.top=document.body.scrollTop+document.body.clientHeight-document.all.topmsg.offsetHeight-4;
}


function logoit2(){
topmsg.left=pageXOffset+window.innerWidth/2-topmsg.document.width/2;
topmsg.top=pageYOffset+window.innerHeight-topmsg.document.height-5;
setTimeout("logoit2()",90);
}

function setmessage(){
document.all.topmsg.style.left=document.body.scrollLeft+document.body.clientWidth/2-document.all.topmsg.offsetWidth/2;
document.all.topmsg.style.top=document.body.scrollTop+document.body.clientHeight-document.all.topmsg.offsetHeight-4;
document.all.topmsg.style.backgroundColor=backgroundcolor;
document.all.topmsg.style.visibility="visible";
if (displaymode==1)
setTimeout("topmsg.style.visibility='hidden'",displayduration);
else if (displaymode==2)
display2();
if (flashmode==1)
setInterval("flash()",1000);
window.onscroll=logoit;
window.onresize=new Function("window.location.reload()");
}


function setmessage2(){
topmsg=new Layer(window.innerWidth);
topmsg.bgColor=backgroundcolor;
regenerate2();
topmsg.document.write(message);
topmsg.document.close();
logoit2();
topmsg.visibility="show";
if (displaymode==1)
setTimeout("topmsg.visibility='hide'",displayduration);
else if (displaymode==2);
display2();
if (flashmode==1)
setInterval("flash()",1000);
}


if (document.layers)
window.onload=setmessage2;
else if (document.all)
window.onload=setmessage;

</script>
أربع رسائل تظهر بالترتيب في أعلى الصفحة

طريقة التركيب

انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script language="JavaScript">
<!-- Begin 
// Original:  Charles Foster (wcms_sf@msn.com)
// Web Site:  http://kylo.ml.org/flash

// Visit http://www.star28.com/ for more code
// Translated By http://www.star28.com/

 
var speed = 100;
var cycledelay = 2000;
var maxsize = 28;

var x = 0;
var y = 0;
var themessage, size;
var esize = "</font>";

function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
   }
}
var themessage2 = new initArray(
"مرحبا بك في قسم الجافا",
"يمكنك زيادة عدد الرسائل إن أردت",
"انسخ الكود الموجود و ضعه في منطقة HEAD",
"و ضع الرسائل التي تحب أن تظهر"           // لا تنسى الفواصل بين الأسطر عند زيادة الرسائل 
);
if(navigator.appName == "Netscape")
document.write('<layer id="wds"></layer><br>');
if (navigator.appVersion.indexOf("MSIE") != -1)
document.write('<span id="wds"></span><br>');
function upwords(){ 
themessage = themessage2[y];
if (x < maxsize) {
x++;
setTimeout("upwords()",speed);
}
else setTimeout("downwords()",cycledelay);

if(navigator.appName == "Netscape") {
size = "<font point-size='"+x+"pt'>"; 
document.wds.document.write(size+"<center>"+themessage+"</center>"+esize);
document.wds.document.close();
}
if (navigator.appVersion.indexOf("MSIE") != -1){
wds.innerHTML = "<center>"+themessage+"</center>";
wds.style.fontSize=x+'px';
   }
} 
function downwords(){
if (x > 1) {
x--;
setTimeout("downwords()",speed);
}
else {
setTimeout("upwords()",cycledelay);
y++;
if (y > themessage2.length - 1) y = 0;
}
if(navigator.appName == "Netscape") {
size = "<font point-size='"+x+"pt'>"; 
document.wds.document.write(size+"<center>"+themessage+"</center>"+esize);
document.wds.document.close();
}
if (navigator.appVersion.indexOf("MSIE") != -1){
wds.innerHTML = "<center>"+themessage+"</center>";
wds.style.fontSize=x+'px';
   }
}
setTimeout("upwords()",speed);
//  End -->
</script>
نص مشع

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<style>
<!--
#glowtext{
filter:glow(color=#00FF00,strength=3);
width:100%;
}
-->
</style>

<script language="JavaScript1.2">

/*
Glowing Text Script-
 Dynamic Drive (www.dynamicdrive.com)
// Visit http://www.star28.com/ for more code
// Translated By http://www.star28.com/
*/

function glowit(which){
if (document.all.glowtext[which].filters[0].strength==3)
document.all.glowtext[which].filters[0].strength=2;
else
document.all.glowtext[which].filters[0].strength=3;
}

function glowit2(which){
if (document.all.glowtext.filters[0].strength==3)
document.all.glowtext.filters[0].strength=2;
else
document.all.glowtext.filters[0].strength=3;
}

function startglowing(){
if (document.all.glowtext&&glowtext.length){
for (i=0;i<glowtext.length;i++)
eval('setInterval("glowit('+i+')",150)');
}
else if (glowtext);
setInterval("glowit2(0)",150);
}

if (document.all)
window.onload=startglowing;
</script>
2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

PHP:
<font face="Tahoma" size="2"> 
<span id="glowtext">يمكنك تغيير الألوان و التحكم بنوع و حجم الخط</span></font>
خمسة رسائل تتبدل بالترتيب بشكل عمودي

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<script language="JavaScript1.2">

/*
Pausing up-down message scroller-
Last updated: 99/07/05 (Bugs fixed, ability to specify background image for scroller)
© Dynamic Drive (www.dynamicdrive.com)
// Visit http://www.star28.com/ for more code
// Translated By http://www.star28.com/
*/

//configure the below five variables to change the style of the scroller
var scrollerwidth=150;  // عرض المربع 
var scrollerheight=120; // طول المربع
var scrollerbgcolor='#99FFFF';  // لون الخلفية
//set below to '' if you don't wish to use a background image
var scrollerbackground=''; // يمكن وضع خلفية للصورة

//configure the below variable to change the contents of the scroller
var messages=new Array();
messages[0]="<font face='Tahoma' size='2'><a href='http://www.star28.com/'>هذه هي الرسالة الأولى</a></font>";
messages[1]="<font face='Tahoma' size='2'><a href='http://www.star28.com/'>هذه هي الرسالة الثانية</a></font>";
messages[2]="<font face='Tahoma' size='2'><a href='http://www.star28.com/'>هذه هي الرسالة الثالثة</a></font>";
messages[3]="<font face='Tahoma' size='2'><a href='http://www.star28.com/'>هذه هي الرسالة الرابعة</a></font>";
messages[4]="<font face='Tahoma' size='2'><a href='http://www.star28.com/'>هذه هي الرسالة الخامسة</a></font>";

///////Do not edit pass this line///////////////////////

if (messages.length>1)
i=2;
else
i=0;

function move1(whichlayer){
tlayer=eval(whichlayer);
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0;
setTimeout("move1(tlayer)",3000);
setTimeout("move2(document.main.document.second)",3000);
return;
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5;
setTimeout("move1(tlayer)",100);
}
else{
tlayer.top=scrollerheight;
tlayer.document.write(messages[i]);
tlayer.document.close();
if (i==messages.length-1)
i=0;
else
i++;
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer);
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0;
setTimeout("move2(tlayer2)",3000);
setTimeout("move1(document.main.document.first)",3000);
return;
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5;
setTimeout("move2(tlayer2)",100);
}
else{
tlayer2.top=scrollerheight;
tlayer2.document.write(messages[i]);
tlayer2.document.close();
if (i==messages.length-1)
i=0;
else
i++;
}
}

function move3(whichdiv){
tdiv=eval(whichdiv);
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0;
setTimeout("move3(tdiv)",3000);
setTimeout("move4(second2)",3000);
return;
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=5;
setTimeout("move3(tdiv)",100);
}
else{
tdiv.style.pixelTop=scrollerheight;
tdiv.innerHTML=messages[i];
if (i==messages.length-1)
i=0;
else
i++;
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv);
if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
tdiv2.style.pixelTop=0;
setTimeout("move4(tdiv2)",3000);
setTimeout("move3(first2)",3000);
return;
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
tdiv2.style.pixelTop-=5;
setTimeout("move4(second2)",100);
}
else{
tdiv2.style.pixelTop=scrollerheight;
tdiv2.innerHTML=messages[i];
if (i==messages.length-1)
i=0;
else
i++;
}
}

function startscroll(){
if (document.all){
move3(first2);
second2.style.top=scrollerheight;
second2.style.visibility='visible';
}
else if (document.layers){
document.main.visibility='show';
move1(document.main.document.first);
document.main.document.second.top=scrollerheight+5;
document.main.document.second.visibility='show';
}
}

window.onload=startscroll;

</script>

<ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; background=&{scrollerbackground}; visibility=hide>
<layer id="first" left=0 top=1 width=&{scrollerwidth};>
<script language="JavaScript1.2">
if (document.layers)
document.write(messages[0]);
</script>
</layer>
<layer id="second" left=0 top=0 width=&{scrollerwidth}; visibility=hide>
<script language="JavaScript1.2">
if (document.layers)
document.write(messages[1]);
</script>
</layer>
</ilayer>

<script language="JavaScript1.2">
if (document.all){
document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">');
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">');
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">');
document.write(messages[0]);
document.writeln('</div>');
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0;visibility:hidden">');
document.write(messages[1]);
document.writeln('</div>');
document.writeln('</div>');
document.writeln('</span>');
}
</script>
نص بألوان قوس قزح

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<script language="JavaScript">

// Visit http://www.star28.com/ for more code

<!-- Begin
function createHexArray(n) {
this.length = n;
for (var i = 1; i <= n; i++)
this[i] = i - 1;

this[11] = "A";
this[12] = "B";
this[13] = "C";
this[14] = "D";
this[15] = "E";
this[16] = "F";
return this;
}
hx = new createHexArray(16);

function convertToHex(x) {
if (x < 17) x = 16;
var high = x / 16;
var s = high+"";
s = s.substring(0, 2);
high = parseInt(s, 10);
var left = hx[high + 1];
var low = x - high * 16;
if (low < 1) low = 1;
s = low + "";
s = s.substring(0, 2);
low = parseInt(s, 10);
var right = hx[low + 1];
var string = left + "" + right;
return string;
}

function makeRainbow(text) {
text = text.substring(0, text.length);
color_d1 = 255;
mul = color_d1 / text.length;
for(var i = 0; i < text.length; i++) {
color_d1 = 255*Math.sin(i / (text.length / 3));
color_h1 = convertToHex(color_d1);
color_d2 = mul * i;
color_h2 = convertToHex(color_d2);

k = text.length;
j = k - i;
if (j < 0) j = 0;
color_d3 = mul * j;
color_h3 = convertToHex(color_d3);

document.write("<FONT COLOR=\"#" + color_h3 + color_h1 + color_h2 + "\">" + text.substring(i, i + 1) + "</FONT>");
   }
}
// End -->
</script>
2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

PHP:
<div align="center">
<strong>
<font size="3" face="Tahoma">
<script>
<!--
makeRainbow("هذا هو النص بألوان قوس قزح");
// -->
</script>
</font>
</strong>
</div>
نص يظهر بطريقة الآلة الكاتبة

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY و عدل للذي يناسبك


PHP:
<p id='anima' style="position:absolute;font-size:20;background-color:white;">
</p>
<br>
<br>

<script language="JavaScript">

// Visit http://www.star28.com/ for more code

<!-- Begin
text = "هذا هو النص الذي يظهر بطريقة الآلة الكاتبة .....";
word = text.split('~');
i = -1;           //letter count
j = 0;            //which word in array is to be spelled
start = 0;      //variable to hold cycles of the blink
scount = 0;  //variable to hold cycles of the mispell
function checkIt() {
with(document.all.anima) {
if(innerText.charAt(innerText.length-1) == "_") {
innerText = innerText.substring(0, innerText.length - 1);
return true;
}
else {
innerText = innerText + "_";
return false;
      }
   }
}
function blinkfor(count, timing) {
with(document.all.anima) {
if(start < count) {
if(checkIt()) {
start++;
}
mistake = 'blinkfor('+count+','+timing+')';
setTimeout('eval(mistake)', timing);
}
else {
start = 0;
i++;
call_It();
      }
   }
}
function mispell(offset,correction) {
with(document.all.anima) {
if(scount < offset) {
if(!checkIt()) {
innerText = innerText.substring(0, innerText.length-2) + "_";
scount++;
}
mistake = 'mispell(' + offset + ', "' + correction + '")';
setTimeout("eval(mistake)", 150);
}
else {
if(correction == '' && scount == offset ) {
i = i - offset;
scount++;
}
if(offset > 0) {
if(checkIt()) {
innerText += correction.charAt(correction.length - offset) + "_";
offset--;
}
mistake = 'mispell(' + offset + ',"' + correction + '")';
setTimeout("eval(mistake)", 150);
}
else {
scount = 0;
j++;
innerText = innerText.substring(0, innerText.length - 1);
call_It();
         }
      }
   }
}
function spellit(string) {
with(document.all.anima) {
if(i <= string.length) {
if(string.charAt(i) == '/') {
NumErrs = string.charAt(i + 1);
NewLets = string.substring(i + 2, i + NumErrs);
mispell(NumErrs,NewLets);
}
else if(i <= string.length - 1) {
i++;
innerText = string.substring(0,i) + "_";
mistake = 'spellit("' + string + '")';
setTimeout("eval(mistake)", 150);
}
else {
innerText = string.substring(0, i);
j++;
call_It();
         }
      }
   }
}
function call_It() {
with(document.all) {
if(i == -1){
blinkfor(4, 150);
}
else if(j <= word.length - 1) {
spellit(anima.innerText + " " + word[j]);
} 
else {
blinkfor(100,230);
      }
   }
}
if(document.all) {
call_It();
}
//  End -->
</script>
الرجاء عدم الرد لحين اكتمال المكتبة


 

أبو نور

عضو جديد
30 أكتوبر 2009
421
3
0
غير معروف

لتشغيل ملفات صوتية عشوائية عند دخول الصفحة

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<!-- ضع روابط الملفات بالمجموعة الأولى و المجموعة الثانية ضع اسماء الروابط -->

<SCRIPT LANGUAGE="JavaScript">
song = new Array(10);
title = new Array(10);
song[0] ='رابط الملف الصوت1'
song[1] ='رابط الملف الصوتي2'
song[2] ='رابط الملف الصوتي3'
song[3] ='رابط الملف الصوتي4'
song[4] ='رابط الملف الصوتي5'
song[5] ='رابط الملف الصوتي6'
song[6] ='رابط الملف الصوتي7'
song[7] ='رابط الملف الصوتي8'
song[8] ='رابط الملف الصوتي9'
song[9] ='رابط الملف الصوتي10'
song[10] ='رابط الملف الصوتي11'

title[0] = 'اسم الملف1'
title[1] = 'اسم الملف2'
title[2] = 'اسم الملف3'
title[3] = 'اسم الملف4'
title[4] = 'اسم الملف5'
title[5] = 'اسم الملف6'
title[6] = 'اسم الملف7'
title[7] = 'اسم الملف8'
title[8] = 'اسم الملف9'
title[9] = 'اسم الملف10'
title[10] = 'اسم الملف11'

index = Math.floor(Math.random() * song.length);document.write("<DL>\n");
document.write("<EMBED SRC="+song[index]+" width=200 height=55 autostart=true loop=infinite BGCOLOR='#000000'");
document.write(' TEXT="#FFFFFF">');
document.write("<BR>");
document.write("<font face=tahoma size=2 color=black>اسم الملف المختار هو  </font>: ");
document.write("<font face=tahoma size=2 color=red>");
document.write(title[index]);
document.write("</font>")
document.write("</DL>\n");
</SCRIPT>
تشغيل ملف صوتي يتغير كل يوم

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<div align="center"><SCRIPT LANGUAGE="JavaScript">
  
/* Translated By www.star28.com/                          */
/* Visit our site at http://www.star28.com/ for more code */

page=new Date();
if (page.getDate() == 1) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 2) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 3) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 4) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 5) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 6) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 7) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 8) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 9) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 10) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 11) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 12) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 13) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 14) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 15) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 16) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 17) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 18) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 19) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 20) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 21) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 22) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 23) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 24) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 25) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 26) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 27) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 28) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 29) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 30) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");

if (page.getDate() == 31) 
document.write("<embed src=http://www.star28.com/java/java12/Song15.wav autostart=true volume=30 width=250 height=90>");
page=new Date();
var months = new Array(13);
months[1] = "كانون ثاني";
months[2] = "شباط";
months[3] = "أذار";
months[4] = "نيسان";
months[5] = "أيار";
months[6] = "حزيران";
months[7] = "تموز";
months[8] = "آب";
months[9] = "أيلول";
months[10] = "تشرين أول";
months[11] = "تشرين ثاني";
months[12] = "كانون أول";

var dateObj = new Date()
var lmonth = months[dateObj.getMonth() + 1]
var fyear = "" + dateObj.getYear()
var date = dateObj.getDate()

document.write("<br><font color=black size=2 face=tahoma>" + date + " " + lmonth + ", " + fyear + "</font>")

</SCRIPT>
</div>
جعل ملف صوتي خلفية لصفحتك

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<bgsound src="http://www.star28.com/java/java12/Song15.wav" loop="1"></bgsound>
الرجاء عدم الرد لحين اكتمال المكتبة

 

أبو نور

عضو جديد
30 أكتوبر 2009
421
3
0
غير معروف


طلب اسم الزائر عند دخول الصفحة

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<SCRIPT LANGUAGE="Javascript"> 
//http://www.star28.com
name=window.prompt("ادخل أسمك.","هنا "); 
document.write("<H1 align=center>أهلين فيك يا "+name+".</H1>") 
//-->
</script>
درجة وضوح الشاشة

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<FONT face="Tahoma" size="2" color="#0000FF">
 <SCRIPT LANGUAGE="Javascript">
 
 // Visit our site at http://www.star28.com/ for more code
 
 <!--
   
if (self.screen) {     // for NN4 and IE4
        width = screen.width
        height = screen.height
// Testing this first prevents firing the slow Java of NN4
}
else if (self.java) {   // for NN3 with enabled Java
       var jkit = java.awt.Toolkit.getDefaultToolkit();
       var scrsize = jkit.getScreenSize();       
       width = scrsize.width; 
       height = scrsize.height; 
}
else{
 width = height = '?' // N2, E3, N3 w/Java off, probably Opera and WebTV

}
document.write("درجة وضوح الشاشة لديك : ");
document.write(width +"×"+ height)
//or whatever based on the above results

//--></SCRIPT></FONT>
نظام التشغيل لديك

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
 <SCRIPT language=JavaScript>
  
  // Visit our site at http://www.star28.com/ for more code
  
<!--
function checkOS() {
  if(navigator.userAgent.indexOf('IRIX') != -1)
    { var OpSys = "Irix"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('98') != -1))
    { var OpSys = "Windows 98"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('95') != -1))
    { var OpSys = "Windows 95"; }
  else if(navigator.appVersion.indexOf("16") !=-1)
    { var OpSys = "Windows 3.1"; }
  else if (navigator.appVersion.indexOf("NT") !=-1)
    { var OpSys= "Windows NT"; }  
else if(navigator.appVersion.indexOf("SunOS") !=-1)
    { var OpSys = "SunOS"; }
  else if(navigator.appVersion.indexOf("Linux") !=-1)
    { var OpSys = "Linux"; }  
  else if(navigator.userAgent.indexOf('Mac') != -1)
    { var OpSys = "Macintosh"; }
  else if(navigator.appName=="WebTV Internet Terminal")
    { var OpSys="WebTV"; }
  else if(navigator.appVersion.indexOf("HP") !=-1)
    { var OpSys="HP-UX"; } 
else { var OpSys = "other"; }
  return OpSys;
}
// -->
      </SCRIPT>
    <b><font face="arial" size="3" color="#FF0000"><font face="arial" size="3" color="#000000">نظام التشغيل لديك هو : </font>
      <SCRIPT language=JavaScript>
<!--
var OpSys = checkOS();
document.write(OpSys);
// -->
      </SCRIPT></font></b>
نوع المستعرض لديك

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<b><font face="arial" size="3" color="#FF0000"><font face="arial" size="3" color="#000000">نوع المستعرض لديك هو : </font>
 <SCRIPT language=JavaScript>
 
 // Visit our site at http://www.star28.com/ for more code
 
        var version = 0;
                
if(navigator.userAgent.indexOf("AOL 5") != -1)  document.write("America Online 5.0");
else if 
(navigator.userAgent.indexOf("AOL 4") != -1)  document.write("America Online 4.0");
else if 
(navigator.userAgent.indexOf("AOL 3") != -1)  document.write("America Online 3.0");
else if 
(navigator.userAgent.indexOf("MSIE 5") != -1) document.write("Internet Explorer 5.0");    
else if 
(navigator.userAgent.indexOf("MSIE 4") != -1)  document.write("Internet Explorer 4.0");
else if
(navigator.userAgent.indexOf("MSIE 3") != -1)  document.write("Internet Explorer 3.0!");
else if
(navigator.userAgent.indexOf("Mozilla/5.0") != -1)  document.write("Internet Explorer 5");
else if
(navigator.userAgent.indexOf("Mozilla/4.7") != -1)  document.write("Internet Explorer 4.7");
else if
(navigator.userAgent.indexOf("Mozilla/4.61") != -1)  document.write("Internet Explorer 4.61");
else if
(navigator.userAgent.indexOf("Mozilla/4.5") != -1)  document.write("Internet Explorer 4.5");
else if
(navigator.userAgent.indexOf("Mozilla/4") != -1)  document.write("Internet Explorer 6.0");
else if
(navigator.userAgent.indexOf("Mozilla/3") != -1)  document.write("Internet Explorer 3.0");
else if
(navigator.userAgent.indexOf("Mozilla/2") != -1)  document.write("Internet Explorer 2");
else if
(navigator.userAgent.indexOf("MSIE 4.5") != -1)  document.write("Microsoft Internet Explorer 4.5 for Macintosh");
else if
(navigator.appName=="WebTV Internet Terminal") document.write("WebTV Browser");        
else if 
(navigator.appName != "Microsoft Internet Explorer" && navigator.appName != "Netscape") document.write("You are not running IE, Netscape, AOL, or WebTV");                
else version = 8;
        // -->
      </SCRIPT></font></b>
رمز المستعرض لديك

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
 <b><font face="arial" size="3" color="#FF0000"><font face="arial" size="3" color="#000000">رمز المستعرض لديك هو : </font>
 <SCRIPT>
document.write(navigator.appCodeName)
      </SCRIPT>

      <SCRIPT>
      
// Visit our site at http://www.star28.com/ for more code

         var version = 0;
                 if
        (navigator.userAgent.indexOf("Mozilla/5.0") != -1)  document.write("5.0");
        else if
        (navigator.userAgent.indexOf("Mozilla/4.7") != -1)  document.write("4.7");
                else if
        (navigator.userAgent.indexOf("Mozilla/4.61") != -1)  document.write("4.61");
        else if
        (navigator.userAgent.indexOf("Mozilla/4.5") != -1)  document.write("4.5")
                else if
                (navigator.userAgent.indexOf("Mozilla/4") != -1)  document.write("4.0");
                else if
                (navigator.userAgent.indexOf("Mozilla/3") != -1)  document.write("3.0");
                else if
                (navigator.userAgent.indexOf("Mozilla/2") != -1)  document.write("2.0");
                else document.write("Undetermined");
                
      </SCRIPT></font></b>
لغة المستعرض لديك

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
 <b><font face="arial" size="3" color="#FF0000"><font face="arial" size="3" color="#000000">لغة المستعرض لديك هو : </font>
 <SCRIPT 
      language=javascript>document.write(navigator.browserLanguage)</SCRIPT></font></b>
إصدار الجافا لديك

طريقة التركيب

1- انسخ هذا الكود و ضعه في منطقة HEAD


PHP:
<SCRIPT language="JavaScript">

 // Visit our site at http://www.star28.com/ for more code

<!-- Begin
jsver = "1.0";
// End -->
</SCRIPT>
<SCRIPT language="JavaScript1.1">
<!-- Begin
jsver = "1.1";
// End -->
</SCRIPT>
<SCRIPT language="JavaScript1.2">
<!-- Begin
jsver = "1.2";
// End -->
</SCRIPT>
<SCRIPT language="JavaScript1.3">
<!-- Begin
jsver = "1.3";
// End -->
</SCRIPT>
<SCRIPT language="JavaScript1.4">
<!-- Begin
jsver = "1.4";
// End -->
</SCRIPT>
2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

PHP:
<SCRIPT language="JavaScript">
<!-- Begin
document.write("<b> JavaScript version " + jsver + "</b>");
// End -->
</SCRIPT>
<NOSCRIPT>
<B>متصفحك لا يدعم الجافا سكربت.</B>
</NOSCRIPT>
أنت قادم من

طريقة التركيب

انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY


PHP:
<b><font face="arial" size="3" color="#FF0000"><font face="arial" size="3" color="#000000">أنت قادم من : </font>
<SCRIPT language=JavaScript>

document.write(document.referrer)

      </SCRIPT>
</font>
 </b>

والسلام عليكم​
 

SoF!@N

عضو جديد
10 أغسطس 2009
167
0
0
الله يبارك فيك اكواد رائعه
 

Togomori

عضو جديد
11 مارس 2010
42
0
0
شكرا لك

مبدع

و ادور على هذي الاشياء من زمان
 

حسام عاشق

عضو جديد
15 مايو 2010
160
0
0
egypt
www.elawa2l.net
وربنااااااااااااااااااااااااا تحفة بد بجد رووووووووووووووووووووووووووووعة

تسلم يا جامد