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

 Up message
Автор  eminem (01.04.2005 23:06) съобщение до автора
Погледнат  1444 пъти добави към любими
Оценка добави коментар
Гласове  1 изпрати на приятел
Коментари  (0) абонирай се за JavaScript
     
eminem
     
 

Малко прозорче с текст, който винаги е от горе на страницата.
можете да я предвижвате из страницата и да я минимизирате.Ето ви кода:

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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<html>
<
head>
<!--
[if IE]>

<!--
-->

<
style>
<!--
.
drag{position:relative;cursor:hand
}
#scontentmain{
position:absolute;
width:150px;
}
#scontentbar{
cursor:hand;
position:absolute;
background-color:red;
height:15;
width:100%;
top:0;
}
#scontentsub{
position:absolute;
width:100%;
top:15;
background-color:lightgreen;
border:2px solid orange;
padding:1.5px;
}
-->
</
style>

<
script language="JavaScript1.2">
<!--

var dragapproved=false
var
zcor,xcor,ycor
function movescontentmain(){
if (event.button==1&&dragapproved){
zcor.style.pixelLeft=tempvar1+event.clientX-xcor
zcor
.style.pixelTop=tempvar2+event.clientY-ycor
leftpos=document.all.scontentmain.style.pixelLeft-document.body.scrollLeft
toppos
=document.all.scontentmain.style.pixelTop-document.body.scrollTop
return false
}
}
function dragscontentmain(){
if (!document.all)
return
if
(event.srcElement.id=="scontentbar"){
dragapproved=true
zcor=scontentmain
tempvar1
=zcor.style.pixelLeft
tempvar2
=zcor.style.pixelTop
xcor=event.clientX
ycor=event.clientY
document.onmousemove=movescontentmain
}
}
document.onmousedown=dragscontentmain
document.onmouseup=new Function("dragapproved=false")
//-->
</
script>

<!
[endif]-->
</
head>
<
body>
<!--
[if IE]>
<
div id="scontentmain">
<
div id="scontentbar" >
<
img align="right" src="close.gif" onClick="onoffdisplay()">
</
div>
<
div id="scontentsub">


<
p align="center"><br>
Здравейте всички
<
br>
<
font face="Arial"><small><small>Не е ли супер ????
малко прозорче ,което стои най-отгоре на вашата страница. Можете да пишете каквото си  искате и колкото си искате.
Можете да слагата и дори линкове.Като например <
a href="http://hitscripts.hit.bg">http://dimigroup.hit.bg</a> идр. Може и да го за
творите
(не изцяло) от горния десен ъгъл, ида го движите из цялата страница</small></small></font></p>

</
div>
</
div>
</
div>

<
script language="JavaScript1.2">

var w=document.body.clientWidth-199
var h=50


////
Do not edit pass this line///////////
w+=document.body.scrollLeft
h
+=document.body.scrollTop

var leftpos
=w
var toppos
=h
scontentmain
.style.left=w
scontentmain
.style.top=h

function onoffdisplay
(){
if (scontentsub.style.display=='')
scontentsub.style.display='none'
else
scontentsub.style.display=''
}

function staticize(){
w2=document.body.scrollLeft+leftpos
h2
=document.body.scrollTop+toppos
scontentmain
.style.left=w2
scontentmain
.style.top=h2
}
window.onscroll=staticize

</
script>
<!
[endif]-->
</
body>
</
html>



Ключови думи: javascript прозорче страница up message




 1 посетител чете този скрипт (0 потребители и 1 гост)  
Активни потребители: ---
   
  

Еmail  
 

 

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



IT-PLACE.NET © 2004 - 2008