1 شاشة حمراء تصغر بالتدريج عند الدخول الى الصفحة الثلاثاء سبتمبر 16, 2008 7:43 pm
Abody Alyazedi
المـديـر العـــام
شاشة حمراء تصغر بالتدريج عند الدخول الى الصفحة
يمكن تغيير اللون الأحمر اذا أردت
طريقة التركيب
1- انسخ هذا الكود و ضعه في منطقة HEAD
يمكن تغيير اللون الأحمر اذا أردت
طريقة التركيب
1- انسخ هذا الكود و ضعه في منطقة HEAD
- الكود:
<style>
<!--
.intro{
position:absolute;
left:0;
top:0;
layer-background-color:white;
background-color:red;
border:0.1px solid white
}
-->
</style>
2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY
- الكود:
<div id="i1" class="intro"></div>
<script language="Javascript1.2">
/*
Boxing In script-
© Dynamic Drive ([url=http://www.dynamicdrive.com]www.dynamicdrive.com[/url])
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of Use, dynamicdrive.com
* Visit our site at [url=http://www.star28.com/]http://www.star28.com/[/url] for more code
*/
//change speed here
var speed=5
if (document.layers){
var reference=window.innerWidth/window.innerHeight
var temp=eval("document.i1.clip")
temp.left=temp.top=0
temp.right=window.innerWidth
temp.bottom=window.innerHeight
}
else if (document.all){
var reference=document.body.clientWidth/document.body.clientHeight
var rightclip,leftclip,topclip,bottomclip
var temp=document.all.i1.style
topclip=leftclip=0
rightclip=temp.width=document.body.clientWidth
bottomclip=temp.height=document.body.clientHeight
}
function doit(){
window.scrollTo(0,0)
if (document.layers){
if (temp.left>window.innerWidth/2)
clearInterval(stopit)
temp.left+=reference*speed
temp.top+=speed
temp.right-=reference*speed
temp.bottom-=speed
}
else if (document.all){
if (leftclip>document.body.clientWidth/2)
clearInterval(stopit)
temp.clip="rect( "+topclip+" "+rightclip+" "+bottomclip+" "+leftclip+")"
leftclip+=reference*speed
topclip+=speed
rightclip-=reference*speed
bottomclip-=speed
}
}
stopit=setInterval("doit()",100)
</script>