Не сте регистриран! Регистрирайте се БЕЗПЛАТНО, за да използвате услугите на сайта!

 Завеса за вашият сайт
Автор  Icicle (17.03.2005 17:21) съобщение до автора
Погледнат  980 пъти добави към любими
Оценка добави коментар
Гласове  2 изпрати на приятел
Коментари  (0) абонирай се за JavaScript
     
Icicle
     
 

Това е скрипт,с който когато Вашите посетители влязат в сайта ще бъдат посрещнати от две завеси,които се отварят.Много ефектно се получава и е перфектен за лични сайтчета.Ето кода:
CODE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<html>
<
head>
<
style>
<!--
.
intro{
position:absolute;
left:0;
top:0;
layer-background-color:red;
background-color:red;
border:0.1px solid red;
z-index:9;
}
-->
</
style>
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</
head>

<
body bgcolor="#FFFFFF" text="#000000">
<
div id="i1" class="intro"></div><div id="i2" class="intro"></div>
<
script language="JavaScript1.2">

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

var speed=20
var temp=new Array()
var temp2=new Array()
if (ns4){
for (i=1;i<=2;i++){
temp[i]=eval("document.i"+i+".clip")
temp2[i]=eval("document.i"+i)
temp[i].width=window.innerWidth/2
temp[i].height=window.innerHeight
temp2
[i].left=(i-1)*temp[i].width
}
}
else if (ie4||ns6){
var clipright=ns6?window.innerWidth/2*0.98:document.body.clientWidth/2,clipleft=0
for (i=1;i<=2;i++){
temp[i]=ns6?document.getElementById("i"+i).style:eval("document.all.i"+i+".style")
temp[i].width=ns6?window.innerWidth/2*0.98:document.body.clientWidth/2
temp[i].height=ns6?window.innerHeight-1: document.body.offsetHeight
temp
[i].left=(i-1)*parseInt(temp[i].width)
}
}


function openit(){
window.scrollTo(0,0)
if (ns4){
temp[1].right-=speed
temp
[2].left+=speed
if (temp[2].left>window.innerWidth/2)
clearInterval(stopit)
}
else if (ie4||ns6){
clipright-=speed
temp
[1].clip="rect(0 "+clipright+" auto 0)"
clipleft+=speed
temp
[2].clip="rect(0 auto auto "+clipleft+")"
if (clipright<=0){
clearInterval(stopit)
if (ns6){
temp[1].display="none"
temp[2].display="none"
}
}
}
}

function gogo(){
stopit=setInterval("openit()",100)
}
gogo()

</
script>

</
body>
</
html>



Ключови думи: java script sript скрипт посетител ефект завеса сайт отваряне




 За автора: Icicle  
http://iciclenet.deviantart.com/
   
 1 посетител чете този скрипт (0 потребители и 1 гост)  
Активни потребители: ---
   
  

Еmail  
 

 

 
  • Интересно от Софтуер
 
  • Интересно от myLINKS
 
 
 
 



IT-PLACE.NET © 2004 - 2008