PHPXRef 0.7 : NEABExplorer : /libs/help_ballon.js source
[ Index ]
PHP Cross Reference of NEABExplorer
if (gwGetCookie('xrefnav')=='off')
document.write('[ Show Explorer ]');
else
document.write('[ Hide Explorer ]');
[ Show Explorer ]
[ Hide Navbar ]
titleBody[close]
/libs/ -> help_ballon.js (source)
[Summary view]
[Print]
[Text view]
1 var oldmousemove;
2 var mainmousemove;
3 var menu=null;
4
5 function help_move(e)
6 {
7 if(document.getElementById != null)
8 {
9 myhelp=document.getElementById("help1");
10 imyhelp=document.getElementById("ihelp1");
11 }
12 else
13 {
14 myhelp= eval("document.help1");
15 imyhelp= eval("document.ihelp1");
16 }
17
18 if (!e) var e = window.event;
19 if(e.pageX != null)
20 {
21 mx=e.pageX-75;
22 my=e.pageY+20;
23 }
24 else
25 {
26 mx=e.x-75;
27 my=e.y+20;
28 }
29 if (navigator.userAgent.indexOf('MSIE') != -1)
30 {
31 mx += document.body.scrollLeft;
32 my += document.body.scrollTop;
33 }
34 if(mx < 0)
35 mx=0;
36
37 if(mx+160 >= document.body.clientWidth)
38 mx=document.body.clientWidth-160;
39
40 if(myhelp.style != null)
41 {
42 myhelp.style.top=my;
43 myhelp.style.left=mx;
44 imyhelp.style.top=my;
45 imyhelp.style.left=mx;
46 //myhelp.style.visibility="visible";
47 }
48 else
49 {
50 myhelp.top=my;
51 myhelp.left=mx;
52 imyhelp.top=my;
53 imyhelp.left=mx;
54 //myhelp.visibility="visible";
55 }
56 }
57
58 function show_help_box(e,msg)
59 {
60 if(document.getElementById != null)
61 {
62 myhelp=document.getElementById("help1");
63 imyhelp=document.getElementById("ihelp1");
64 }
65 else
66 {
67 myhelp= eval("document.help1");
68 imyhelp= eval("document.ihelp1");
69 }
70
71 if(e.pageX != null)
72 {
73 mx=e.pageX-75;
74 my=e.pageY+20;
75 }
76 else
77 {
78 mx=e.x-75;
79 my=e.y+20;
80 }
81 if (navigator.userAgent.indexOf('MSIE') != -1)
82 {
83 mx += document.body.scrollLeft;
84 my += document.body.scrollTop;
85 }
86 if(mx < 0)
87 mx=0;
88
89 if(mx+160 >= document.body.clientWidth)
90 mx=document.body.clientWidth-160;
91
92 if(document.width != null && document.width > 200 && (mx+200) > document.width)
93 mx=document.width-200;
94 else if(window.top.document.body != null && window.top.document.body.clientWidth > 200 && (mx+200) > window.top.document.body.clientWidth)
95 mx=window.top.document.body.clientWidth-200;
96
97 if(myhelp.innerHTML != null)
98 myhelp.innerHTML=msg;
99 else
100 {
101 myhelp.document.write(msg);
102 myhelp.document.close();
103 }
104 imyhelp.style.height = myhelp.offsetHeight;
105
106 if(myhelp.style != null)
107 {
108 myhelp.style.top=my;
109 myhelp.style.left=mx;
110 myhelp.style.visibility="visible";
111 imyhelp.style.top=my;
112 imyhelp.style.left=mx;
113 imyhelp.style.visibility="visible";
114 }
115 else
116 {
117 myhelp.top=my;
118 myhelp.left=mx;
119 myhelp.visibility="visible";
120 imyhelp.top=my;
121 imyhelp.left=mx;
122 imyhelp.visibility="visible";
123 }
124 if(document.onmousemove != help_move)
125 {
126 oldmousemove=document.onmousemove;
127 document.onmousemove=help_move;
128 }
129 }
130 function hide_help_box()
131 {
132 if(document.getElementById != null)
133 {
134 myhelp=document.getElementById("help1");
135 imyhelp=document.getElementById("ihelp1");
136 }
137 else
138 {
139 myhelp= eval("document.help1");
140 imyhelp= eval("document.ihelp1");
141 }
142
143 if(myhelp.style != null)
144 {
145 myhelp.style.top=0;
146 myhelp.style.left=0;
147 imyhelp.style.left=-200;
148 myhelp.style.visibility="hidden";
149 imyhelp.style.visibility="hidden";
150 }
151 else
152 {
153 myhelp.top=0;
154 myhelp.left=0;
155 imyhelp.left=-200;
156 myhelp.visibility="hidden";
157 imyhelp.visibility="hidden";
158 }
159 document.onmousemove=oldmousemove;
160 }
161
162 function check_inmenu(e)
163 {
164 if (!e) var e = window.event;
165 if(e.pageX != null)
166 {
167 mx=e.pageX;
168 my=e.pageY;
169 }
170 else
171 {
172 mx=e.x;
173 my=e.y;
174 }
175
176 if(mx > 180 || my < (menu.offsetTop-30) || my > (menu.offsetTop+menu.offsetHeight))
177 {
178 document.onmousemove=mainmousemove;
179 menu.style.visibility="hidden";
180 menu=null;
181 }
182 }
183
184 function expand(menu_name)
185 {
186 if(menu != null)
187 menu.style.visibility="hidden";
188 else
189 mainmousemove=document.onmousemove;
190 menu=document.getElementById(menu_name);
191 menu.style.visibility="visible";
192 document.onmousemove=check_inmenu;
193 }
194
195 function select_tab(tab)
196 {
197 if(tab == 1)
198 {
199 document.IMG_TAB1.src='images/stats_brick_top_on.gif';
200 document.IMG_TAB2.src='images/qinvent_brick_top_off.gif';
201 document.getElementById("TAB1").style.visibility="visible";
202 document.getElementById("TAB2").style.visibility="hidden";
203
204 document.cookie="tab=1";
205 }
206 else
207 {
208 document.IMG_TAB1.src='images/stats_brick_top_off.gif';
209 document.IMG_TAB2.src='images/qinvent_brick_top_on.gif';
210 document.getElementById("TAB1").style.visibility="hidden";
211 document.getElementById("TAB2").style.visibility="visible";
212
213 document.cookie="tab=2";
214 }
215 }
FUNC_DATA={
'select_tab': ['select_tab', '', [['libs','help_ballon.js',195]], 2],
'show_help_box': ['show_help_box', '', [['libs','help_ballon.js',58]], 22],
'hide_help_box': ['hide_help_box', '', [['libs','help_ballon.js',130]], 31],
'check_inmenu': ['check_inmenu', '', [['libs','help_ballon.js',162]], 0],
'close': ['close', '', [['libs','db_conn_5.php',35],['libs','db_conn_5.php',87],['libs','db_conn_4.php',35],['libs','db_conn_4.php',87]], 380],
'help_move': ['help_move', '', [['libs','help_ballon.js',5]], 0],
'expand': ['expand', '', [['libs','help_ballon.js',184]], 0]};
CLASS_DATA={
};
CONST_DATA={
};
titleDescriptionBody
titleDescriptionBody
titleDescriptionBody
titleBody
Generated: Sun Jul 8 18:11:25 2007
Cross-referenced by PHPXref 0.7
Wyszukiwarka
Podobne podstrony:
help?llon js sourcemap script js sourcemap script js sourcesource30Util jsMatrix3?pp sourceThread?pp sourcearm biquad ?scade ?1 ?st q31? sourcearm conv ?2? sourcearm mat mult q15? sourceResource 8inl sourcejs zegarek na wwwarm fir lattice init q31? sourcearm fir ?cimate ?st q15? sourceAnimation jssource11arm correlate ?st q15? sourcewięcej podobnych podstron