العودة   منتدى بريدة > المنتديات التقنية > منتدى الكمبيوتر و الجوال والبرامج والصيانة

الملاحظات

 
 
 
أدوات الموضوع انواع عرض الموضوع
 
قديم 27-05-05, 02:14 am   رقم المشاركة : 1
LoVeR HaCkEr
عضو قدير
 
الصورة الرمزية LoVeR HaCkEr






معلومات إضافية
  النقاط : 10
  المستوى :
  الحالة : LoVeR HaCkEr غير متواجد حالياً
Exclamation سكربتات جافا تستخدم في تصميم المواقع ؟!؟!؟


[align=center]سكربت لصورة تسبح في المتصفح



ضع الكود التالي في قسم ال

كود:
<BODY>
<SCRIPT language="JavaScript1.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>




سكربت للتحكم بسحب الشكل الى اي مكان بالمتصفح

كود:
<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="JavaScript">

self.onError=null;

currentX = currentY = 0; 
whichIt = null; 
lastScrollX = 0; lastScrollY = 0;

NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 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>



سكربت لمتصفح يسبح في الشاشة



كود:
<BODY>
<SCRIPT LANGUAGE="JavaScript">
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>



سكربت لفتح الهارد دسك




كود:
<BODY>

<P ALIGN="center"><INPUT TYPE="submit" VALUE="فتح الهارد دسك"></FORM>

</BODY>
[/align]






التوقيع

[align=center]يظل الرجل طفلاً , حتى تموت أمه , فإذا ماتت ، شاخ فجأة
***
لا تتحدى إنساناً ليس لديه ما يخسره
***
إذا ازداد حبنا , تضاعف خوفنا من الإساءة إلى من نحب

***
لا تطعن في ذوق زوجتك , فقد اختارتك أولا
[/align]

 
مواقع النشر
يتصفح الموضوع حالياً : 1 (0 عضو و 1 ضيف)
 
ضوابط المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع
:: برعاية حياة هوست ::
sitemap
الساعة الآن 03:27 am.


Powered by vBulletin® Version 3.8.8 Alpha 1
Copyright ©2000 - 2025, vBulletin Solutions, Inc. Trans by
موقع بريدة

المشاركات المنشورة لاتمثل رأي إدارة المنتدى ولايتحمل المنتدى أي مسؤلية حيالها

 

كلمات البحث : منتدى بريدة | بريده | بريدة | موقع بريدة