No regular expressions were active.
1 |
|
|
|
1 |
|
|
2 |
|
|
|
2 |
|
|
3 |
|
// site_ur
l = 'zzz.c
om';
|
|
3 |
|
// site_ur
l = 'zzz.c
om';
|
4 |
|
|
|
4 |
|
|
5 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
5 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
6 |
|
// Profile
_poll func
tions ====
==========
==========
==========
==========
==========
|
|
6 |
|
// Profile
_poll func
tions ====
==========
==========
==========
==========
==========
|
7 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
7 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
8 |
|
|
|
8 |
|
|
9 |
|
function a
dd_questio
n_bar( ite
m, num, fo
cus )
|
|
9 |
|
function a
dd_questio
n_bar( ite
m, num, fo
cus )
|
10 |
|
{
|
|
10 |
|
{
|
11 |
|
var nu
m = docume
nt.getElem
entById( n
um );
|
|
11 |
|
var nu
m = docume
nt.getElem
entById( n
um );
|
12 |
|
var it
em = docum
ent.getEle
mentById(
item );
|
|
12 |
|
var it
em = docum
ent.getEle
mentById(
item );
|
13 |
|
|
|
13 |
|
|
14 |
|
var ne
wdiv = doc
ument.crea
teElement(
"div" );
|
|
14 |
|
var ne
wdiv = doc
ument.crea
teElement(
"div" );
|
15 |
|
newdiv
.id = "d"
+ num.valu
e;
|
|
15 |
|
newdiv
.id = "d"
+ num.valu
e;
|
16 |
|
|
|
16 |
|
|
17 |
|
var ne
winput = c
reateNamed
Element( "
input", "v
" + num.va
lue );
|
|
17 |
|
var ne
winput = c
reateNamed
Element( "
input", "v
" + num.va
lue );
|
18 |
|
newinp
ut.type =
"text";
|
|
18 |
|
newinp
ut.type =
"text";
|
19 |
|
newinp
ut.id = "v
" + num.va
lue;
|
|
19 |
|
newinp
ut.id = "v
" + num.va
lue;
|
20 |
|
|
|
20 |
|
|
21 |
|
var ne
wtext = do
cument.cre
ateTextNod
e( lang_de
lete );
|
|
21 |
|
var ne
wtext = do
cument.cre
ateTextNod
e( lang_de
lete );
|
22 |
|
|
|
22 |
|
|
23 |
|
var ne
wlink = do
cument.cre
ateElement
( "a" );
|
|
23 |
|
var ne
wlink = do
cument.cre
ateElement
( "a" );
|
24 |
|
newlin
k.href="#"
;
|
|
24 |
|
newlin
k.href="#"
;
|
25 |
|
newlin
k.onclick
= function
() { del_q
uestion_ba
r( item, n
ewdiv ); r
eturn fals
e; }
|
|
25 |
|
newlin
k.onclick
= function
() { del_q
uestion_ba
r( item, n
ewdiv ); r
eturn fals
e; }
|
26 |
|
newlin
k.style.ma
rginLeft =
'4px';
|
|
26 |
|
newlin
k.style.ma
rginLeft =
'4px';
|
27 |
|
newlin
k.appendCh
ild( newte
xt );
|
|
27 |
|
newlin
k.appendCh
ild( newte
xt );
|
28 |
|
|
|
28 |
|
|
29 |
|
//var
newbr = do
cument.cre
ateElement
( "br" );
|
|
29 |
|
//var
newbr = do
cument.cre
ateElement
( "br" );
|
30 |
|
|
|
30 |
|
|
31 |
|
num.va
lue++;
|
|
31 |
|
num.va
lue++;
|
32 |
|
|
|
32 |
|
|
33 |
|
//item
.appendChi
ld( newbr
);
|
|
33 |
|
//item
.appendChi
ld( newbr
);
|
34 |
|
newdiv
.appendChi
ld( newinp
ut );
|
|
34 |
|
newdiv
.appendChi
ld( newinp
ut );
|
35 |
|
newdiv
.appendChi
ld( newlin
k );
|
|
35 |
|
newdiv
.appendChi
ld( newlin
k );
|
36 |
|
|
|
36 |
|
|
37 |
|
item.a
ppendChild
( newdiv )
;
|
|
37 |
|
item.a
ppendChild
( newdiv )
;
|
38 |
|
|
|
38 |
|
|
39 |
|
if ( f
ocus ) new
input.focu
s();
|
|
39 |
|
if ( f
ocus ) new
input.focu
s();
|
40 |
|
}
|
|
40 |
|
}
|
41 |
|
|
|
41 |
|
|
42 |
|
function d
el_questio
n_bar( par
ent, child
)
|
|
42 |
|
function d
el_questio
n_bar( par
ent, child
)
|
43 |
|
{
|
|
43 |
|
{
|
44 |
|
parent
.removeChi
ld( child
);
|
|
44 |
|
parent
.removeChi
ld( child
);
|
45 |
|
//docu
ment.getEl
ementById(
parent ).
removeChil
d( child )
;
|
|
45 |
|
//docu
ment.getEl
ementById(
parent ).
removeChil
d( child )
;
|
46 |
|
}
|
|
46 |
|
}
|
47 |
|
|
|
47 |
|
|
48 |
|
function
poll_statu
s_show(
id,
item,
status,
status_cha
nge_to
)
|
|
48 |
|
function
poll_statu
s_show(
id,
item,
status,
status_cha
nge_to
,
cur_status
_lbl,
status_cha
nge_to_lbl
)
|
49 |
|
{
|
|
49 |
|
{
|
50 |
|
var co
nt = docum
ent.getEle
mentById(
item );
|
|
50 |
|
var co
nt = docum
ent.getEle
mentById(
item );
|
51 |
|
cont.i
nnerHTML =
'';
|
|
51 |
|
cont.i
nnerHTML =
'';
|
52 |
|
|
|
52 |
|
|
53 |
|
var
newtext
=
document.c
reateTextN
ode(
status
);
|
|
53 |
|
var
newtext
=
document.c
reateTextN
ode(
cur_
status
_lbl
);
|
54 |
|
cont.a
ppendChild
( newtext
);
|
|
54 |
|
cont.a
ppendChild
( newtext
);
|
55 |
|
|
|
55 |
|
|
56 |
|
newtex
t = docume
nt.createT
extNode( '
/ ' );
|
|
56 |
|
newtex
t = docume
nt.createT
extNode( '
/ ' );
|
57 |
|
cont.a
ppendChild
( newtext
);
|
|
57 |
|
cont.a
ppendChild
( newtext
);
|
58 |
|
|
|
58 |
|
|
59 |
|
newtext
=
document.c
reateTextN
ode(
status_cha
nge_to
);
|
|
59 |
|
newtext
=
document.c
reateTextN
ode(
status_cha
nge_to
_lbl
);
|
60 |
|
var ne
wlink = do
cument.cre
ateElement
( "a" );
|
|
60 |
|
var ne
wlink = do
cument.cre
ateElement
( "a" );
|
61 |
|
newlin
k.href="#"
;
|
|
61 |
|
newlin
k.href="#"
;
|
62 |
|
newlink.
o
nc
l
ick
=
function()
{
send
_
data(
'',
'
status
'
,
'¶
m
='
+
status_cha
nge_to,
id
);
poll_
status
_show(
id,
item
,
status_cha
nge_to
,
status
);
return
fa
l
se
;
}
|
|
62 |
|
newlin
k.onclick
= function
() {
|
|
|
63 |
|
se
nd_data( '
', 'status
', '¶m
=' + statu
s_change_t
o, id );
|
|
|
64 |
|
p
o
l
l
_
status
_show(
id
,
ite
m
,
status_cha
nge_to,
status
,
status_cha
nge_to
_lbl
,
cur_
status
_
l
bl
)
;
|
|
|
65 |
|
re
turn false
;
|
|
|
66 |
|
}
|
63 |
|
newlin
k.appendCh
ild( newte
xt );
|
|
67 |
|
newlin
k.appendCh
ild( newte
xt );
|
64 |
|
cont.a
ppendChild
( newlink
);
|
|
68 |
|
cont.a
ppendChild
( newlink
);
|
65 |
|
|
|
69 |
|
|
66 |
|
newtex
t = docume
nt.createT
extNode( '
/ ' );
|
|
70 |
|
newtex
t = docume
nt.createT
extNode( '
/ ' );
|
67 |
|
cont.a
ppendChild
( newtext
);
|
|
71 |
|
cont.a
ppendChild
( newtext
);
|
68 |
|
}
|
|
72 |
|
}
|
69 |
|
|
|
73 |
|
|
70 |
|
function c
reateNamed
Element( t
ype, name
)
|
|
74 |
|
function c
reateNamed
Element( t
ype, name
)
|
71 |
|
{
|
|
75 |
|
{
|
72 |
|
var el
ement;
|
|
76 |
|
var el
ement;
|
73 |
|
|
|
77 |
|
|
74 |
|
try
|
|
78 |
|
try
|
75 |
|
{
|
|
79 |
|
{
|
76 |
|
el
ement = do
cument.cre
ateElement
('<'+type+
' name="'+
name+'">')
;
|
|
80 |
|
el
ement = do
cument.cre
ateElement
('<'+type+
' name="'+
name+'">')
;
|
77 |
|
}
|
|
81 |
|
}
|
78 |
|
catch
(e) { }
|
|
82 |
|
catch
(e) { }
|
79 |
|
|
|
83 |
|
|
80 |
|
if (!e
lement ||
!element.n
ame) // Co
ol, this i
s not IE !
!
|
|
84 |
|
if (!e
lement ||
!element.n
ame) // Co
ol, this i
s not IE !
!
|
81 |
|
{
|
|
85 |
|
{
|
82 |
|
el
ement = do
cument.cre
ateElement
(type)
|
|
86 |
|
el
ement = do
cument.cre
ateElement
(type)
|
83 |
|
el
ement.name
= name;
|
|
87 |
|
el
ement.name
= name;
|
84 |
|
}
|
|
88 |
|
}
|
85 |
|
|
|
89 |
|
|
86 |
|
return
element;
|
|
90 |
|
return
element;
|
87 |
|
}
|
|
91 |
|
}
|
88 |
|
|
|
92 |
|
|
89 |
|
|
|
93 |
|
|
90 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
94 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
91 |
|
// End of
Profile_po
ll functio
ns =======
==========
==========
==========
==========
|
|
95 |
|
// End of
Profile_po
ll functio
ns =======
==========
==========
==========
==========
|
92 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
96 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
93 |
|
|
|
97 |
|
|
94 |
|
|
|
98 |
|
|
95 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
99 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
96 |
|
// Server
interact p
art ======
==========
==========
==========
==========
==========
|
|
100 |
|
// Server
interact p
art ======
==========
==========
==========
==========
==========
|
97 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
101 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
98 |
|
|
|
102 |
|
|
99 |
|
function s
end_data(
container,
action, p
aram, id )
|
|
103 |
|
function s
end_data(
container,
action, p
aram, id )
|
100 |
|
{
|
|
104 |
|
{
|
101 |
|
//prom
pt( 'a','c
ontainer='
+container
+'; action
='+action+
'; param='
+param+';
id='+id )
|
|
105 |
|
//prom
pt( 'a','c
ontainer='
+container
+'; action
='+action+
'; param='
+param+';
id='+id )
|
102 |
|
var ID
= id;
|
|
106 |
|
var ID
= id;
|
103 |
|
|
|
107 |
|
|
104 |
|
if ( c
ontainer )
|
|
108 |
|
if ( c
ontainer )
|
105 |
|
{
|
|
109 |
|
{
|
106 |
|
va
r containe
r = docume
nt.getElem
entById( c
ontainer )
;
|
|
110 |
|
va
r containe
r = docume
nt.getElem
entById( c
ontainer )
;
|
107 |
|
co
ntainer.in
nerHTML =
lang_loadi
ng;
|
|
111 |
|
co
ntainer.in
nerHTML =
lang_loadi
ng;
|
108 |
|
}
|
|
112 |
|
}
|
109 |
|
|
|
113 |
|
|
110 |
|
var XM
LHttpReque
stObject =
false;
|
|
114 |
|
var XM
LHttpReque
stObject =
false;
|
111 |
|
|
|
115 |
|
|
112 |
|
if ( w
indow.XMLH
ttpRequest
)
|
|
116 |
|
if ( w
indow.XMLH
ttpRequest
)
|
113 |
|
XM
LHttpReque
stObject =
new XMLHt
tpRequest(
);
|
|
117 |
|
XM
LHttpReque
stObject =
new XMLHt
tpRequest(
);
|
114 |
|
else i
f ( window
.ActiveXOb
ject )
|
|
118 |
|
else i
f ( window
.ActiveXOb
ject )
|
115 |
|
XM
LHttpReque
stObject =
new Activ
eXObject("
Microsoft.
XMLHTTP");
|
|
119 |
|
XM
LHttpReque
stObject =
new Activ
eXObject("
Microsoft.
XMLHTTP");
|
116 |
|
|
|
120 |
|
|
117 |
|
if( XM
LHttpReque
stObject )
|
|
121 |
|
if( XM
LHttpReque
stObject )
|
118 |
|
{
|
|
122 |
|
{
|
119 |
|
va
r data_sou
rce = site
_url + 'dp
ol.php?act
ion=' + ac
tion + '&I
D=' + ID +
param;
|
|
123 |
|
va
r data_sou
rce = site
_url + 'dp
ol.php?act
ion=' + ac
tion + '&I
D=' + ID +
param;
|
120 |
|
XM
LHttpReque
stObject.o
pen( "GET"
, data_sou
rce );
|
|
124 |
|
XM
LHttpReque
stObject.o
pen( "GET"
, data_sou
rce );
|
121 |
|
XM
LHttpReque
stObject.o
nreadystat
echange =
function()
|
|
125 |
|
XM
LHttpReque
stObject.o
nreadystat
echange =
function()
|
122 |
|
{
|
|
126 |
|
{
|
123 |
|
if ( XML
HttpReques
tObject.re
adyState =
= 4 && XML
HttpReques
tObject.st
atus == 20
0 )
|
|
127 |
|
if ( XML
HttpReques
tObject.re
adyState =
= 4 && XML
HttpReques
tObject.st
atus == 20
0 )
|
124 |
|
{
|
|
128 |
|
{
|
125 |
|
var
xmlDocumen
t = XMLHtt
pRequestOb
ject.respo
nseXML;
|
|
129 |
|
var
xmlDocumen
t = XMLHtt
pRequestOb
ject.respo
nseXML;
|
126 |
|
|
|
130 |
|
|
127 |
|
if (
'delete'
== action
)
|
|
131 |
|
if (
'delete'
== action
)
|
128 |
|
{
|
|
132 |
|
{
|
129 |
|
alert(lang
_delete_me
ssage);
|
|
133 |
|
alert(lang
_delete_me
ssage);
|
130 |
|
}
|
|
134 |
|
}
|
131 |
|
else
if ( 'vot
e' == acti
on )
|
|
135 |
|
else
if ( 'vot
e' == acti
on )
|
132 |
|
{
|
|
136 |
|
{
|
133 |
|
container.
innerHTML
= '';
|
|
137 |
|
container.
innerHTML
= '';
|
134 |
|
document.g
etElementB
yId('dpol_
actions_'+
ID).innerH
TML = '';
|
|
138 |
|
document.g
etElementB
yId('dpol_
actions_'+
ID).innerH
TML = '';
|
135 |
|
|
|
139 |
|
|
136 |
|
answers_po
ints = xml
Document.g
etElements
ByTagName(
"answer_po
int");
|
|
140 |
|
answers_po
ints = xml
Document.g
etElements
ByTagName(
"answer_po
int");
|
137 |
|
answers_nu
m = xml
Document.g
etElements
ByTagName(
"answer_nu
m");
|
|
141 |
|
answers_nu
m = xml
Document.g
etElements
ByTagName(
"answer_nu
m");
|
138 |
|
answers_na
mes = xml
Document.g
etElements
ByTagName(
"answer_na
me");
|
|
142 |
|
answers_na
mes = xml
Document.g
etElements
ByTagName(
"answer_na
me");
|
139 |
|
|
|
143 |
|
|
140 |
|
list_resul
ts();
|
|
144 |
|
list_resul
ts();
|
141 |
|
}
|
|
145 |
|
}
|
142 |
|
else
if ( 'que
stions' ==
action )
|
|
146 |
|
else
if ( 'que
stions' ==
action )
|
143 |
|
{
|
|
147 |
|
{
|
144 |
|
container.
innerHTML
= '';
|
|
148 |
|
container.
innerHTML
= '';
|
145 |
|
|
|
149 |
|
|
146 |
|
answers =
xmlDocumen
t.getEleme
ntsByTagNa
me("answer
");
|
|
150 |
|
answers =
xmlDocumen
t.getEleme
ntsByTagNa
me("answer
");
|
147 |
|
list_answe
rs();
|
|
151 |
|
list_answe
rs();
|
148 |
|
question =
xmlDocume
nt.getElem
entsByTagN
ame("quest
ion");
|
|
152 |
|
question =
xmlDocume
nt.getElem
entsByTagN
ame("quest
ion");
|
149 |
|
list_quest
ion( "dpol
_caption_"
+ ID );
|
|
153 |
|
list_quest
ion( "dpol
_caption_"
+ ID );
|
150 |
|
}
|
|
154 |
|
}
|
151 |
|
|
|
155 |
|
|
152 |
|
//co
ntainer.in
nerHTML =
XMLHttpReq
uestObject
.responseT
ext;
|
|
156 |
|
//co
ntainer.in
nerHTML =
XMLHttpReq
uestObject
.responseT
ext;
|
153 |
|
dele
te XMLHttp
RequestObj
ect;
|
|
157 |
|
dele
te XMLHttp
RequestObj
ect;
|
154 |
|
XMLH
ttpRequest
Object = n
ull;
|
|
158 |
|
XMLH
ttpRequest
Object = n
ull;
|
155 |
|
}
|
|
159 |
|
}
|
156 |
|
}
|
|
160 |
|
}
|
157 |
|
|
|
161 |
|
|
158 |
|
XM
LHttpReque
stObject.s
end( null
);
|
|
162 |
|
XM
LHttpReque
stObject.s
end( null
);
|
159 |
|
}
|
|
163 |
|
}
|
160 |
|
|
|
164 |
|
|
161 |
|
|
|
165 |
|
|
162 |
|
functi
on scrolle
rs_display
()
|
|
166 |
|
functi
on scrolle
rs_display
()
|
163 |
|
{
|
|
167 |
|
{
|
164 |
|
if
( ( conta
iner.offse
tTop + con
tainer.off
setHeight
) < contai
ner.parent
Node.offse
tHeight )
|
|
168 |
|
if
( ( conta
iner.offse
tTop + con
tainer.off
setHeight
) < contai
ner.parent
Node.offse
tHeight )
|
165 |
|
{
|
|
169 |
|
{
|
166 |
|
document
.getElemen
tById( 'dp
ol_arr_up_
' + ID ).s
tyle.displ
ay='none';
|
|
170 |
|
document
.getElemen
tById( 'dp
ol_arr_up_
' + ID ).s
tyle.displ
ay='none';
|
167 |
|
document
.getElemen
tById( 'dp
ol_arr_dow
n_' + ID )
.style.dis
play='none
';
|
|
171 |
|
document
.getElemen
tById( 'dp
ol_arr_dow
n_' + ID )
.style.dis
play='none
';
|
168 |
|
}
|
|
172 |
|
}
|
169 |
|
el
se
|
|
173 |
|
el
se
|
170 |
|
{
|
|
174 |
|
{
|
171 |
|
document
.getElemen
tById( 'dp
ol_arr_up_
' + ID ).s
tyle.displ
ay='block'
;
|
|
175 |
|
document
.getElemen
tById( 'dp
ol_arr_up_
' + ID ).s
tyle.displ
ay='block'
;
|
172 |
|
document
.getElemen
tById( 'dp
ol_arr_dow
n_' + ID )
.style.dis
play='bloc
k';
|
|
176 |
|
document
.getElemen
tById( 'dp
ol_arr_dow
n_' + ID )
.style.dis
play='bloc
k';
|
173 |
|
}
|
|
177 |
|
}
|
174 |
|
}
|
|
178 |
|
}
|
175 |
|
|
|
179 |
|
|
176 |
|
functi
on list_an
swers()
|
|
180 |
|
functi
on list_an
swers()
|
177 |
|
{
|
|
181 |
|
{
|
178 |
|
va
r loopInde
x;
|
|
182 |
|
va
r loopInde
x;
|
179 |
|
|
|
183 |
|
|
180 |
|
va
r newinput
= documen
t.createEl
ement( "in
put" );
|
|
184 |
|
va
r newinput
= documen
t.createEl
ement( "in
put" );
|
181 |
|
ne
winput.typ
e = "hidde
n";
|
|
185 |
|
ne
winput.typ
e = "hidde
n";
|
182 |
|
ne
winput.id
= "current
_vote_" +
ID;
|
|
186 |
|
ne
winput.id
= "current
_vote_" +
ID;
|
183 |
|
ne
winput.val
ue = '';
|
|
187 |
|
ne
winput.val
ue = '';
|
184 |
|
|
|
188 |
|
|
185 |
|
co
ntainer.ap
pendChild(
newinput
);
|
|
189 |
|
co
ntainer.ap
pendChild(
newinput
);
|
186 |
|
|
|
190 |
|
|
187 |
|
fo
r ( loopIn
dex = 0; l
oopIndex <
answers.l
ength; loo
pIndex++ )
|
|
191 |
|
fo
r ( loopIn
dex = 0; l
oopIndex <
answers.l
ength; loo
pIndex++ )
|
188 |
|
{
|
|
192 |
|
{
|
189 |
|
var newt
ext = docu
ment.creat
eTextNode(
answers[l
oopIndex].
firstChild
.data );
|
|
193 |
|
var newt
ext = docu
ment.creat
eTextNode(
answers[l
oopIndex].
firstChild
.data );
|
190 |
|
|
|
194 |
|
|
191 |
|
var newd
iv = docum
ent.create
Element( "
div" );
|
|
195 |
|
var newd
iv = docum
ent.create
Element( "
div" );
|
192 |
|
//newdiv
.setAttrib
ute("style
", "positi
on:absolut
e;top:0px;
white-spac
e:nowrap;"
);
|
|
196 |
|
//newdiv
.setAttrib
ute("style
", "positi
on:absolut
e;top:0px;
white-spac
e:nowrap;"
);
|
193 |
|
newdiv.s
tyle.posit
ion = "abs
olute";
|
|
197 |
|
newdiv.s
tyle.posit
ion = "abs
olute";
|
194 |
|
newdiv.s
tyle.top =
"0px";
|
|
198 |
|
newdiv.s
tyle.top =
"0px";
|
195 |
|
newdiv.s
tyle.white
Space = "n
owrap";
|
|
199 |
|
newdiv.s
tyle.white
Space = "n
owrap";
|
196 |
|
|
|
200 |
|
|
197 |
|
newdiv.s
etAttribut
e("id", 'q
_' + ID +
'_' + loop
Index );
|
|
201 |
|
newdiv.s
etAttribut
e("id", 'q
_' + ID +
'_' + loop
Index );
|
198 |
|
//newdiv
.setAttrib
ute("onmou
seover", "
javascript
: scroll_s
tart(this,
'horizonta
l');" );
|
|
202 |
|
//newdiv
.setAttrib
ute("onmou
seover", "
javascript
: scroll_s
tart(this,
'horizonta
l');" );
|
199 |
|
//newdiv
.setAttrib
ute("onmou
seout", "j
avascript:
scroll_st
op();" );
|
|
203 |
|
//newdiv
.setAttrib
ute("onmou
seout", "j
avascript:
scroll_st
op();" );
|
200 |
|
newdiv.o
nmouseover
= functio
n(){ scrol
l_start(th
is,'horizo
ntal'); };
|
|
204 |
|
newdiv.o
nmouseover
= functio
n(){ scrol
l_start(th
is,'horizo
ntal'); };
|
201 |
|
newdiv.o
nmouseout
= function
(){ scroll
_stop(); }
;
|
|
205 |
|
newdiv.o
nmouseout
= function
(){ scroll
_stop(); }
;
|
202 |
|
|
|
206 |
|
|
203 |
|
newdiv.a
ppendChild
( newtext
);
|
|
207 |
|
newdiv.a
ppendChild
( newtext
);
|
204 |
|
|
|
208 |
|
|
205 |
|
var newd
iv2 = docu
ment.creat
eElement(
"div" );
|
|
209 |
|
var newd
iv2 = docu
ment.creat
eElement(
"div" );
|
206 |
|
//newdiv
2.setAttri
bute("styl
e", "posit
ion:absolu
te;left:25
px;top:0px
;width:100
%;height:1
00%;overfl
ow:hidden;
border: so
lid 0px #0
00000;" );
|
|
210 |
|
//newdiv
2.setAttri
bute("styl
e", "posit
ion:absolu
te;left:25
px;top:0px
;width:100
%;height:1
00%;overfl
ow:hidden;
border: so
lid 0px #0
00000;" );
|
207 |
|
newdiv2.
style.posi
tion = "ab
solute";
|
|
211 |
|
newdiv2.
style.posi
tion = "ab
solute";
|
208 |
|
newdiv2.
style.left
= "25px";
|
|
212 |
|
newdiv2.
style.left
= "25px";
|
209 |
|
newdiv2.
style.top
= "0px";
|
|
213 |
|
newdiv2.
style.top
= "0px";
|
210 |
|
newdiv2.
style.widt
h = "100%"
;
|
|
214 |
|
newdiv2.
style.widt
h = "100%"
;
|
211 |
|
newdiv2.
style.heig
ht = "100%
";
|
|
215 |
|
newdiv2.
style.heig
ht = "100%
";
|
212 |
|
newdiv2.
style.over
flow = "hi
dden";
|
|
216 |
|
newdiv2.
style.over
flow = "hi
dden";
|
213 |
|
|
|
217 |
|
|
214 |
|
newdiv2.
appendChil
d( newdiv
);
|
|
218 |
|
newdiv2.
appendChil
d( newdiv
);
|
215 |
|
|
|
219 |
|
|
216 |
|
|
|
220 |
|
|
217 |
|
var newd
iv3 = docu
ment.creat
eElement(
"div" );
|
|
221 |
|
var newd
iv3 = docu
ment.creat
eElement(
"div" );
|
218 |
|
//newdiv
3.setAttri
bute("styl
e", "posit
ion:relati
ve;height:
20px;" );
|
|
222 |
|
//newdiv
3.setAttri
bute("styl
e", "posit
ion:relati
ve;height:
20px;" );
|
219 |
|
newdiv3.
style.posi
tion = "re
lative";
|
|
223 |
|
newdiv3.
style.posi
tion = "re
lative";
|
220 |
|
newdiv3.
style.heig
ht = "20px
";
|
|
224 |
|
newdiv3.
style.heig
ht = "20px
";
|
221 |
|
|
|
225 |
|
|
222 |
|
newinput
= createN
amedElemen
t( "input"
, "vote_"
+ ID );
|
|
226 |
|
newinput
= createN
amedElemen
t( "input"
, "vote_"
+ ID );
|
223 |
|
newinput
.type = "r
adio";
|
|
227 |
|
newinput
.type = "r
adio";
|
224 |
|
//newinp
ut.name =
"vote";
|
|
228 |
|
//newinp
ut.name =
"vote";
|
225 |
|
newinput
.value = l
oopIndex;
|
|
229 |
|
newinput
.value = l
oopIndex;
|
226 |
|
//newinp
ut.setAttr
ibute( "on
click", "j
avascript:
set_vote(
'current_
vote', thi
s.value );
");
|
|
230 |
|
//newinp
ut.setAttr
ibute( "on
click", "j
avascript:
set_vote(
'current_
vote', thi
s.value );
");
|
227 |
|
newinput
.onclick =
function(
){ set_vot
e( 'curren
t_vote_' +
ID, this.
value ); }
;
|
|
231 |
|
newinput
.onclick =
function(
){ set_vot
e( 'curren
t_vote_' +
ID, this.
value ); }
;
|
228 |
|
|
|
232 |
|
|
229 |
|
newdiv3.
appendChil
d( newinpu
t );
|
|
233 |
|
newdiv3.
appendChil
d( newinpu
t );
|
230 |
|
newdiv3.
appendChil
d( newdiv2
);
|
|
234 |
|
newdiv3.
appendChil
d( newdiv2
);
|
231 |
|
|
|
235 |
|
|
232 |
|
containe
r.appendCh
ild( newdi
v3 );
|
|
236 |
|
containe
r.appendCh
ild( newdi
v3 );
|
233 |
|
}
|
|
237 |
|
}
|
234 |
|
|
|
238 |
|
|
235 |
|
sc
rollers_di
splay();
|
|
239 |
|
sc
rollers_di
splay();
|
236 |
|
}
|
|
240 |
|
}
|
237 |
|
|
|
241 |
|
|
238 |
|
|
|
242 |
|
|
239 |
|
functi
on list_qu
estion( co
nt )
|
|
243 |
|
functi
on list_qu
estion( co
nt )
|
240 |
|
{
|
|
244 |
|
{
|
241 |
|
va
r cont = d
ocument.ge
tElementBy
Id( cont )
;
|
|
245 |
|
va
r cont = d
ocument.ge
tElementBy
Id( cont )
;
|
242 |
|
|
|
246 |
|
|
243 |
|
va
r newdiv =
document.
createElem
ent( "div"
);
|
|
247 |
|
va
r newdiv =
document.
createElem
ent( "div"
);
|
244 |
|
ne
wdiv.id =
"dpol_capt
ion_text_"
+ ID;
|
|
248 |
|
ne
wdiv.id =
"dpol_capt
ion_text_"
+ ID;
|
245 |
|
ne
wdiv.style
.position
= "absolut
e";
|
|
249 |
|
ne
wdiv.style
.position
= "absolut
e";
|
246 |
|
ne
wdiv.style
.whiteSpac
e = "nowra
p";
|
|
250 |
|
ne
wdiv.style
.whiteSpac
e = "nowra
p";
|
247 |
|
ne
wdiv.onmou
seover = f
unction()
{ scroll_s
tart(this,
'horizonta
l'); };
|
|
251 |
|
ne
wdiv.onmou
seover = f
unction()
{ scroll_s
tart(this,
'horizonta
l'); };
|
248 |
|
ne
wdiv.onmou
seout = fu
nction() {
scroll_st
op(); };
|
|
252 |
|
ne
wdiv.onmou
seout = fu
nction() {
scroll_st
op(); };
|
249 |
|
|
|
253 |
|
|
250 |
|
va
r newtext
= document
.createTex
tNode( ' '
+ questio
n[0].first
Child.data
+ ' ' );
|
|
254 |
|
va
r newtext
= document
.createTex
tNode( ' '
+ questio
n[0].first
Child.data
+ ' ' );
|
251 |
|
|
|
255 |
|
|
252 |
|
//
var newlin
k = docume
nt.createE
lement( "a
" );
|
|
256 |
|
//
var newlin
k = docume
nt.createE
lement( "a
" );
|
253 |
|
//
newlink.hr
ef = "#";
|
|
257 |
|
//
newlink.hr
ef = "#";
|
254 |
|
|
|
258 |
|
|
255 |
|
//
newlink.ap
pendChild(
newtext )
;
|
|
259 |
|
//
newlink.ap
pendChild(
newtext )
;
|
256 |
|
//
newdiv.app
endChild(
newlink );
|
|
260 |
|
//
newdiv.app
endChild(
newlink );
|
257 |
|
ne
wdiv.appen
dChild( ne
wtext );
|
|
261 |
|
ne
wdiv.appen
dChild( ne
wtext );
|
258 |
|
co
nt.appendC
hild( newd
iv );
|
|
262 |
|
co
nt.appendC
hild( newd
iv );
|
259 |
|
}
|
|
263 |
|
}
|
260 |
|
|
|
264 |
|
|
261 |
|
|
|
265 |
|
|
262 |
|
functi
on list_re
sults()
|
|
266 |
|
functi
on list_re
sults()
|
263 |
|
{
|
|
267 |
|
{
|
264 |
|
va
r loopInde
x;
|
|
268 |
|
va
r loopInde
x;
|
265 |
|
|
|
269 |
|
|
266 |
|
fo
r ( loopIn
dex = 0; l
oopIndex <
answers_p
oints.leng
th; loopIn
dex++ )
|
|
270 |
|
fo
r ( loopIn
dex = 0; l
oopIndex <
answers_p
oints.leng
th; loopIn
dex++ )
|
267 |
|
{
|
|
271 |
|
{
|
268 |
|
draw_bar
( answers_
points[loo
pIndex].fi
rstChild.d
ata, answe
rs_names[l
oopIndex].
firstChild
.data + '
( ' + answ
ers_num[lo
opIndex].f
irstChild.
data + ' v
otes ): ',
loopIndex
);
|
|
272 |
|
draw_bar
( answers_
points[loo
pIndex].fi
rstChild.d
ata, answe
rs_names[l
oopIndex].
firstChild
.data + '
( ' + answ
ers_num[lo
opIndex].f
irstChild.
data + ' v
otes ): ',
loopIndex
);
|
269 |
|
}
|
|
273 |
|
}
|
270 |
|
|
|
274 |
|
|
271 |
|
sc
rollers_di
splay();
|
|
275 |
|
sc
rollers_di
splay();
|
272 |
|
}
|
|
276 |
|
}
|
273 |
|
|
|
277 |
|
|
274 |
|
|
|
278 |
|
|
275 |
|
functi
on draw_ba
r( num, co
mment, id
)
|
|
279 |
|
functi
on draw_ba
r( num, co
mment, id
)
|
276 |
|
{
|
|
280 |
|
{
|
277 |
|
//
container.
innerHTML
= containe
r.innerHTM
L + '<div>
' + commen
t + '</div
><div id="
' + num +
'" onclick
="alert(\'
zzz\');" s
tyle="widt
h:10px;bac
kground-co
lor:#00FF0
0;">' + nu
m + '%</di
v>';
|
|
281 |
|
//
container.
innerHTML
= containe
r.innerHTM
L + '<div>
' + commen
t + '</div
><div id="
' + num +
'" onclick
="alert(\'
zzz\');" s
tyle="widt
h:10px;bac
kground-co
lor:#00FF0
0;">' + nu
m + '%</di
v>';
|
278 |
|
|
|
282 |
|
|
279 |
|
/*
|
|
283 |
|
/*
|
280 |
|
va
r newdiv =
document.
createElem
ent( "div"
);
|
|
284 |
|
va
r newdiv =
document.
createElem
ent( "div"
);
|
281 |
|
va
r newtext
= document
.createTex
tNode( com
ment );
|
|
285 |
|
va
r newtext
= document
.createTex
tNode( com
ment );
|
282 |
|
ne
wdiv.appen
dChild( ne
wtext );
|
|
286 |
|
ne
wdiv.appen
dChild( ne
wtext );
|
283 |
|
co
ntainer.ap
pendChild(
newdiv );
|
|
287 |
|
co
ntainer.ap
pendChild(
newdiv );
|
284 |
|
*/
|
|
288 |
|
*/
|
285 |
|
|
|
289 |
|
|
286 |
|
va
r newtext
= document
.createTex
tNode( com
ment );
|
|
290 |
|
va
r newtext
= document
.createTex
tNode( com
ment );
|
287 |
|
|
|
291 |
|
|
288 |
|
va
r newdiv =
document.
createElem
ent( "div"
);
|
|
292 |
|
va
r newdiv =
document.
createElem
ent( "div"
);
|
289 |
|
ne
wdiv.style
.position
= "absolut
e";
|
|
293 |
|
ne
wdiv.style
.position
= "absolut
e";
|
290 |
|
ne
wdiv.style
.top = "0p
x";
|
|
294 |
|
ne
wdiv.style
.top = "0p
x";
|
291 |
|
ne
wdiv.style
.whiteSpac
e = "nowra
p";
|
|
295 |
|
ne
wdiv.style
.whiteSpac
e = "nowra
p";
|
292 |
|
|
|
296 |
|
|
293 |
|
ne
wdiv.setAt
tribute("i
d", 'r_' +
ID + "_"
+ id );
|
|
297 |
|
ne
wdiv.setAt
tribute("i
d", 'r_' +
ID + "_"
+ id );
|
294 |
|
ne
wdiv.onmou
seover = f
unction(){
scroll_st
art(this,'
horizontal
'); };
|
|
298 |
|
ne
wdiv.onmou
seover = f
unction(){
scroll_st
art(this,'
horizontal
'); };
|
295 |
|
ne
wdiv.onmou
seout = fu
nction(){
scroll_sto
p(); };
|
|
299 |
|
ne
wdiv.onmou
seout = fu
nction(){
scroll_sto
p(); };
|
296 |
|
|
|
300 |
|
|
297 |
|
ne
wdiv.appen
dChild( ne
wtext );
|
|
301 |
|
ne
wdiv.appen
dChild( ne
wtext );
|
298 |
|
|
|
302 |
|
|
299 |
|
va
r newdiv2
= document
.createEle
ment( "div
" );
|
|
303 |
|
va
r newdiv2
= document
.createEle
ment( "div
" );
|
300 |
|
ne
wdiv2.styl
e.position
= "absolu
te";
|
|
304 |
|
ne
wdiv2.styl
e.position
= "absolu
te";
|
301 |
|
ne
wdiv2.styl
e.left = "
2px";
|
|
305 |
|
ne
wdiv2.styl
e.left = "
2px";
|
302 |
|
ne
wdiv2.styl
e.top = "0
px";
|
|
306 |
|
ne
wdiv2.styl
e.top = "0
px";
|
303 |
|
ne
wdiv2.styl
e.width =
"100%";
|
|
307 |
|
ne
wdiv2.styl
e.width =
"100%";
|
304 |
|
ne
wdiv2.styl
e.height =
"100%";
|
|
308 |
|
ne
wdiv2.styl
e.height =
"100%";
|
305 |
|
ne
wdiv2.styl
e.overflow
= "hidden
";
|
|
309 |
|
ne
wdiv2.styl
e.overflow
= "hidden
";
|
306 |
|
|
|
310 |
|
|
307 |
|
ne
wdiv2.appe
ndChild( n
ewdiv );
|
|
311 |
|
ne
wdiv2.appe
ndChild( n
ewdiv );
|
308 |
|
|
|
312 |
|
|
309 |
|
va
r newdiv3
= document
.createEle
ment( "div
" );
|
|
313 |
|
va
r newdiv3
= document
.createEle
ment( "div
" );
|
310 |
|
ne
wdiv3.styl
e.position
= "relati
ve";
|
|
314 |
|
ne
wdiv3.styl
e.position
= "relati
ve";
|
311 |
|
ne
wdiv3.styl
e.height =
"15px";
|
|
315 |
|
ne
wdiv3.styl
e.height =
"15px";
|
312 |
|
|
|
316 |
|
|
313 |
|
ne
wdiv3.appe
ndChild( n
ewdiv2 );
|
|
317 |
|
ne
wdiv3.appe
ndChild( n
ewdiv2 );
|
314 |
|
|
|
318 |
|
|
315 |
|
va
r newdiv4
= document
.createEle
ment( "div
" );
|
|
319 |
|
va
r newdiv4
= document
.createEle
ment( "div
" );
|
316 |
|
ne
wdiv4.setA
ttribute("
id", 'p_'
+ ID + '_'
+ id );
|
|
320 |
|
ne
wdiv4.setA
ttribute("
id", 'p_'
+ ID + '_'
+ id );
|
317 |
|
|
|
321 |
|
|
318 |
|
ne
wdiv4.styl
e.width =
"10px";
|
|
322 |
|
ne
wdiv4.styl
e.width =
"10px";
|
319 |
|
ne
wdiv4.styl
e.marginBo
ttom = "10
px";
|
|
323 |
|
ne
wdiv4.styl
e.marginBo
ttom = "10
px";
|
320 |
|
|
|
324 |
|
|
321 |
|
if
( "string
" != typeo
f(dpoll_pr
ogress_bar
_color) )
|
|
325 |
|
if
( "string
" != typeo
f(dpoll_pr
ogress_bar
_color) )
|
322 |
|
dpoll_pr
ogress_bar
_color = '
#D7E4E5';
|
|
326 |
|
dpoll_pr
ogress_bar
_color = '
#D7E4E5';
|
323 |
|
|
|
327 |
|
|
324 |
|
ne
wdiv4.styl
e.backgrou
ndColor =
dpoll_prog
ress_bar_c
olor;
|
|
328 |
|
ne
wdiv4.styl
e.backgrou
ndColor =
dpoll_prog
ress_bar_c
olor;
|
325 |
|
|
|
329 |
|
|
326 |
|
ne
wtext = do
cument.cre
ateTextNod
e( num + '
%' );
|
|
330 |
|
ne
wtext = do
cument.cre
ateTextNod
e( num + '
%' );
|
327 |
|
ne
wdiv4.appe
ndChild( n
ewtext );
|
|
331 |
|
ne
wdiv4.appe
ndChild( n
ewtext );
|
328 |
|
co
ntainer.ap
pendChild(
newdiv3 )
;
|
|
332 |
|
co
ntainer.ap
pendChild(
newdiv3 )
;
|
329 |
|
co
ntainer.ap
pendChild(
newdiv4 )
;
|
|
333 |
|
co
ntainer.ap
pendChild(
newdiv4 )
;
|
330 |
|
|
|
334 |
|
|
331 |
|
penis_
enla
g
m
e
nt
(
'p_'
+
ID
+
'_'
+
id,
num
);
|
|
335 |
|
enla
r
g
e
PollBar
(
'p_'
+
ID
+
'_'
+
id,
num
);
|
332 |
|
}
|
|
336 |
|
}
|
333 |
|
}
|
|
337 |
|
}
|
334 |
|
|
|
338 |
|
|
335 |
|
function
penis_
enla
g
m
e
nt
(
item,
s
ize
)
|
|
339 |
|
function
enla
r
g
e
PollBar
(
s
BarID,
iS
ize
)
|
336 |
|
{
|
|
340 |
|
{
|
337 |
|
var
p
e
nis
=
document.g
etElementB
yId(
item
);
|
|
341 |
|
var
e
Bar
=
document.g
etElementB
yId(
sBarID
);
|
338 |
|
var
w
idth
_l
im
=
Math.floor
(
s
ize
*
(
p
e
nis
.parentNod
e.offsetWi
dth
/
100)
);
|
|
342 |
|
var
iW
idth
L
im
it
=
Math.floor
(
iS
ize
*
(
e
Bar
.parentNod
e.offsetWi
dth
/
100)
);
|
339 |
|
|
|
343 |
|
|
340 |
|
if
(
w
idth
_l
im
>
p
e
nis
.offsetWid
th
)
|
|
344 |
|
if
(
iW
idth
L
im
it
>
e
Bar
.offsetWid
th
)
{
|
341 |
|
{
|
|
345 |
|
e
Bar
.style.wid
th
=
e
Bar
.offsetWid
th
+
2
+
'px';
|
342 |
|
p
e
nis
.style.wid
th
=
p
e
nis
.offsetWid
th
+
2
+
'px';
|
|
346 |
|
setTimeout
(
"
enla
r
g
e
PollBar
('"
+
sBarID
+
"',
"
+
iS
ize
+
")",
50
);
|
343 |
|
setTimeout
(
"
penis_
enla
g
m
e
nt
('"+
item
+"',"+
s
ize+")",
50
);
|
|
|
344 |
|
}
|
|
347 |
|
}
|
345 |
|
}
|
|
348 |
|
}
|
346 |
|
|
|
349 |
|
|
347 |
|
|
|
350 |
|
|
348 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
351 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
349 |
|
// End of
Server int
eract part
=========
==========
==========
==========
==========
|
|
352 |
|
// End of
Server int
eract part
=========
==========
==========
==========
==========
|
350 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
353 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
351 |
|
|
|
354 |
|
|
352 |
|
// +++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++
|
|
355 |
|
// +++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++
|
353 |
|
|
|
356 |
|
|
354 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
357 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
355 |
|
// Local p
art ======
==========
==========
==========
==========
==========
==========
|
|
358 |
|
// Local p
art ======
==========
==========
==========
==========
==========
==========
|
356 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
359 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
357 |
|
|
|
360 |
|
|
358 |
|
|
|
361 |
|
|
359 |
|
functi
on createN
amedElemen
t( type, n
ame )
|
|
362 |
|
functi
on createN
amedElemen
t( type, n
ame )
|
360 |
|
{
|
|
363 |
|
{
|
361 |
|
|
|
364 |
|
|
362 |
|
va
r element;
|
|
365 |
|
va
r element;
|
363 |
|
|
|
366 |
|
|
364 |
|
try
|
|
367 |
|
try
|
365 |
|
{
|
|
368 |
|
{
|
366 |
|
el
ement = do
cument.cre
ateElement
('<'+type+
' name="'+
name+'">')
;
|
|
369 |
|
el
ement = do
cument.cre
ateElement
('<'+type+
' name="'+
name+'">')
;
|
367 |
|
} catc
h (e) { }
|
|
370 |
|
} catc
h (e) { }
|
368 |
|
|
|
371 |
|
|
369 |
|
if (!e
lement ||
!element.n
ame) // Co
ol, this i
s not IE !
!
|
|
372 |
|
if (!e
lement ||
!element.n
ame) // Co
ol, this i
s not IE !
!
|
370 |
|
{
|
|
373 |
|
{
|
371 |
|
el
ement = do
cument.cre
ateElement
(type)
|
|
374 |
|
el
ement = do
cument.cre
ateElement
(type)
|
372 |
|
el
ement.name
= name;
|
|
375 |
|
el
ement.name
= name;
|
373 |
|
}
|
|
376 |
|
}
|
374 |
|
|
|
377 |
|
|
375 |
|
return
element;
|
|
378 |
|
return
element;
|
376 |
|
}
|
|
379 |
|
}
|
377 |
|
|
|
380 |
|
|
378 |
|
|
|
381 |
|
|
379 |
|
|
|
382 |
|
|
380 |
|
functi
on move_le
ft()
|
|
383 |
|
functi
on move_le
ft()
|
381 |
|
{
|
|
384 |
|
{
|
382 |
|
if (c_
item.offse
tLeft + c_
middle > 0
)
|
|
385 |
|
if (c_
item.offse
tLeft + c_
middle > 0
)
|
383 |
|
{
|
|
386 |
|
{
|
384 |
|
c_
item.style
.left = (c
_item.offs
etLeft-1)
+ 'px';
|
|
387 |
|
c_
item.style
.left = (c
_item.offs
etLeft-1)
+ 'px';
|
385 |
|
}
|
|
388 |
|
}
|
386 |
|
else
|
|
389 |
|
else
|
387 |
|
{
|
|
390 |
|
{
|
388 |
|
c_
item.style
.left = '0
px';
|
|
391 |
|
c_
item.style
.left = '0
px';
|
389 |
|
}
|
|
392 |
|
}
|
390 |
|
|
|
393 |
|
|
391 |
|
}
|
|
394 |
|
}
|
392 |
|
|
|
395 |
|
|
393 |
|
/*
|
|
396 |
|
/*
|
394 |
|
functi
on move_up
down()
|
|
397 |
|
functi
on move_up
down()
|
395 |
|
{
|
|
398 |
|
{
|
396 |
|
|
|
399 |
|
|
397 |
|
if ( '
up' == c_i
tem_direct
ion && (c_
item.offse
tTop + c_i
tem.offset
Height) <=
c_item.pa
rentNode.o
ffsetHeigh
t )
|
|
400 |
|
if ( '
up' == c_i
tem_direct
ion && (c_
item.offse
tTop + c_i
tem.offset
Height) <=
c_item.pa
rentNode.o
ffsetHeigh
t )
|
398 |
|
{//ale
rt("down"
+ c_item.s
tyle.top +
' ' + c_i
tem.offset
Top);
|
|
401 |
|
{//ale
rt("down"
+ c_item.s
tyle.top +
' ' + c_i
tem.offset
Top);
|
399 |
|
c_
item_direc
tion = 'do
wn';
|
|
402 |
|
c_
item_direc
tion = 'do
wn';
|
400 |
|
}
|
|
403 |
|
}
|
401 |
|
else i
f ( 'down'
== c_item
_direction
&& c_item
.offsetTop
>= 0 )
|
|
404 |
|
else i
f ( 'down'
== c_item
_direction
&& c_item
.offsetTop
>= 0 )
|
402 |
|
{//ale
rt("up; "
+ c_item.s
tyle.top +
' ' + c_i
tem.offset
Top);
|
|
405 |
|
{//ale
rt("up; "
+ c_item.s
tyle.top +
' ' + c_i
tem.offset
Top);
|
403 |
|
c_
item_direc
tion = 'up
';
|
|
406 |
|
c_
item_direc
tion = 'up
';
|
404 |
|
}
|
|
407 |
|
}
|
405 |
|
|
|
408 |
|
|
406 |
|
|
|
409 |
|
|
407 |
|
if ( '
up' == c_i
tem_direct
ion )
|
|
410 |
|
if ( '
up' == c_i
tem_direct
ion )
|
408 |
|
{
|
|
411 |
|
{
|
409 |
|
c_
item.style
.top = (c_
item.offse
tTop-2) +
'px';
|
|
412 |
|
c_
item.style
.top = (c_
item.offse
tTop-2) +
'px';
|
410 |
|
}
|
|
413 |
|
}
|
411 |
|
else i
f ( 'down'
== c_item
_direction
)
|
|
414 |
|
else i
f ( 'down'
== c_item
_direction
)
|
412 |
|
{//ale
rt(c_item.
offsetTop+
1);
|
|
415 |
|
{//ale
rt(c_item.
offsetTop+
1);
|
413 |
|
c_
item.style
.top = (c_
item.offse
tTop+2) +
'px';
|
|
416 |
|
c_
item.style
.top = (c_
item.offse
tTop+2) +
'px';
|
414 |
|
}
|
|
417 |
|
}
|
415 |
|
|
|
418 |
|
|
416 |
|
}
|
|
419 |
|
}
|
417 |
|
*/
|
|
420 |
|
*/
|
418 |
|
|
|
421 |
|
|
419 |
|
|
|
422 |
|
|
420 |
|
function m
ove_up()
|
|
423 |
|
function m
ove_up()
|
421 |
|
{
|
|
424 |
|
{
|
422 |
|
if ( (
c_item.off
setTop + c
_item.offs
etHeight)
> c_item.p
arentNode.
offsetHeig
ht )
|
|
425 |
|
if ( (
c_item.off
setTop + c
_item.offs
etHeight)
> c_item.p
arentNode.
offsetHeig
ht )
|
423 |
|
{
|
|
426 |
|
{
|
424 |
|
c_
item.style
.top = (c_
item.offse
tTop-2) +
'px';
|
|
427 |
|
c_
item.style
.top = (c_
item.offse
tTop-2) +
'px';
|
425 |
|
}
|
|
428 |
|
}
|
426 |
|
}
|
|
429 |
|
}
|
427 |
|
|
|
430 |
|
|
428 |
|
|
|
431 |
|
|
429 |
|
|
|
432 |
|
|
430 |
|
function m
ove_down()
|
|
433 |
|
function m
ove_down()
|
431 |
|
{
|
|
434 |
|
{
|
432 |
|
if ( c
_item.offs
etTop < 0
)
|
|
435 |
|
if ( c
_item.offs
etTop < 0
)
|
433 |
|
{
|
|
436 |
|
{
|
434 |
|
c_
item.style
.top = (c_
item.offse
tTop+2) +
'px';
|
|
437 |
|
c_
item.style
.top = (c_
item.offse
tTop+2) +
'px';
|
435 |
|
}
|
|
438 |
|
}
|
436 |
|
}
|
|
439 |
|
}
|
437 |
|
|
|
440 |
|
|
438 |
|
|
|
441 |
|
|
439 |
|
|
|
442 |
|
|
440 |
|
function s
croll_star
t( item, d
ir )
|
|
443 |
|
function s
croll_star
t( item, d
ir )
|
441 |
|
{
|
|
444 |
|
{
|
442 |
|
c_item
= item;
|
|
445 |
|
c_item
= item;
|
443 |
|
// al
ert(c_item
.id);
|
|
446 |
|
// al
ert(c_item
.id);
|
444 |
|
|
|
447 |
|
|
445 |
|
if ( '
horizontal
' == dir )
|
|
448 |
|
if ( '
horizontal
' == dir )
|
446 |
|
{
|
|
449 |
|
{
|
447 |
|
|
|
450 |
|
|
448 |
|
if
( c_item.
offsetWidt
h <= c_ite
m.parentNo
de.offsetW
idth )
|
|
451 |
|
if
( c_item.
offsetWidt
h <= c_ite
m.parentNo
de.offsetW
idth )
|
449 |
|
re
turn false
;
|
|
452 |
|
re
turn false
;
|
450 |
|
|
|
453 |
|
|
451 |
|
//
if ( c_ite
m.offsetWi
dth <= (c_
item.paren
tNode.offs
etWidth *
2) )
|
|
454 |
|
//
if ( c_ite
m.offsetWi
dth <= (c_
item.paren
tNode.offs
etWidth *
2) )
|
452 |
|
if
( 1 != do
uble_sized
_items[c_i
tem.id] )
|
|
455 |
|
if
( 1 != do
uble_sized
_items[c_i
tem.id] )
|
453 |
|
{
|
|
456 |
|
{
|
454 |
|
c_item.i
nnerHTML =
c_item.in
nerHTML +
" " + c_
item.inner
HTML;
|
|
457 |
|
c_item.i
nnerHTML =
c_item.in
nerHTML +
" " + c_
item.inner
HTML;
|
455 |
|
double_s
ized_items
[c_item.id
] = 1;
|
|
458 |
|
double_s
ized_items
[c_item.id
] = 1;
|
456 |
|
}
|
|
459 |
|
}
|
457 |
|
|
|
460 |
|
|
458 |
|
c_
middle = c
_item.offs
etWidth /
2;
|
|
461 |
|
c_
middle = c
_item.offs
etWidth /
2;
|
459 |
|
sc
roll_stop(
);
|
|
462 |
|
sc
roll_stop(
);
|
460 |
|
it
er = windo
w.setInter
val( 'move
_left()',
20 );
|
|
463 |
|
it
er = windo
w.setInter
val( 'move
_left()',
20 );
|
461 |
|
}
|
|
464 |
|
}
|
462 |
|
|
|
465 |
|
|
463 |
|
if ( '
up' == dir
)
|
|
466 |
|
if ( '
up' == dir
)
|
464 |
|
{
|
|
467 |
|
{
|
465 |
|
sc
roll_stop(
);
|
|
468 |
|
sc
roll_stop(
);
|
466 |
|
it
er = windo
w.setInter
val( 'move
_up()', 20
);
|
|
469 |
|
it
er = windo
w.setInter
val( 'move
_up()', 20
);
|
467 |
|
}
|
|
470 |
|
}
|
468 |
|
|
|
471 |
|
|
469 |
|
if ( '
down' == d
ir )
|
|
472 |
|
if ( '
down' == d
ir )
|
470 |
|
{
|
|
473 |
|
{
|
471 |
|
sc
roll_stop(
);
|
|
474 |
|
sc
roll_stop(
);
|
472 |
|
it
er = windo
w.setInter
val( 'move
_down()',
20 );
|
|
475 |
|
it
er = windo
w.setInter
val( 'move
_down()',
20 );
|
473 |
|
}
|
|
476 |
|
}
|
474 |
|
}
|
|
477 |
|
}
|
475 |
|
|
|
478 |
|
|
476 |
|
|
|
479 |
|
|
477 |
|
function s
croll_stop
()
|
|
480 |
|
function s
croll_stop
()
|
478 |
|
{
|
|
481 |
|
{
|
479 |
|
if ( u
ndefined !
= window.i
ter )
|
|
482 |
|
if ( u
ndefined !
= window.i
ter )
|
480 |
|
wi
ndow.clear
Interval(i
ter);
|
|
483 |
|
wi
ndow.clear
Interval(i
ter);
|
481 |
|
}
|
|
484 |
|
}
|
482 |
|
|
|
485 |
|
|
483 |
|
function s
et_vote( i
tem, val )
|
|
486 |
|
function s
et_vote( i
tem, val )
|
484 |
|
{
|
|
487 |
|
{
|
485 |
|
docume
nt.getElem
entById( i
tem ).valu
e = val;
|
|
488 |
|
docume
nt.getElem
entById( i
tem ).valu
e = val;
|
486 |
|
}
|
|
489 |
|
}
|
487 |
|
|
|
490 |
|
|
488 |
|
|
|
491 |
|
|
489 |
|
|
|
492 |
|
|
490 |
|
// array w
ith elemen
ts witch w
e increase
d to scrol
l
|
|
493 |
|
// array w
ith elemen
ts witch w
e increase
d to scrol
l
|
491 |
|
double
_sized_ite
ms = new A
rray();
|
|
494 |
|
double
_sized_ite
ms = new A
rray();
|
492 |
|
|
|
495 |
|
|
493 |
|
|
|
496 |
|
|
494 |
|
// oncl
ick="JavaS
cript:
|
|
497 |
|
// oncl
ick="JavaS
cript:
|
495 |
|
// do
cument.bod
y.style.cu
rsor = 'Wa
it';
|
|
498 |
|
// do
cument.bod
y.style.cu
rsor = 'Wa
it';
|
496 |
|
// Se
ndVote(659
1,false);
|
|
499 |
|
// Se
ndVote(659
1,false);
|
497 |
|
// vo
id(0);
|
|
500 |
|
// vo
id(0);
|
498 |
|
|
|
501 |
|
|
499 |
|
|
|
502 |
|
|
500 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
503 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
501 |
|
// End of
local part
=========
==========
==========
==========
==========
==========
|
|
504 |
|
// End of
local part
=========
==========
==========
==========
==========
==========
|
502 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
|
505 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
|
503 |
|
|
|
506 |
|
|