مشاهدة النسخة كاملة : شفرات الجافا
القائد البحريني
13-06-2002, 07:20 PM
بداية اود ان اوضح ان اضافة المشاركات هي فقط حول الجافا و اذا كان هناك شيء يمكن نشره في مواضيع اخرى .
القائد البحريني
13-06-2002, 07:24 PM
سكربت عدم الضغط على زر الماوس الأيمن
<head>
<script language="**********" ****** http-*****=" function click(){
if(event.button==2){earthquake()
alert("Hey!")
alert("You are trying to steal things from my page!")
var name = prompt('How do people call you?','Suckhead')
var fav;
alert("Okay "+name+", you asked for it...")
alert("Do you like Pokemon?")
alert("I hope you do "+name+"!")
alert("Because I am going to bring you to a lot of pokemon...")
alert("Because you tried to steal things from my page!")
alert("So, EAT THIS "+name+"!!!!!!!")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
window.open("http://www.cpress.cc")
;}
}document.onmousedown=click// --]
function earthquake(){
window.moveTo(1000,5000)
}
</script
</head>
القائد البحريني
13-06-2002, 07:34 PM
سكربت لدوران المتصفح
<HEAD>
<SCRIPT>
// VARIABLES GLOBALES
a=275;
b=275;
r=50;
x=1;
window.resizeTo(75,100);
function rotateObjects(r) {
for (var i = 0; i <360; i++) {
x = (r * Math.cos((i * Math.PI)/180)) + a;
y = (r * Math.sin((i * Math.PI)/180)) + b;
window.moveTo(x,y);
} //fin for
} //fin funcion
// while (r<=100) {
for (r=60;r<=100;r+=1){
rotateTimer = setTimeout("rotateObjects(r)", 100);
// r+= 10;
} //fin while
</script>
</HEAD>
<BODY onLoad="rotateObject(r)">
</body>
القائد البحريني
13-06-2002, 07:39 PM
سكربت لمتصفح يتبع الماوس
<head>
<title>Mouse tracking window</title>
<SCRIPT LANGUAGE="**********">
function opennew()
{
newwin = window.open("", "newwindow", "height=200, width=200, scrollbars=no")
newwin.document.write("New window")
}
function track()
{
x = event.clientX
y = event.clientY
document.form.tracker.value = x + ", " + y;
xpos = x + 100
ypos = y + 100
newwin.moveTo(xpos,ypos);
}
// object.style.pixelLeft
</SCRIPT>
</head>
<body onLoad="opennew();" onmousemove="track();">
<FORM NAME="form">
<INPUT NAME="tracker" TYPE="text"><BR>
<A HREF="http://www.cpress.cc" onClick="newwin.close();">Visit my site</A>
</FORM>
</body>
المغوار
13-06-2002, 07:40 PM
شكراً أخي وأفدنا بالمزيد
القائد البحريني
13-06-2002, 07:40 PM
سكربت ترحيب مثل البانار
<body>
<center>
<script language=**********>
var instring
if (navigator.appName == "Microsoft Internet Explorer")
{ document.write("<br><font face='lcdD' size=6>")
inString = window.prompt("Please, TYPE HERE YOUR NAME","")
document.write("<marquee scrollamount=3 scrolldelay=57 bgcolor=#FF0000 border=2 width=300 style='border: 5 groove #0000FF'>")
document.write("Hi <strong>"+inString+"</strong> my name is LENKO ")
document.write("</marquee>")
document.write("</center>")
document.write("<br></font>")}
else
{ document.write("<br><font face='arial' size=6 color='red'>")
inString = window.prompt("Please, TYPE HERE YOUR NAME","")
document.write("Hi <strong>"+inString+"</strong>, my name is LENKO")
document.write("</center>")
document.write("<br></font>")}
</script>
</body>
القائد البحريني
13-06-2002, 07:41 PM
سكربت لصورة تسبح في المتصفح
<BODY>
<SCRIPT language="**********1.2">
document.write("<body background=\"bg2.gif\" ALINK=\"#CCCCAA\" LINK=\"#CCCCAA\" VLINK=\"#665522\">");
/*
Floating Spirit
*/
var cursorpath;
if(Math.random() > 0.5)
{
cursorpath="evil.gif"; //just replace "evil.gif" with the name of your picture
}
else
{
cursorpath="good.gif"; //just replace "good.gif" with the name of your picture
}
if (document.layers)
{document.write("<LAYER NAME='PoInTeRs' LEFT=10 TOP=10><img src='"+cursorpath+"' width=115 height=137></LAYER>")}
else if (document.all){document.write("<div id='pOiNtErS' style='position:absolute;top:10px;left:10px;width: 115px;height:137px;z-index:50'><img src='"+cursorpath+"' width=115 height=137></div>")}
count=-1;
move=1;
function Curve(){
abc=new Array(0,1,1,1,2,3,4,0,6,-1,-1,-1,-2,-3,-4,0,-6)
for (i=0; i < abc.length; i++)
{var C=Math.round(Math.random()*[i])}
howbend=abc[C];
setTimeout('Curve()',1900);
return howbend;
}
ypos=10;
xpos=10;
degree = 60;
function MoveRandom(){
PathBend=degree+=howbend;//ok!
y = 4*Math.sin(PathBend*Math.PI/180);
x = 6*Math.cos(PathBend*Math.PI/180);
if (document.layers){
ypos+=y;
xpos+=x;
document.PoInTeRs.top=ypos+window.pageYOffset;
document.PoInTeRs.left=xpos+window.pageXOffset;
}
else if (document.all){
ypos+=y;
xpos+=x;
document.all.pOiNtErS.style.top=ypos+document.body .scrollTop;
document.all.pOiNtErS.style.left=xpos+document.bod y.scrollLeft;
}
T=setTimeout('MoveRandom()',50);
}
function edges(){
if (document.layers){
if (document.PoInTeRs.left >= window.innerWidth-40+window.pageXOffset)degree=Math.round(Math.rando m()*45+157.5);
if (document.PoInTeRs.top >= window.innerHeight-30+window.pageYOffset)degree=Math.round(Math.rando m()*45-112.5);
if (document.PoInTeRs.top <= 2+window.pageYOffset) degree = Math.round(Math.random()*45+67.5);//OK!
if (document.PoInTeRs.left <= 2+window.pageXOffset) degree = Math.round(Math.random()*45-22.5);//OK!
}
else if (document.all)
{
if (document.all.pOiNtErS.style.pixelLeft >= document.body.offsetWidth-45+document.body.scrollLeft)degree=Math.round(Math .random()*45+157.5);
if (document.all.pOiNtErS.style.pixelTop >= document.body.offsetHeight-35+document.body.scrollTop)degree=Math.round(Math. random()*45-112.5);
if (document.all.pOiNtErS.style.pixelTop <= 2+document.body.scrollTop) degree = Math.round(Math.random()*45+67.5);//OK!
if (document.all.pOiNtErS.style.pixelLeft <= 2+document.body.scrollLeft) degree = Math.round(Math.random()*45-22.5);//OK!
}
setTimeout('edges()',100);
}
function starteffect(){
Curve();
MoveRandom();// onUnload="opener.gO()"
edges();
}
if (document.all||document.layers)
window.onload=starteffect
</script>
القائد البحريني
13-06-2002, 07:43 PM
سكربت للتحكم بسحب الشكل الى اي مكان بالمتصفح
<head>
<!-- Begin Content Style -->
<style type="text/css">
#content
{
background : #003B00;
border : thin groove Black;
font : 800 oblique small-caps larger/normal monospace;
color : White;
}</style>
<!-- End Content Style -->
<!--Floater Style-->
<style type="text/css">
#floater {
position: absolute;
left: 400;
top: 60;
visibility: visible;
cursor:hand;
}
</style>
</head>
<body>
<!-- End Floater Style Sheet -->
<!-- Begin Floater HTML -->
<SPAN ID="floater">
<div ID="content">
<font face="Arabic Transparent">إسحب الشكل الى اي مكان</font>
</div>
</SPAN>
<!-- End Floater HTML -->
<!-- Begin Floater Script -->
<SCRIPT LANGUAGE="**********">
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- CHASE CODE -->
function heartBeat() {
if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater.style.pixelTop += percent;
if(NS) document.floater.top += percent;
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater.style.pixelLeft += percent;
if(NS) document.floater.left += percent;
lastScrollX = lastScrollX + percent;
}
}
<!-- CHASE CODE -->
<!-- DRAG DROP CODE -->
function checkFocus(x,y) {
var totalY, totalX;
floatx = document.floater.pageX;
floaty = document.floater.pageY;
floatwidth = document.floater.clip.width;
floatheight = document.floater.clip.height;
if(20 == 0) totalY = floatheight;
else totalY = 20;
if(0 == 0) totalX = floatwidth;
else totalX = 0;
if( (x > floatx && x < (floatx+totalX)) && (y > floaty && y < (floaty+totalY))) return true;
else return false;
}
function grabIt(e) {
if(IE) {
whichIt = event.srcElement;
while (whichIt.id.indexOf("floater") == -1) {
whichIt = whichIt.parentElement;
if (whichIt == null) { return true; }
}
whichIt.style.pixelLeft = whichIt.offsetLeft;
whichIt.style.pixelTop = whichIt.offsetTop;
currentX = (event.clientX + document.body.scrollLeft);
currentY = (event.clientY + document.body.scrollTop);
if(0 != 0) { if(event.clientX > whichIt.offsetLeft + 0) whichIt = null; }
if(whichIt) { if(20 != 0) { if(currentY > whichIt.offsetTop + 20) whichIt = null; } }
} else {
window.captureEvents(Event.MOUSEMOVE);
if(checkFocus (e.pageX,e.pageY)) {
whichIt = document.floater;
FloatTouchedX = e.pageX-document.floater.pageX;
FloatTouchedY = e.pageY-document.floater.pageY;
}
}
return true;
}
function moveIt(e) {
if (whichIt == null) { return false; }
if(IE) {
newX = (event.clientX + document.body.scrollLeft);
newY = (event.clientY + document.body.scrollTop);
distanceX = (newX - currentX); distanceY = (newY - currentY);
currentX = newX; currentY = newY;
whichIt.style.pixelLeft += distanceX;
whichIt.style.pixelTop += distanceY;
if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;
if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft;
if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;
event.returnValue = false;
} else {
whichIt.moveTo(e.pageX-FloatTouchedX,e.pageY-FloatTouchedY);
if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset;
if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;
if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;
if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;
return false;
}
return false;
}
function dropIt() {
whichIt = null;
if(NS) window.releaseEvents (Event.MOUSEMOVE);
return true;
}
<!-- DRAG DROP CODE -->
if(NS) {
window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN );
window.onmousedown = grabIt;
window.onmousemove = moveIt;
window.onmouseup = dropIt;
}
if(IE) {
document.onmousedown = grabIt;
document.onmousemove = moveIt;
document.onmouseup = dropIt;
}
if(NS || IE) action = window.setInterval("heartBeat()",1);
</SCRIPT>
<!-- End Floater Script -->
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</body>
القائد البحريني
13-06-2002, 07:44 PM
سكربت لمتصفح يسبح في الشاشة
<BODY>
<SCRIPT LANGUAGE="**********">
var width2=screen.availWidth/2 //How much space is there?
window.resizeTo(350,350)
window.moveTo(0,0)
inter=setInterval("go()", 1);
var count=1;
var aa=0
var bb=0
var a=0
var b=0
function go(u)
{
if (aa==0)
a=a+2
if (a>screen.availWidth-450)
aa=1
if (aa==1)
a=a-2
if (a==0)
aa=0
if (bb==0)
b=b+2
if (b>screen.availHeight-350)
bb=1
if (bb==1)
b=b-2
if (b==0)
bb=0
if (count<1000)
window.moveTo(a,b)
}
</script>
القائد البحريني
13-06-2002, 07:46 PM
سكربت لفتح الهارد دسك
<BODY>
<P ALIGN="center"><INPUT TYPE="submit" VALUE="فتح الهارد دسك"></FORM>
</BODY>
القائد البحريني
13-06-2002, 07:47 PM
سكربت لنص يتبع المؤشر
<head>
<SCRIPT language=**********>
<!-- Begin
if (document.all) {
//Things you can alter
yourLogo = "WWW.CPRESS.CC"; //Not less than 2 letters!
logoFont = "Arial";
logoColor = "000000";
//Nothing needs altering below!
yourLogo = yourLogo.split('');
L = yourLogo.length;
TrigSplit = 360 / L;
Sz = new Array()
logoWidth = 100;
logoHeight = -30;
ypos = 0;
xpos = 0;
step = 0.03;
currStep = 0;
document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < L; i++) {
document.write('<div id="ie" style="position:absolute;top:0px;left:0px;'
+'width:10px;height:10px;font-family:'+logoFont+';font-size:12px;'
+'color:'+logoColor+';text-align:center">'+yourLogo[i]+'</div>');
}
document.write('</div></div>');
function Mouse() {
ypos = event.y;
xpos = event.x - 5;
}
document.onmousemove=Mouse;
function animateLogo() {
outer.style.pixelTop = document.body.scrollTop;
for (i = 0; i < L; i++) {
ie[i].style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180);
ie[i].style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180);
Sz[i] = ie[i].style.pixelTop - ypos;
if (Sz[i] < 5) Sz[i] = 5;
ie[i].style.fontSize = Sz[i] / 1.7;
}
currStep -= step;
setTimeout('animateLogo()', 20);
}
window.onload = animateLogo;
}
// End -->
</SCRIPT>
القائد البحريني
13-06-2002, 07:49 PM
سكربت للتحكم بسحب الفهرس في المتصفح
<HEAD>
<SCRIPT language=**********>
<!-- Begin
function checkVersion4() {
var x = navigator.appVersion;
y = x.substring(0,4);
if (y>=4) setVariables();moveOB();
}
function setVariables() {
if (navigator.appName == "Netscape") {
h=".left=";v=".top=";dS="document.";sD="";
}
else{
h=".pixelLeft=";v=".pixelTop=";dS="";sD=".style";
}
objectX="object11"
XX=-70;
YY=-70;
OB=11;
}
function setObject(a) {
objectX="object"+a;
OB=a;
XX=eval("xpos"+a);
YY=eval("ypos"+a);
}
function getObject() {
if (isNav) document.captureEvents(Event.MOUSEMOVE);
}
function releaseObject() {
if (isNav) document.releaseEvents(Event.MOUSEMOVE);
check="no";
objectX="object11";
document.close();
}
function moveOB() {
eval(dS + objectX + sD + h + Xpos);
eval(dS + objectX + sD + v + Ypos);
}
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
var isIE = (navigator.appName.indexOf("Microsoft") !=-1);
nsValue=(document.layers);
check="no";
function MoveHandler(e) {
Xpos = (isIE) ? event.clientX : e.pageX;
Ypos = (nsValue) ? e.pageY : event.clientY;
if (check=="no") {
diffX=XX-Xpos;
diffY=YY-Ypos;
check="yes";
if (objectX=="object11") check="no";
}
Xpos+=diffX;
Ypos+=diffY;
if (OB=="1") xpos1=Xpos,ypos1=Ypos;
moveOB();
}
if (isNav) {
document.captureEvents(Event.CLICK);
document.captureEvents(Event.DBLCLICK);
}
xpos1=50; // make this the left pixel value for object1 below
ypos1=50; // make this the top pixel value for object1 below
xpos11 = -50;
ypos11 = -50;
Xpos=5;
Ypos=5;
document.onmousemove = MoveHandler;
document.onclick = getObject;
document.ondblclick = releaseObject;
// End -->
</SCRIPT>
</HEAD>
<BODY vLink=#0000ff bgColor=#ffffff onload=checkVersion4()><BR>
<CENTER>
<TABLE cellSpacing=10 cellPadding=0 width=600>
<TBODY>
<TR>
<TD align=middle width=468></TD>
<TD align=middle width=120><!-- AdSpace site=internetcom&size=120x60&PagePos=10&channel=_CHANNEL_&content_site=_SITE_&feature=_FEATURE_ -->
<!-- /AdSpace --></TD></TR></TBODY></TABLE><BR><BR><BASEFONT><BR>
<DIV id=object1 style="Z-INDEX: 2; LEFT: 50px; POSITION: absolute; TOP: 50px">
<TABLE cellPadding=5 border=1>
<TBODY>
<TR>
<TD bgColor=#eeeeee><A onmousedown=setObject(1)
href="**********:void(0)">Movable Menu</A></TD></TR>
<TR>
<TD><BR><A href="**********:void(0)">Menu Item # 1</A><BR><A
href="**********:void(0)">Menu Item # 2</A><BR><A
href="**********:void(0)">Menu Item # 3</A> </TD></TR></TBODY></TABLE></DIV>
<DIV id=object11
style="Z-INDEX: 2; LEFT: -70px; POSITION: absolute; TOP: -70px"></DIV>
<P>
<P> </FORM><!--content_stop-->
</BODY>
القائد البحريني
13-06-2002, 07:50 PM
سكربت للنص في شريط الحالة
<script>
<!-- Hide from old browsers
// All you have to do is put another text in the variable message.
// Don't forget to break all lines with a ^
// When you do not place a ^ at the end of all the message, the
// message will not repeat
message = "الرسالة الأولى^" +
"الرسالة الثانية^" +
"الرسالة الثالثة^" +
"الرسالة الرابعة^" +
"الرسالة الخامسة^" +
"^"
scrollSpeed = 25
lineDelay = 1500
// Do not change the text below //
txt = ""
function scrollText(pos) {
if (message.charAt(pos) != '^') {
txt = txt + message.charAt(pos)
status = txt
pauze = scrollSpeed
}
else {
pauze = lineDelay
txt = ""
if (pos == message.length-1) pos = -1
}
pos++
setTimeout("scrollText('"+pos+"')",pauze)
}
// Unhide -->
scrollText(0)
</script>
القائد البحريني
13-06-2002, 07:52 PM
سكربت للترشيح
<BODY>
<SCRIPT language=**********>
<!-- The ********** Source!! http://ضع عنوان موقعك هنا-->
function vote () {
vote4alnadeem=window.open("http://عنوان اشتراكك الترشيحي");
} function cancel () {}
if (confirm("هل ترشحني ")) { vote();
} else cancel()
// --></SCRIPT>
</BODY>
القائد البحريني
13-06-2002, 07:53 PM
سكربت لتحديث الصفحة
<BODY><INPUT style="FONT-WEIGHT: normal; FONT-SIZE: x-small; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #ffffff" onclick=**********:location.reload() type=button value=" تحديث الصفحه" name=lukk>
</BODY>
القائد البحريني
13-06-2002, 07:54 PM
سكربت ترحيب لدخول الصفحة
<BODY>
<SCRIPT language=**********>
//http://www.cpress.cc
name=window.prompt("اهلآ ادخل إسمك ");
document.write("<H1 align=center>اهلا بك يا "+name+"</H1>")
//-->
</SCRIPT>
</BODY>
القائد البحريني
13-06-2002, 07:56 PM
سكربت لجدول مضيء
<BODY>
<SCRIPT language=**********1.2>
<!--
function flashit(){
if (!document.all)
return
if (myexample.style.borderColor=="blue")
myexample.style.borderColor="red"
else
myexample.style.borderColor="blue"
}
setInterval("flashit()", 500)
//-->
</SCRIPT>
</BODY>
القائد البحريني
13-06-2002, 07:57 PM
سكربت لتحديد حجم الشاشة
<BODY>
<SCRIPT language=**********>
document.write(screen.width + " x " + screen.height)
</SCRIPT>
</BODY>
القائد البحريني
13-06-2002, 07:59 PM
سكربت لخلفية ثلجية
<BODY>
<SCRIPT language=**********1.2>
<!-- Begin
var no = 25; // snow number
var speed = 10; // smaller number moves the snow faster
var snowflake = "bb036.gif";
var ns4up = (document.layers) ? 1 : 0; // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ns4up) { // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
}
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
}
}
}
function snowNS() { // Netscape main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { // IE main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</SCRIPT>
</BODY>
القائد البحريني
13-06-2002, 08:00 PM
سكربت لتغير الخلفية
<HEAD>
<SCRIPT language=**********>
<!--
// Delux Color Fading Script v1.0
//
// email: cpress@cpress.cc
//
//
// Please report bugs to cpress@cpress.cc
//
// Setupinformations:
//
// Copy and past the script in the header of your HTML document
// and change the changeable variables below.
// It's importent that you add
//
// onLoad="**********:fadestart();"
//
// to the BODY tag of your HTML document like on the BODY tag below.
// Unless the script won't start.
//
// to allow the user to stop and restart the color fading just insert
// the following HTML code somewhere in the body of your document
//
// <A href="**********:fadestop();">Stop color fading</A>
//
// <A href="**********:faderestart();">Restart color fading</A>
//
// that may be useful when using infinite loop because the script needs
// a lot of resources and may slow down the computer
// Changeable variables:
var loop = 1; //0 = one time, 1 = infinite
var step = 8; //sets the step for de- or increasing the color value which actually changes the speed
var startcolor = new Array(255,128,0); //start color as a RGB value (0-255)
var middlecolor = new Array(255,255,0); //middle color as a RGB value (0-255)
var endcolor = new Array(255,128,0); //end color as a RGB value (0-255)
// equate the middle with end values if you do not want to use a middle color
// if you use infinite loops start and end color should be the same values
// DO NOT CHANGE ANYTHING BELOW HERE !!!!
// (Unless you know what you do)
var stopped = 0;
var factor = new Array(1,1,1);
var firstfactor = new Array(1,1,1);
var secondfactor = new Array(1,1,1);
var color = new Array(startcolor[0],startcolor[1],startcolor[2]);
var nextcolor = new Array(middlecolor[0],middlecolor[1],middlecolor[2]);
var hex = new Array;
var letters = new Array('0','1','2','3','4','5','6','7','8','9','A', 'B','C','D','E','F');
function fadestart() {
for (i=0 ; i <=2 ; i++) {
if (middlecolor[i] > startcolor[i]) {
firstfactor[i] = -1;
}
if (middlecolor[i] == startcolor[i]) {
firstfactor[i] = 0;
}
if (endcolor[i] > middlecolor[i]) {
secondfactor[i] = -1;
}
if (endcolor[i] == middlecolor[i]) {
secondfactor[i] = 0;
}
factor[i] = firstfactor[i];
}
fadeing = setTimeout('fade()',1);
}
function fadestop(){
stopped = 1;
clearTimeout(fadeing)
}
function faderestart(){
if (stopped == 1){
fadeing = setTimeout('fade()',1);
}
}
function fade() {
for (i=0 ; i<=2 ; i++) {
firstletter = Math.floor(eval(color[i] / 16));
secondletter = eval(color[i] -(firstletter * 16));
hex[i] = letters[firstletter]+letters[secondletter];
color[i] = color[i] - (factor[i] * step);
if (((color[i]*factor[i])-(nextcolor[i]*factor[i])) <= 0) {
factor[i] = 0;
color[i] = nextcolor[i];
}
}
document.bgColor = '#'+hex[0]+hex[1]+hex[2];
if (((Math.abs(factor[0]) + Math.abs(factor[1]) + Math.abs(factor[2])) == 0)&&((color[1] != endcolor[1])||(color[2] != endcolor[2])||(color[0] != endcolor[0]))){
for (i=0 ; i<=2 ; i++) {
nextcolor[i]=endcolor[i];
factor[i]=secondfactor[i];
}
}
if ( (Math.abs(factor[0]) + Math.abs(factor[1]) + Math.abs(factor[2])) != 0 ){
fadeing = setTimeout('fade()',1);
}
else {
if (loop == 1){
for (i=0 ; i<=2 ; i++) {
factor[i]=firstfactor[i];
color[i]=startcolor[i];
nextcolor[i]=middlecolor[i];
}
fadeing = setTimeout('fade()',1);
}
}
}
//-->
</SCRIPT>
</HEAD>
<BODY vLink=#333399 aLink=#ff0000 link=#cc0033 bgColor=#ffffff
onload=fadestart();><!--content start--><!--content stop--></BODY>
القائد البحريني
13-06-2002, 08:02 PM
سكربت لفتح نافذة كاملة
<HEAD>
<SCRIPT>
<!--
function fullwin(){
window.open("http://www.cpress.cc","","fullscreen,scrollbars")
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<p align="center"><INPUT onclick=fullwin() type=button value="Fullscreen window"> </FORM>
<P align="center"><FONT face=Arial size=1>للخروج " F4 + Alt "
إستخدم زر</FONT></P><!-- Simba says Roar. --></BODY>
القائد البحريني
13-06-2002, 08:03 PM
سكربت للإضافة الى المفضلة
<BODY bgProperties=fixed background="">
<P><FONT face=Arial color=#ffffff>alsayed home page
<SCRIPT language=**********>
var txt = "إضافة الى المفضلة";
var url = "http://www.cpress.cc";
var who = "cpress.cc FREE JAVA";
var ver = navigator.appName;
var num = parseInt(navigator.appVersion);
if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
document.write('<A HREF="**********:window.external.AddFavorite(url,who);" ');
document.write('onMouseOver=" window.status=');
document.write("txt; return true ");
document.write('"onMouseOut=" window.status=');
document.write("' '; return true ");
document.write('">'+ txt + '</a>');
}else{
txt += " (Ctrl+D)";
document.write(txt);
}
</SCRIPT>
Mr.something
13-06-2002, 08:27 PM
شكرا أخي
kaled
14-06-2002, 02:28 AM
السلام عليكم
مرحبا بالشباب الحلوين هذا موقع اكيد يبي يعجبكم فيه كثير من السكربتات الجميله ارجو ان تنال اعجابكم وسامحونا على التقصير
خاص بالسكربتات (http://www.btinternet.com/~kurt.grigg/**********/)