- Mã: Chọn tất cả
gendervn [ 18 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/girl/19.gif'>" ;
58. gendervn [ 19 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/girl/20.gif'>" ;
59. aqperpost = "7"
60.
61. x = document . getElementsByTagName ( 'div' )
62. for ( y = 0 ; y < x . length ; y ++)
63. {
64. if ( x [ y ]. className == "postprofile" ){
65. nick = x [ y ]. parentNode . parentNode . parentNode . getElementsByTagName ( "A" )[ 0 ]. innerHTML ;
66. posts [ nick ]= parseInt ( x [ y ]. innerHTML . toLowerCase (). split ( "posts</span>: </span>" )[ 1 ]);
67.
68. nic = x [ y ]. parentNode . parentNode . parentNode . getElementsByTagName ( "A" )[ 0 ]. innerHTML ;
69. repts [ nic ]= parseInt ( x [ y ]. innerHTML . toLowerCase (). split ( "points</span>: </span>" )[ 1 ]);
70.
71. nict = x [ y ]. parentNode . parentNode . parentNode . getElementsByTagName ( "A" )[ 0 ]. innerHTML ;
72. cts [ nict ]= parseInt ( x [ y ]. innerHTML . toLowerCase (). split ( "gender</span>: </span>" )[ 1 ]);
73.
74. var levell =[];
75. var xp =[];
76. var firstchar =[];
77. xp [ nick ]= posts [ nick ]* xperpost + repts [ nic ]* xperreptt
78. level [ nick ]=( xp [ nick ]/ xpneeded )
79. var exp = Math . floor (( level [ nick ]- Math . floor ( level [ nick ]))* xperexp )
80. var phansonguyen = Math . floor ( level [ nick ]+ parseInt ( 1 ));
81. var xptogo = Math . floor ( level [ nick ]+ parseInt ( 1 ))* xpneeded
82. firstchar [ nick ]= nick . charAt ( 0 );
83.
84. aq [ nick ]= "YĂªu cầu vĂ o lĂ½ lịch cáºp nháºt giá»›i tĂnh (gender) cho mình"
85. aq [ nick ]=( aqperpost * posts [ nick ])
86.
87.
88. var avatar =[];
89. if ( cts [ nict ] == 1 ) {
90. if ( phansonguyen == 1 )
91. { avatar [ nick ]= gendervn [ 0 ]}
92. if ( phansonguyen == 2 )
93. { avatar [ nick ]= gendervn [ 1 ]}
94. if ( phansonguyen == 3 )
95. { avatar [ nick ]= gendervn [ 2 ]}
96. if ( phansonguyen == 4 )
97. { avatar [ nick ]= gendervn [ 3 ]}
98. if ( phansonguyen == 5 )
99. { avatar [ nick ]= gendervn [ 4 ]}
100. if ( phansonguyen == 6 )
101. { avatar [ nick ]= gendervn [ 5 ]}
102. if ( phansonguyen == 7 )
103. { avatar [ nick ]= gendervn [ 6 ]}
104. if ( phansonguyen == 8 )
105. { avatar [ nick ]= gendervn [ 7 ]}
106. if ( phansonguyen == 9 )
107. { avatar [ nick ]= gendervn [ 8 ]}
108. if ( phansonguyen >= 10 )
109. { avatar [ nick ]= gendervn [ 9 ]}
110. } else {
111. if ( cts [ nict ] == 2 ) {
112. if ( phansonguyen == 1 )
113. { avatar [ nick ]= gendervn [ 10 ]}
114. if ( phansonguyen == 2 )
115. { avatar [ nick ]= gendervn [ 11 ]}
116. if ( phansonguyen == 3 )
117. { avatar [ nick ]= gendervn [ 12 ]}
118. if ( phansonguyen == 4 )
119. { avatar [ nick ]= gendervn [ 13 ]}
120. if ( phansonguyen == 5 )
121. { avatar [ nick ]= gendervn [ 14 ]}
122. if ( phansonguyen == 6 )
123. { avatar [ nick ]= gendervn [ 15 ]}
124. if ( phansonguyen == 7 )
125. { avatar [ nick ]= gendervn [ 16 ]}
126. if ( phansonguyen == 8 )
127. { avatar [ nick ]= gendervn [ 17 ]}
128. if ( phansonguyen == 9 )
129. { avatar [ nick ]= gendervn [ 18 ]}
130. if ( phansonguyen >= 10 )
131. { avatar [ nick ]= gendervn [ 19 ]}
132. }
133. }
134. expgender = "<img src='http://sinhvienit.net/@forum/images/rpg/blue.gif' width='" + exp + "%' height='9px'>" ;
135. expgender2 = "<img src='http://sinhvienit.net/@forum/images/rpg/exp.gif' width='2px' height='9px'>" ;
136. expss = "<div class='expbg'><div class='expbg2'><fieldsetstyle='padding: 1px; border: #add8e6 1px solid;'>" + expgender + "" + expgender2 + "</fieldset></div></div>" ;
137.
138. stats = "" + avatarname + "" + avatar [ nick ]+ "<BR><b>" + title1 + ": " + phansonguyen + " (+" + exp + "%)</b></center>" + expss + ""
139.
140. if ( x [ y ]. innerHTML . match ( /Choice/ i )){
141. x [ y ]. innerHTML += "<span class='gensmall'><fieldset>You do not have genders<fieldset>" ;}
142. else { x [ y ]. innerHTML += "<span class='gensmall'><fieldset><center>" + stats + "</fieldset>" ;}143. }}
144. }
145. function start () { changeImg (); init ();} window . onload = start ();