msg.popup.js 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580
  1. var ua = navigator.userAgent.toLowerCase();
  2. if (!(ua.indexOf('ipad') > -1 || ua.indexOf('iphone') > -1 || ua.indexOf('android') > -1 || ua.indexOf('wap') > -1) && (
  3. screen.height > 768 || screen.width > 1024)) {
  4. var _msg_pop_height = 250;
  5. function _message_node(id) {
  6. return document.getElementById(id)
  7. }
  8. function _message_child(p, c) {
  9. var pdom = _message_node(p);
  10. var nodes = pdom.childNodes;
  11. var cdom = false;
  12. for (var i = 0; i < nodes.length; i++) {
  13. if (nodes[i].tagName == c.toUpperCase()) {
  14. cdom = nodes[i];
  15. break
  16. }
  17. }
  18. return cdom
  19. }
  20. function _message_child_attr_add(p, id, type) {
  21. var pdom = _message_node(p);
  22. var nodes = pdom.getElementsByTagName("a");
  23. var fn = function() {
  24. _msg_item_click_count(id, type)
  25. };
  26. for (var i = 0; i < nodes.length; i++) {
  27. url = nodes[i].href;
  28. if (url.toLowerCase().indexOf("http://") == 0 || url.toLowerCase().indexOf("https://") == 0) {
  29. if (nodes[i].addEventListener) {
  30. nodes[i].addEventListener("click", fn, false)
  31. } else {
  32. if (nodes[i].attachEvent) {
  33. nodes[i].attachEvent("onclick", fn)
  34. }
  35. }
  36. }
  37. }
  38. }
  39. function _message_callScript(url, loaded, error, charset) {
  40. var script = document.createElement("script");
  41. if (typeof charset == "string") {
  42. script.charset = charset
  43. }
  44. script.onreadystatechange = function() {
  45. switch (this.readyState) {
  46. case "complete":
  47. case "loaded":
  48. if (typeof loaded == "function") {
  49. loaded()
  50. }
  51. if (script.parentNode) {
  52. script.parentNode.removeChild(script)
  53. }
  54. break
  55. }
  56. };
  57. script.onload = function() {
  58. if (typeof loaded == "function") {
  59. loaded()
  60. }
  61. if (script.parentNode) {
  62. script.parentNode.removeChild(script)
  63. }
  64. };
  65. script.onerror = function() {
  66. if (typeof error == "function") {
  67. error()
  68. }
  69. if (script.parentNode) {
  70. script.parentNode.removeChild(script)
  71. }
  72. };
  73. script.type = "text/javascript";
  74. script.defer = "true";
  75. script.src = url;
  76. var parent = document.getElementsByTagName("HEAD")[0] || document.documentElement;
  77. if (parent && parent.insertBefore) {
  78. parent.insertBefore(script, parent.firstChild)
  79. }
  80. }
  81. function _message_tips_pop(act) {
  82. var MsgPop = _message_child("_popup_msg_container", "div");
  83. var MsgPop = null == MsgPop ? document.getElementById("_popup_msg_container") : MsgPop;
  84. var popH = parseInt(MsgPop.clientHeight);
  85. if (act == "up") {
  86. MsgPop.style.display = "block";
  87. show = setInterval("_message_changeH('up')", 5)
  88. }
  89. if (act == "down") {
  90. hide = setInterval("_message_changeH('down')", 5)
  91. }
  92. }
  93. function _message_changeH(str) {
  94. var MsgPop = _message_child("_popup_msg_container", "div");
  95. var MsgPop = null == MsgPop ? document.getElementById("_popup_msg_container") : MsgPop;
  96. var popH = parseInt(MsgPop.clientHeight);
  97. if (str == "up") {
  98. if (popH < _msg_pop_height) {
  99. MsgPop.style.height = (popH + 2).toString() + "px"
  100. } else {
  101. clearInterval(show)
  102. }
  103. }
  104. if (str == "down") {
  105. if (popH >= 2) {
  106. var h = popH - 4;
  107. if(h<0) h = 0;
  108. MsgPop.style.height = h + "px";
  109. } else {
  110. MsgPop.style.display = "none";
  111. clearInterval(hide)
  112. }
  113. }
  114. }
  115. function _msg_item_click_count(id, type) {
  116. var pv = document.createElement("img");
  117. var rand = Math.ceil(Math.random() * 10000);
  118. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  119. pv.style.display = "none";
  120. document.body.appendChild(pv)
  121. }
  122. function _message_callback(data) {
  123. if (data.id > 0) {
  124. var css = document.createElement("link");
  125. css.href = data.css;
  126. css.rel = "stylesheet";
  127. css.type = "text/css";
  128. document.body.appendChild(css);
  129. var container = document.createElement("div");
  130. container.style.display = "block";
  131. container.id = "_popup_msg_container";
  132. container.innerHTML = data.content;
  133. document.body.appendChild(container);
  134. if (!data.no_count_click) {
  135. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  136. }
  137. var MsgPop = _message_child("_popup_msg_container", "div");
  138. if (MsgPop) {
  139. spheight = MsgPop.getAttribute("height");
  140. if (spheight) {
  141. spheight = spheight.replace("px", "");
  142. if (isNaN(spheight) == false) {
  143. _msg_pop_height = spheight
  144. }
  145. }
  146. MsgPop.style.display = "none";
  147. MsgPop.style.height = "0px"
  148. }
  149. setTimeout("_message_tips_pop('up')", 100);
  150. if (!data.no_count_view) {
  151. var pv = document.createElement("img");
  152. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  153. pv.style.display = "none";
  154. document.body.appendChild(pv)
  155. }
  156. }
  157. }
  158. function _message_get_search_args(qkey) {
  159. var args = new Object();
  160. var query = document.location.search.substring(1);
  161. var ret = "";
  162. var pairs = query.split("&");
  163. for (var i = 0; i < pairs.length; i++) {
  164. var pos = pairs[i].indexOf("=");
  165. if (pos == -1) {
  166. continue
  167. }
  168. var argname = pairs[i].substring(0, pos);
  169. var value = pairs[i].substring(pos + 1);
  170. args[argname] = unescape(value);
  171. ret = unescape(value);
  172. break
  173. }
  174. return ret
  175. }function _msg_item_click_count(id, type) {
  176. var pv = document.createElement("img");
  177. var rand = Math.ceil(Math.random() * 10000);
  178. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  179. pv.style.display = "none";
  180. document.body.appendChild(pv)
  181. }
  182. function _message_callback(data) {
  183. if (data.id > 0) {
  184. var css = document.createElement("link");
  185. css.href = data.css;
  186. css.rel = "stylesheet";
  187. css.type = "text/css";
  188. document.body.appendChild(css);
  189. var container = document.createElement("div");
  190. container.style.display = "block";
  191. container.id = "_popup_msg_container";
  192. container.innerHTML = data.content;
  193. document.body.appendChild(container);
  194. if (!data.no_count_click) {
  195. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  196. }
  197. var MsgPop = _message_child("_popup_msg_container", "div");
  198. if (MsgPop) {
  199. spheight = MsgPop.getAttribute("height");
  200. if (spheight) {
  201. spheight = spheight.replace("px", "");
  202. if (isNaN(spheight) == false) {
  203. _msg_pop_height = spheight
  204. }
  205. }
  206. MsgPop.style.display = "none";
  207. MsgPop.style.height = "0px"
  208. }
  209. setTimeout("_message_tips_pop('up')", 100);
  210. if (!data.no_count_view) {
  211. var pv = document.createElement("img");
  212. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  213. pv.style.display = "none";
  214. document.body.appendChild(pv)
  215. }
  216. }
  217. }
  218. function _message_get_search_args(qkey) {
  219. var args = new Object();
  220. var query = document.location.search.substring(1);
  221. var ret = "";
  222. var pairs = query.split("&");
  223. for (var i = 0; i < pairs.length; i++) {
  224. var pos = pairs[i].indexOf("=");
  225. if (pos == -1) {
  226. continue
  227. }
  228. var argname = pairs[i].substring(0, pos);
  229. var value = pairs[i].substring(pos + 1);
  230. args[argname] = unescape(value);
  231. ret = unescape(value);
  232. break
  233. }
  234. return ret
  235. }function _msg_item_click_count(id, type) {
  236. var pv = document.createElement("img");
  237. var rand = Math.ceil(Math.random() * 10000);
  238. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  239. pv.style.display = "none";
  240. document.body.appendChild(pv)
  241. }
  242. function _message_callback(data) {
  243. if (data.id > 0) {
  244. var css = document.createElement("link");
  245. css.href = data.css;
  246. css.rel = "stylesheet";
  247. css.type = "text/css";
  248. document.body.appendChild(css);
  249. var container = document.createElement("div");
  250. container.style.display = "block";
  251. container.id = "_popup_msg_container";
  252. container.innerHTML = data.content;
  253. document.body.appendChild(container);
  254. if (!data.no_count_click) {
  255. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  256. }
  257. var MsgPop = _message_child("_popup_msg_container", "div");
  258. if (MsgPop) {
  259. spheight = MsgPop.getAttribute("height");
  260. if (spheight) {
  261. spheight = spheight.replace("px", "");
  262. if (isNaN(spheight) == false) {
  263. _msg_pop_height = spheight
  264. }
  265. }
  266. MsgPop.style.display = "none";
  267. MsgPop.style.height = "0px"
  268. }
  269. setTimeout("_message_tips_pop('up')", 100);
  270. if (!data.no_count_view) {
  271. var pv = document.createElement("img");
  272. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  273. pv.style.display = "none";
  274. document.body.appendChild(pv)
  275. }
  276. }
  277. }
  278. function _message_get_search_args(qkey) {
  279. var args = new Object();
  280. var query = document.location.search.substring(1);
  281. var ret = "";
  282. var pairs = query.split("&");
  283. for (var i = 0; i < pairs.length; i++) {
  284. var pos = pairs[i].indexOf("=");
  285. if (pos == -1) {
  286. continue
  287. }
  288. var argname = pairs[i].substring(0, pos);
  289. var value = pairs[i].substring(pos + 1);
  290. args[argname] = unescape(value);
  291. ret = unescape(value);
  292. break
  293. }
  294. return ret
  295. }function _msg_item_click_count(id, type) {
  296. var pv = document.createElement("img");
  297. var rand = Math.ceil(Math.random() * 10000);
  298. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  299. pv.style.display = "none";
  300. document.body.appendChild(pv)
  301. }
  302. function _message_callback(data) {
  303. if (data.id > 0) {
  304. var css = document.createElement("link");
  305. css.href = data.css;
  306. css.rel = "stylesheet";
  307. css.type = "text/css";
  308. document.body.appendChild(css);
  309. var container = document.createElement("div");
  310. container.style.display = "block";
  311. container.id = "_popup_msg_container";
  312. container.innerHTML = data.content;
  313. document.body.appendChild(container);
  314. if (!data.no_count_click) {
  315. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  316. }
  317. var MsgPop = _message_child("_popup_msg_container", "div");
  318. if (MsgPop) {
  319. spheight = MsgPop.getAttribute("height");
  320. if (spheight) {
  321. spheight = spheight.replace("px", "");
  322. if (isNaN(spheight) == false) {
  323. _msg_pop_height = spheight
  324. }
  325. }
  326. MsgPop.style.display = "none";
  327. MsgPop.style.height = "0px"
  328. }
  329. setTimeout("_message_tips_pop('up')", 100);
  330. if (!data.no_count_view) {
  331. var pv = document.createElement("img");
  332. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  333. pv.style.display = "none";
  334. document.body.appendChild(pv)
  335. }
  336. }
  337. }
  338. function _message_get_search_args(qkey) {
  339. var args = new Object();
  340. var query = document.location.search.substring(1);
  341. var ret = "";
  342. var pairs = query.split("&");
  343. for (var i = 0; i < pairs.length; i++) {
  344. var pos = pairs[i].indexOf("=");
  345. if (pos == -1) {
  346. continue
  347. }
  348. var argname = pairs[i].substring(0, pos);
  349. var value = pairs[i].substring(pos + 1);
  350. args[argname] = unescape(value);
  351. ret = unescape(value);
  352. break
  353. }
  354. return ret
  355. }function _msg_item_click_count(id, type) {
  356. var pv = document.createElement("img");
  357. var rand = Math.ceil(Math.random() * 10000);
  358. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  359. pv.style.display = "none";
  360. document.body.appendChild(pv)
  361. }
  362. function _message_callback(data) {
  363. if (data.id > 0) {
  364. var css = document.createElement("link");
  365. css.href = data.css;
  366. css.rel = "stylesheet";
  367. css.type = "text/css";
  368. document.body.appendChild(css);
  369. var container = document.createElement("div");
  370. container.style.display = "block";
  371. container.id = "_popup_msg_container";
  372. container.innerHTML = data.content;
  373. document.body.appendChild(container);
  374. if (!data.no_count_click) {
  375. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  376. }
  377. var MsgPop = _message_child("_popup_msg_container", "div");
  378. if (MsgPop) {
  379. spheight = MsgPop.getAttribute("height");
  380. if (spheight) {
  381. spheight = spheight.replace("px", "");
  382. if (isNaN(spheight) == false) {
  383. _msg_pop_height = spheight
  384. }
  385. }
  386. MsgPop.style.display = "none";
  387. MsgPop.style.height = "0px"
  388. }
  389. setTimeout("_message_tips_pop('up')", 100);
  390. if (!data.no_count_view) {
  391. var pv = document.createElement("img");
  392. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  393. pv.style.display = "none";
  394. document.body.appendChild(pv)
  395. }
  396. }
  397. }
  398. function _message_get_search_args(qkey) {
  399. var args = new Object();
  400. var query = document.location.search.substring(1);
  401. var ret = "";
  402. var pairs = query.split("&");
  403. for (var i = 0; i < pairs.length; i++) {
  404. var pos = pairs[i].indexOf("=");
  405. if (pos == -1) {
  406. continue
  407. }
  408. var argname = pairs[i].substring(0, pos);
  409. var value = pairs[i].substring(pos + 1);
  410. args[argname] = unescape(value);
  411. ret = unescape(value);
  412. break
  413. }
  414. return ret
  415. }function _msg_item_click_count(id, type) {
  416. var pv = document.createElement("img");
  417. var rand = Math.ceil(Math.random() * 10000);
  418. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  419. pv.style.display = "none";
  420. document.body.appendChild(pv)
  421. }
  422. function _message_callback(data) {
  423. if (data.id > 0) {
  424. var css = document.createElement("link");
  425. css.href = data.css;
  426. css.rel = "stylesheet";
  427. css.type = "text/css";
  428. document.body.appendChild(css);
  429. var container = document.createElement("div");
  430. container.style.display = "block";
  431. container.id = "_popup_msg_container";
  432. container.innerHTML = data.content;
  433. document.body.appendChild(container);
  434. if (!data.no_count_click) {
  435. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  436. }
  437. var MsgPop = _message_child("_popup_msg_container", "div");
  438. if (MsgPop) {
  439. spheight = MsgPop.getAttribute("height");
  440. if (spheight) {
  441. spheight = spheight.replace("px", "");
  442. if (isNaN(spheight) == false) {
  443. _msg_pop_height = spheight
  444. }
  445. }
  446. MsgPop.style.display = "none";
  447. MsgPop.style.height = "0px"
  448. }
  449. setTimeout("_message_tips_pop('up')", 100);
  450. if (!data.no_count_view) {
  451. var pv = document.createElement("img");
  452. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  453. pv.style.display = "none";
  454. document.body.appendChild(pv)
  455. }
  456. }
  457. }
  458. function _message_get_search_args(qkey) {
  459. var args = new Object();
  460. var query = document.location.search.substring(1);
  461. var ret = "";
  462. var pairs = query.split("&");
  463. for (var i = 0; i < pairs.length; i++) {
  464. var pos = pairs[i].indexOf("=");
  465. if (pos == -1) {
  466. continue
  467. }
  468. var argname = pairs[i].substring(0, pos);
  469. var value = pairs[i].substring(pos + 1);
  470. args[argname] = unescape(value);
  471. ret = unescape(value);
  472. break
  473. }
  474. return ret
  475. }function _msg_item_click_count(id, type) {
  476. var pv = document.createElement("img");
  477. var rand = Math.ceil(Math.random() * 10000);
  478. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  479. pv.style.display = "none";
  480. document.body.appendChild(pv)
  481. }
  482. function _message_callback(data) {
  483. if (data.id > 0) {
  484. var css = document.createElement("link");
  485. css.href = data.css;
  486. css.rel = "stylesheet";
  487. css.type = "text/css";
  488. document.body.appendChild(css);
  489. var container = document.createElement("div");
  490. container.style.display = "block";
  491. container.id = "_popup_msg_container";
  492. container.innerHTML = data.content;
  493. document.body.appendChild(container);
  494. if (!data.no_count_click) {
  495. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  496. }
  497. var MsgPop = _message_child("_popup_msg_container", "div");
  498. if (MsgPop) {
  499. spheight = MsgPop.getAttribute("height");
  500. if (spheight) {
  501. spheight = spheight.replace("px", "");
  502. if (isNaN(spheight) == false) {
  503. _msg_pop_height = spheight
  504. }
  505. }
  506. MsgPop.style.display = "none";
  507. MsgPop.style.height = "0px"
  508. }
  509. setTimeout("_message_tips_pop('up')", 100);
  510. if (!data.no_count_view) {
  511. var pv = document.createElement("img");
  512. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  513. pv.style.display = "none";
  514. document.body.appendChild(pv)
  515. }
  516. }
  517. }
  518. function _message_get_search_args(qkey) {
  519. var args = new Object();
  520. var query = document.location.search.substring(1);
  521. var ret = "";
  522. var pairs = query.split("&");
  523. for (var i = 0; i < pairs.length; i++) {
  524. var pos = pairs[i].indexOf("=");
  525. if (pos == -1) {
  526. continue
  527. }
  528. var argname = pairs[i].substring(0, pos);
  529. var value = pairs[i].substring(pos + 1);
  530. args[argname] = unescape(value);
  531. ret = unescape(value);
  532. break
  533. }
  534. return ret
  535. }function _msg_item_click_count(id, type) {
  536. var pv = document.createElement("img");
  537. var rand = Math.ceil(Math.random() * 10000);
  538. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  539. pv.style.display = "none";
  540. document.body.appendChild(pv)
  541. }
  542. function _message_callback(data) {
  543. if (data.id > 0) {
  544. var css = document.createElement("link");
  545. css.href = data.css;
  546. css.rel = "stylesheet";
  547. css.type = "text/css";
  548. document.body.appendChild(css);
  549. var container = document.createElement("div");
  550. container.style.display = "block";
  551. container.id = "_popup_msg_container";
  552. container.innerHTML = data.content;
  553. document.body.appendChild(container);
  554. if (!data.no_count_click) {
  555. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  556. }
  557. var MsgPop = _message_child("_popup_msg_container", "div");
  558. if (MsgPop) {
  559. spheight = MsgPop.getAttribute("height");
  560. if (spheight) {
  561. spheight = spheight.replace("px", "");
  562. if (isNaN(spheight) == false) {
  563. _msg_pop_height = spheight
  564. }
  565. }
  566. MsgPop.style.display = "none";
  567. MsgPop.style.height = "0px"
  568. }
  569. setTimeout("_message_tips_pop('up')", 100);
  570. if (!data.no_count_view) {
  571. var pv = document.createElement("img");
  572. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  573. pv.style.display = "none";
  574. document.body.appendChild(pv)
  575. }
  576. }
  577. }
  578. function _message_get_search_args(qkey) {
  579. var args = new Object();
  580. var query = document.location.search.substring(1);
  581. var ret = "";
  582. var pairs = query.split("&");
  583. for (var i = 0; i < pairs.length; i++) {
  584. var pos = pairs[i].indexOf("=");
  585. if (pos == -1) {
  586. continue
  587. }
  588. var argname = pairs[i].substring(0, pos);
  589. var value = pairs[i].substring(pos + 1);
  590. args[argname] = unescape(value);
  591. ret = unescape(value);
  592. break
  593. }
  594. return ret
  595. }function _msg_item_click_count(id, type) {
  596. var pv = document.createElement("img");
  597. var rand = Math.ceil(Math.random() * 10000);
  598. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  599. pv.style.display = "none";
  600. document.body.appendChild(pv)
  601. }
  602. function _message_callback(data) {
  603. if (data.id > 0) {
  604. var css = document.createElement("link");
  605. css.href = data.css;
  606. css.rel = "stylesheet";
  607. css.type = "text/css";
  608. document.body.appendChild(css);
  609. var container = document.createElement("div");
  610. container.style.display = "block";
  611. container.id = "_popup_msg_container";
  612. container.innerHTML = data.content;
  613. document.body.appendChild(container);
  614. if (!data.no_count_click) {
  615. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  616. }
  617. var MsgPop = _message_child("_popup_msg_container", "div");
  618. if (MsgPop) {
  619. spheight = MsgPop.getAttribute("height");
  620. if (spheight) {
  621. spheight = spheight.replace("px", "");
  622. if (isNaN(spheight) == false) {
  623. _msg_pop_height = spheight
  624. }
  625. }
  626. MsgPop.style.display = "none";
  627. MsgPop.style.height = "0px"
  628. }
  629. setTimeout("_message_tips_pop('up')", 100);
  630. if (!data.no_count_view) {
  631. var pv = document.createElement("img");
  632. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  633. pv.style.display = "none";
  634. document.body.appendChild(pv)
  635. }
  636. }
  637. }
  638. function _message_get_search_args(qkey) {
  639. var args = new Object();
  640. var query = document.location.search.substring(1);
  641. var ret = "";
  642. var pairs = query.split("&");
  643. for (var i = 0; i < pairs.length; i++) {
  644. var pos = pairs[i].indexOf("=");
  645. if (pos == -1) {
  646. continue
  647. }
  648. var argname = pairs[i].substring(0, pos);
  649. var value = pairs[i].substring(pos + 1);
  650. args[argname] = unescape(value);
  651. ret = unescape(value);
  652. break
  653. }
  654. return ret
  655. }function _msg_item_click_count(id, type) {
  656. var pv = document.createElement("img");
  657. var rand = Math.ceil(Math.random() * 10000);
  658. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  659. pv.style.display = "none";
  660. document.body.appendChild(pv)
  661. }
  662. function _message_callback(data) {
  663. if (data.id > 0) {
  664. var css = document.createElement("link");
  665. css.href = data.css;
  666. css.rel = "stylesheet";
  667. css.type = "text/css";
  668. document.body.appendChild(css);
  669. var container = document.createElement("div");
  670. container.style.display = "block";
  671. container.id = "_popup_msg_container";
  672. container.innerHTML = data.content;
  673. document.body.appendChild(container);
  674. if (!data.no_count_click) {
  675. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  676. }
  677. var MsgPop = _message_child("_popup_msg_container", "div");
  678. if (MsgPop) {
  679. spheight = MsgPop.getAttribute("height");
  680. if (spheight) {
  681. spheight = spheight.replace("px", "");
  682. if (isNaN(spheight) == false) {
  683. _msg_pop_height = spheight
  684. }
  685. }
  686. MsgPop.style.display = "none";
  687. MsgPop.style.height = "0px"
  688. }
  689. setTimeout("_message_tips_pop('up')", 100);
  690. if (!data.no_count_view) {
  691. var pv = document.createElement("img");
  692. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  693. pv.style.display = "none";
  694. document.body.appendChild(pv)
  695. }
  696. }
  697. }
  698. function _message_get_search_args(qkey) {
  699. var args = new Object();
  700. var query = document.location.search.substring(1);
  701. var ret = "";
  702. var pairs = query.split("&");
  703. for (var i = 0; i < pairs.length; i++) {
  704. var pos = pairs[i].indexOf("=");
  705. if (pos == -1) {
  706. continue
  707. }
  708. var argname = pairs[i].substring(0, pos);
  709. var value = pairs[i].substring(pos + 1);
  710. args[argname] = unescape(value);
  711. ret = unescape(value);
  712. break
  713. }
  714. return ret
  715. }function _msg_item_click_count(id, type) {
  716. var pv = document.createElement("img");
  717. var rand = Math.ceil(Math.random() * 10000);
  718. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  719. pv.style.display = "none";
  720. document.body.appendChild(pv)
  721. }
  722. function _message_callback(data) {
  723. if (data.id > 0) {
  724. var css = document.createElement("link");
  725. css.href = data.css;
  726. css.rel = "stylesheet";
  727. css.type = "text/css";
  728. document.body.appendChild(css);
  729. var container = document.createElement("div");
  730. container.style.display = "block";
  731. container.id = "_popup_msg_container";
  732. container.innerHTML = data.content;
  733. document.body.appendChild(container);
  734. if (!data.no_count_click) {
  735. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  736. }
  737. var MsgPop = _message_child("_popup_msg_container", "div");
  738. if (MsgPop) {
  739. spheight = MsgPop.getAttribute("height");
  740. if (spheight) {
  741. spheight = spheight.replace("px", "");
  742. if (isNaN(spheight) == false) {
  743. _msg_pop_height = spheight
  744. }
  745. }
  746. MsgPop.style.display = "none";
  747. MsgPop.style.height = "0px"
  748. }
  749. setTimeout("_message_tips_pop('up')", 100);
  750. if (!data.no_count_view) {
  751. var pv = document.createElement("img");
  752. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  753. pv.style.display = "none";
  754. document.body.appendChild(pv)
  755. }
  756. }
  757. }
  758. function _message_get_search_args(qkey) {
  759. var args = new Object();
  760. var query = document.location.search.substring(1);
  761. var ret = "";
  762. var pairs = query.split("&");
  763. for (var i = 0; i < pairs.length; i++) {
  764. var pos = pairs[i].indexOf("=");
  765. if (pos == -1) {
  766. continue
  767. }
  768. var argname = pairs[i].substring(0, pos);
  769. var value = pairs[i].substring(pos + 1);
  770. args[argname] = unescape(value);
  771. ret = unescape(value);
  772. break
  773. }
  774. return ret
  775. }function _msg_item_click_count(id, type) {
  776. var pv = document.createElement("img");
  777. var rand = Math.ceil(Math.random() * 10000);
  778. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  779. pv.style.display = "none";
  780. document.body.appendChild(pv)
  781. }
  782. function _message_callback(data) {
  783. if (data.id > 0) {
  784. var css = document.createElement("link");
  785. css.href = data.css;
  786. css.rel = "stylesheet";
  787. css.type = "text/css";
  788. document.body.appendChild(css);
  789. var container = document.createElement("div");
  790. container.style.display = "block";
  791. container.id = "_popup_msg_container";
  792. container.innerHTML = data.content;
  793. document.body.appendChild(container);
  794. if (!data.no_count_click) {
  795. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  796. }
  797. var MsgPop = _message_child("_popup_msg_container", "div");
  798. if (MsgPop) {
  799. spheight = MsgPop.getAttribute("height");
  800. if (spheight) {
  801. spheight = spheight.replace("px", "");
  802. if (isNaN(spheight) == false) {
  803. _msg_pop_height = spheight
  804. }
  805. }
  806. MsgPop.style.display = "none";
  807. MsgPop.style.height = "0px"
  808. }
  809. setTimeout("_message_tips_pop('up')", 100);
  810. if (!data.no_count_view) {
  811. var pv = document.createElement("img");
  812. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  813. pv.style.display = "none";
  814. document.body.appendChild(pv)
  815. }
  816. }
  817. }
  818. function _message_get_search_args(qkey) {
  819. var args = new Object();
  820. var query = document.location.search.substring(1);
  821. var ret = "";
  822. var pairs = query.split("&");
  823. for (var i = 0; i < pairs.length; i++) {
  824. var pos = pairs[i].indexOf("=");
  825. if (pos == -1) {
  826. continue
  827. }
  828. var argname = pairs[i].substring(0, pos);
  829. var value = pairs[i].substring(pos + 1);
  830. args[argname] = unescape(value);
  831. ret = unescape(value);
  832. break
  833. }
  834. return ret
  835. }function _msg_item_click_count(id, type) {
  836. var pv = document.createElement("img");
  837. var rand = Math.ceil(Math.random() * 10000);
  838. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  839. pv.style.display = "none";
  840. document.body.appendChild(pv)
  841. }
  842. function _message_callback(data) {
  843. if (data.id > 0) {
  844. var css = document.createElement("link");
  845. css.href = data.css;
  846. css.rel = "stylesheet";
  847. css.type = "text/css";
  848. document.body.appendChild(css);
  849. var container = document.createElement("div");
  850. container.style.display = "block";
  851. container.id = "_popup_msg_container";
  852. container.innerHTML = data.content;
  853. document.body.appendChild(container);
  854. if (!data.no_count_click) {
  855. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  856. }
  857. var MsgPop = _message_child("_popup_msg_container", "div");
  858. if (MsgPop) {
  859. spheight = MsgPop.getAttribute("height");
  860. if (spheight) {
  861. spheight = spheight.replace("px", "");
  862. if (isNaN(spheight) == false) {
  863. _msg_pop_height = spheight
  864. }
  865. }
  866. MsgPop.style.display = "none";
  867. MsgPop.style.height = "0px"
  868. }
  869. setTimeout("_message_tips_pop('up')", 100);
  870. if (!data.no_count_view) {
  871. var pv = document.createElement("img");
  872. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  873. pv.style.display = "none";
  874. document.body.appendChild(pv)
  875. }
  876. }
  877. }
  878. function _message_get_search_args(qkey) {
  879. var args = new Object();
  880. var query = document.location.search.substring(1);
  881. var ret = "";
  882. var pairs = query.split("&");
  883. for (var i = 0; i < pairs.length; i++) {
  884. var pos = pairs[i].indexOf("=");
  885. if (pos == -1) {
  886. continue
  887. }
  888. var argname = pairs[i].substring(0, pos);
  889. var value = pairs[i].substring(pos + 1);
  890. args[argname] = unescape(value);
  891. ret = unescape(value);
  892. break
  893. }
  894. return ret
  895. }function _msg_item_click_count(id, type) {
  896. var pv = document.createElement("img");
  897. var rand = Math.ceil(Math.random() * 10000);
  898. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  899. pv.style.display = "none";
  900. document.body.appendChild(pv)
  901. }
  902. function _message_callback(data) {
  903. if (data.id > 0) {
  904. var css = document.createElement("link");
  905. css.href = data.css;
  906. css.rel = "stylesheet";
  907. css.type = "text/css";
  908. document.body.appendChild(css);
  909. var container = document.createElement("div");
  910. container.style.display = "block";
  911. container.id = "_popup_msg_container";
  912. container.innerHTML = data.content;
  913. document.body.appendChild(container);
  914. if (!data.no_count_click) {
  915. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  916. }
  917. var MsgPop = _message_child("_popup_msg_container", "div");
  918. if (MsgPop) {
  919. spheight = MsgPop.getAttribute("height");
  920. if (spheight) {
  921. spheight = spheight.replace("px", "");
  922. if (isNaN(spheight) == false) {
  923. _msg_pop_height = spheight
  924. }
  925. }
  926. MsgPop.style.display = "none";
  927. MsgPop.style.height = "0px"
  928. }
  929. setTimeout("_message_tips_pop('up')", 100);
  930. if (!data.no_count_view) {
  931. var pv = document.createElement("img");
  932. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  933. pv.style.display = "none";
  934. document.body.appendChild(pv)
  935. }
  936. }
  937. }
  938. function _message_get_search_args(qkey) {
  939. var args = new Object();
  940. var query = document.location.search.substring(1);
  941. var ret = "";
  942. var pairs = query.split("&");
  943. for (var i = 0; i < pairs.length; i++) {
  944. var pos = pairs[i].indexOf("=");
  945. if (pos == -1) {
  946. continue
  947. }
  948. var argname = pairs[i].substring(0, pos);
  949. var value = pairs[i].substring(pos + 1);
  950. args[argname] = unescape(value);
  951. ret = unescape(value);
  952. break
  953. }
  954. return ret
  955. }function _msg_item_click_count(id, type) {
  956. var pv = document.createElement("img");
  957. var rand = Math.ceil(Math.random() * 10000);
  958. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  959. pv.style.display = "none";
  960. document.body.appendChild(pv)
  961. }
  962. function _message_callback(data) {
  963. if (data.id > 0) {
  964. var css = document.createElement("link");
  965. css.href = data.css;
  966. css.rel = "stylesheet";
  967. css.type = "text/css";
  968. document.body.appendChild(css);
  969. var container = document.createElement("div");
  970. container.style.display = "block";
  971. container.id = "_popup_msg_container";
  972. container.innerHTML = data.content;
  973. document.body.appendChild(container);
  974. if (!data.no_count_click) {
  975. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  976. }
  977. var MsgPop = _message_child("_popup_msg_container", "div");
  978. if (MsgPop) {
  979. spheight = MsgPop.getAttribute("height");
  980. if (spheight) {
  981. spheight = spheight.replace("px", "");
  982. if (isNaN(spheight) == false) {
  983. _msg_pop_height = spheight
  984. }
  985. }
  986. MsgPop.style.display = "none";
  987. MsgPop.style.height = "0px"
  988. }
  989. setTimeout("_message_tips_pop('up')", 100);
  990. if (!data.no_count_view) {
  991. var pv = document.createElement("img");
  992. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  993. pv.style.display = "none";
  994. document.body.appendChild(pv)
  995. }
  996. }
  997. }
  998. function _message_get_search_args(qkey) {
  999. var args = new Object();
  1000. var query = document.location.search.substring(1);
  1001. var ret = "";
  1002. var pairs = query.split("&");
  1003. for (var i = 0; i < pairs.length; i++) {
  1004. var pos = pairs[i].indexOf("=");
  1005. if (pos == -1) {
  1006. continue
  1007. }
  1008. var argname = pairs[i].substring(0, pos);
  1009. var value = pairs[i].substring(pos + 1);
  1010. args[argname] = unescape(value);
  1011. ret = unescape(value);
  1012. break
  1013. }
  1014. return ret
  1015. }function _msg_item_click_count(id, type) {
  1016. var pv = document.createElement("img");
  1017. var rand = Math.ceil(Math.random() * 10000);
  1018. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  1019. pv.style.display = "none";
  1020. document.body.appendChild(pv)
  1021. }
  1022. function _message_callback(data) {
  1023. if (data.id > 0) {
  1024. var css = document.createElement("link");
  1025. css.href = data.css;
  1026. css.rel = "stylesheet";
  1027. css.type = "text/css";
  1028. document.body.appendChild(css);
  1029. var container = document.createElement("div");
  1030. container.style.display = "block";
  1031. container.id = "_popup_msg_container";
  1032. container.innerHTML = data.content;
  1033. document.body.appendChild(container);
  1034. if (!data.no_count_click) {
  1035. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  1036. }
  1037. var MsgPop = _message_child("_popup_msg_container", "div");
  1038. if (MsgPop) {
  1039. spheight = MsgPop.getAttribute("height");
  1040. if (spheight) {
  1041. spheight = spheight.replace("px", "");
  1042. if (isNaN(spheight) == false) {
  1043. _msg_pop_height = spheight
  1044. }
  1045. }
  1046. MsgPop.style.display = "none";
  1047. MsgPop.style.height = "0px"
  1048. }
  1049. setTimeout("_message_tips_pop('up')", 100);
  1050. if (!data.no_count_view) {
  1051. var pv = document.createElement("img");
  1052. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  1053. pv.style.display = "none";
  1054. document.body.appendChild(pv)
  1055. }
  1056. }
  1057. }
  1058. function _message_get_search_args(qkey) {
  1059. var args = new Object();
  1060. var query = document.location.search.substring(1);
  1061. var ret = "";
  1062. var pairs = query.split("&");
  1063. for (var i = 0; i < pairs.length; i++) {
  1064. var pos = pairs[i].indexOf("=");
  1065. if (pos == -1) {
  1066. continue
  1067. }
  1068. var argname = pairs[i].substring(0, pos);
  1069. var value = pairs[i].substring(pos + 1);
  1070. args[argname] = unescape(value);
  1071. ret = unescape(value);
  1072. break
  1073. }
  1074. return ret
  1075. }function _msg_item_click_count(id, type) {
  1076. var pv = document.createElement("img");
  1077. var rand = Math.ceil(Math.random() * 10000);
  1078. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  1079. pv.style.display = "none";
  1080. document.body.appendChild(pv)
  1081. }
  1082. function _message_callback(data) {
  1083. if (data.id > 0) {
  1084. var css = document.createElement("link");
  1085. css.href = data.css;
  1086. css.rel = "stylesheet";
  1087. css.type = "text/css";
  1088. document.body.appendChild(css);
  1089. var container = document.createElement("div");
  1090. container.style.display = "block";
  1091. container.id = "_popup_msg_container";
  1092. container.innerHTML = data.content;
  1093. document.body.appendChild(container);
  1094. if (!data.no_count_click) {
  1095. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  1096. }
  1097. var MsgPop = _message_child("_popup_msg_container", "div");
  1098. if (MsgPop) {
  1099. spheight = MsgPop.getAttribute("height");
  1100. if (spheight) {
  1101. spheight = spheight.replace("px", "");
  1102. if (isNaN(spheight) == false) {
  1103. _msg_pop_height = spheight
  1104. }
  1105. }
  1106. MsgPop.style.display = "none";
  1107. MsgPop.style.height = "0px"
  1108. }
  1109. setTimeout("_message_tips_pop('up')", 100);
  1110. if (!data.no_count_view) {
  1111. var pv = document.createElement("img");
  1112. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  1113. pv.style.display = "none";
  1114. document.body.appendChild(pv)
  1115. }
  1116. }
  1117. }
  1118. function _message_get_search_args(qkey) {
  1119. var args = new Object();
  1120. var query = document.location.search.substring(1);
  1121. var ret = "";
  1122. var pairs = query.split("&");
  1123. for (var i = 0; i < pairs.length; i++) {
  1124. var pos = pairs[i].indexOf("=");
  1125. if (pos == -1) {
  1126. continue
  1127. }
  1128. var argname = pairs[i].substring(0, pos);
  1129. var value = pairs[i].substring(pos + 1);
  1130. args[argname] = unescape(value);
  1131. ret = unescape(value);
  1132. break
  1133. }
  1134. return ret
  1135. }function _msg_item_click_count(id, type) {
  1136. var pv = document.createElement("img");
  1137. var rand = Math.ceil(Math.random() * 10000);
  1138. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  1139. pv.style.display = "none";
  1140. document.body.appendChild(pv)
  1141. }
  1142. function _message_callback(data) {
  1143. if (data.id > 0) {
  1144. var css = document.createElement("link");
  1145. css.href = data.css;
  1146. css.rel = "stylesheet";
  1147. css.type = "text/css";
  1148. document.body.appendChild(css);
  1149. var container = document.createElement("div");
  1150. container.style.display = "block";
  1151. container.id = "_popup_msg_container";
  1152. container.innerHTML = data.content;
  1153. document.body.appendChild(container);
  1154. if (!data.no_count_click) {
  1155. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  1156. }
  1157. var MsgPop = _message_child("_popup_msg_container", "div");
  1158. if (MsgPop) {
  1159. spheight = MsgPop.getAttribute("height");
  1160. if (spheight) {
  1161. spheight = spheight.replace("px", "");
  1162. if (isNaN(spheight) == false) {
  1163. _msg_pop_height = spheight
  1164. }
  1165. }
  1166. MsgPop.style.display = "none";
  1167. MsgPop.style.height = "0px"
  1168. }
  1169. setTimeout("_message_tips_pop('up')", 100);
  1170. if (!data.no_count_view) {
  1171. var pv = document.createElement("img");
  1172. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  1173. pv.style.display = "none";
  1174. document.body.appendChild(pv)
  1175. }
  1176. }
  1177. }
  1178. function _message_get_search_args(qkey) {
  1179. var args = new Object();
  1180. var query = document.location.search.substring(1);
  1181. var ret = "";
  1182. var pairs = query.split("&");
  1183. for (var i = 0; i < pairs.length; i++) {
  1184. var pos = pairs[i].indexOf("=");
  1185. if (pos == -1) {
  1186. continue
  1187. }
  1188. var argname = pairs[i].substring(0, pos);
  1189. var value = pairs[i].substring(pos + 1);
  1190. args[argname] = unescape(value);
  1191. ret = unescape(value);
  1192. break
  1193. }
  1194. return ret
  1195. }function _msg_item_click_count(id, type) {
  1196. var pv = document.createElement("img");
  1197. var rand = Math.ceil(Math.random() * 10000);
  1198. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  1199. pv.style.display = "none";
  1200. document.body.appendChild(pv)
  1201. }
  1202. function _message_callback(data) {
  1203. if (data.id > 0) {
  1204. var css = document.createElement("link");
  1205. css.href = data.css;
  1206. css.rel = "stylesheet";
  1207. css.type = "text/css";
  1208. document.body.appendChild(css);
  1209. var container = document.createElement("div");
  1210. container.style.display = "block";
  1211. container.id = "_popup_msg_container";
  1212. container.innerHTML = data.content;
  1213. document.body.appendChild(container);
  1214. if (!data.no_count_click) {
  1215. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  1216. }
  1217. var MsgPop = _message_child("_popup_msg_container", "div");
  1218. if (MsgPop) {
  1219. spheight = MsgPop.getAttribute("height");
  1220. if (spheight) {
  1221. spheight = spheight.replace("px", "");
  1222. if (isNaN(spheight) == false) {
  1223. _msg_pop_height = spheight
  1224. }
  1225. }
  1226. MsgPop.style.display = "none";
  1227. MsgPop.style.height = "0px"
  1228. }
  1229. setTimeout("_message_tips_pop('up')", 100);
  1230. if (!data.no_count_view) {
  1231. var pv = document.createElement("img");
  1232. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  1233. pv.style.display = "none";
  1234. document.body.appendChild(pv)
  1235. }
  1236. }
  1237. }
  1238. function _message_get_search_args(qkey) {
  1239. var args = new Object();
  1240. var query = document.location.search.substring(1);
  1241. var ret = "";
  1242. var pairs = query.split("&");
  1243. for (var i = 0; i < pairs.length; i++) {
  1244. var pos = pairs[i].indexOf("=");
  1245. if (pos == -1) {
  1246. continue
  1247. }
  1248. var argname = pairs[i].substring(0, pos);
  1249. var value = pairs[i].substring(pos + 1);
  1250. args[argname] = unescape(value);
  1251. ret = unescape(value);
  1252. break
  1253. }
  1254. return ret
  1255. }function _msg_item_click_count(id, type) {
  1256. var pv = document.createElement("img");
  1257. var rand = Math.ceil(Math.random() * 10000);
  1258. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  1259. pv.style.display = "none";
  1260. document.body.appendChild(pv)
  1261. }
  1262. function _message_callback(data) {
  1263. if (data.id > 0) {
  1264. var css = document.createElement("link");
  1265. css.href = data.css;
  1266. css.rel = "stylesheet";
  1267. css.type = "text/css";
  1268. document.body.appendChild(css);
  1269. var container = document.createElement("div");
  1270. container.style.display = "block";
  1271. container.id = "_popup_msg_container";
  1272. container.innerHTML = data.content;
  1273. document.body.appendChild(container);
  1274. if (!data.no_count_click) {
  1275. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  1276. }
  1277. var MsgPop = _message_child("_popup_msg_container", "div");
  1278. if (MsgPop) {
  1279. spheight = MsgPop.getAttribute("height");
  1280. if (spheight) {
  1281. spheight = spheight.replace("px", "");
  1282. if (isNaN(spheight) == false) {
  1283. _msg_pop_height = spheight
  1284. }
  1285. }
  1286. MsgPop.style.display = "none";
  1287. MsgPop.style.height = "0px"
  1288. }
  1289. setTimeout("_message_tips_pop('up')", 100);
  1290. if (!data.no_count_view) {
  1291. var pv = document.createElement("img");
  1292. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  1293. pv.style.display = "none";
  1294. document.body.appendChild(pv)
  1295. }
  1296. }
  1297. }
  1298. function _message_get_search_args(qkey) {
  1299. var args = new Object();
  1300. var query = document.location.search.substring(1);
  1301. var ret = "";
  1302. var pairs = query.split("&");
  1303. for (var i = 0; i < pairs.length; i++) {
  1304. var pos = pairs[i].indexOf("=");
  1305. if (pos == -1) {
  1306. continue
  1307. }
  1308. var argname = pairs[i].substring(0, pos);
  1309. var value = pairs[i].substring(pos + 1);
  1310. args[argname] = unescape(value);
  1311. ret = unescape(value);
  1312. break
  1313. }
  1314. return ret
  1315. }function _msg_item_click_count(id, type) {
  1316. var pv = document.createElement("img");
  1317. var rand = Math.ceil(Math.random() * 10000);
  1318. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  1319. pv.style.display = "none";
  1320. document.body.appendChild(pv)
  1321. }
  1322. function _message_callback(data) {
  1323. if (data.id > 0) {
  1324. var css = document.createElement("link");
  1325. css.href = data.css;
  1326. css.rel = "stylesheet";
  1327. css.type = "text/css";
  1328. document.body.appendChild(css);
  1329. var container = document.createElement("div");
  1330. container.style.display = "block";
  1331. container.id = "_popup_msg_container";
  1332. container.innerHTML = data.content;
  1333. document.body.appendChild(container);
  1334. if (!data.no_count_click) {
  1335. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  1336. }
  1337. var MsgPop = _message_child("_popup_msg_container", "div");
  1338. if (MsgPop) {
  1339. spheight = MsgPop.getAttribute("height");
  1340. if (spheight) {
  1341. spheight = spheight.replace("px", "");
  1342. if (isNaN(spheight) == false) {
  1343. _msg_pop_height = spheight
  1344. }
  1345. }
  1346. MsgPop.style.display = "none";
  1347. MsgPop.style.height = "0px"
  1348. }
  1349. setTimeout("_message_tips_pop('up')", 100);
  1350. if (!data.no_count_view) {
  1351. var pv = document.createElement("img");
  1352. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  1353. pv.style.display = "none";
  1354. document.body.appendChild(pv)
  1355. }
  1356. }
  1357. }
  1358. function _message_get_search_args(qkey) {
  1359. var args = new Object();
  1360. var query = document.location.search.substring(1);
  1361. var ret = "";
  1362. var pairs = query.split("&");
  1363. for (var i = 0; i < pairs.length; i++) {
  1364. var pos = pairs[i].indexOf("=");
  1365. if (pos == -1) {
  1366. continue
  1367. }
  1368. var argname = pairs[i].substring(0, pos);
  1369. var value = pairs[i].substring(pos + 1);
  1370. args[argname] = unescape(value);
  1371. ret = unescape(value);
  1372. break
  1373. }
  1374. return ret
  1375. }function _msg_item_click_count(id, type) {
  1376. var pv = document.createElement("img");
  1377. var rand = Math.ceil(Math.random() * 10000);
  1378. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  1379. pv.style.display = "none";
  1380. document.body.appendChild(pv)
  1381. }
  1382. function _message_callback(data) {
  1383. if (data.id > 0) {
  1384. var css = document.createElement("link");
  1385. css.href = data.css;
  1386. css.rel = "stylesheet";
  1387. css.type = "text/css";
  1388. document.body.appendChild(css);
  1389. var container = document.createElement("div");
  1390. container.style.display = "block";
  1391. container.id = "_popup_msg_container";
  1392. container.innerHTML = data.content;
  1393. document.body.appendChild(container);
  1394. if (!data.no_count_click) {
  1395. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  1396. }
  1397. var MsgPop = _message_child("_popup_msg_container", "div");
  1398. if (MsgPop) {
  1399. spheight = MsgPop.getAttribute("height");
  1400. if (spheight) {
  1401. spheight = spheight.replace("px", "");
  1402. if (isNaN(spheight) == false) {
  1403. _msg_pop_height = spheight
  1404. }
  1405. }
  1406. MsgPop.style.display = "none";
  1407. MsgPop.style.height = "0px"
  1408. }
  1409. setTimeout("_message_tips_pop('up')", 100);
  1410. if (!data.no_count_view) {
  1411. var pv = document.createElement("img");
  1412. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  1413. pv.style.display = "none";
  1414. document.body.appendChild(pv)
  1415. }
  1416. }
  1417. }
  1418. function _message_get_search_args(qkey) {
  1419. var args = new Object();
  1420. var query = document.location.search.substring(1);
  1421. var ret = "";
  1422. var pairs = query.split("&");
  1423. for (var i = 0; i < pairs.length; i++) {
  1424. var pos = pairs[i].indexOf("=");
  1425. if (pos == -1) {
  1426. continue
  1427. }
  1428. var argname = pairs[i].substring(0, pos);
  1429. var value = pairs[i].substring(pos + 1);
  1430. args[argname] = unescape(value);
  1431. ret = unescape(value);
  1432. break
  1433. }
  1434. return ret
  1435. }function _msg_item_click_count(id, type) {
  1436. var pv = document.createElement("img");
  1437. var rand = Math.ceil(Math.random() * 10000);
  1438. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  1439. pv.style.display = "none";
  1440. document.body.appendChild(pv)
  1441. }
  1442. function _message_callback(data) {
  1443. if (data.id > 0) {
  1444. var css = document.createElement("link");
  1445. css.href = data.css;
  1446. css.rel = "stylesheet";
  1447. css.type = "text/css";
  1448. document.body.appendChild(css);
  1449. var container = document.createElement("div");
  1450. container.style.display = "block";
  1451. container.id = "_popup_msg_container";
  1452. container.innerHTML = data.content;
  1453. document.body.appendChild(container);
  1454. if (!data.no_count_click) {
  1455. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  1456. }
  1457. var MsgPop = _message_child("_popup_msg_container", "div");
  1458. if (MsgPop) {
  1459. spheight = MsgPop.getAttribute("height");
  1460. if (spheight) {
  1461. spheight = spheight.replace("px", "");
  1462. if (isNaN(spheight) == false) {
  1463. _msg_pop_height = spheight
  1464. }
  1465. }
  1466. MsgPop.style.display = "none";
  1467. MsgPop.style.height = "0px"
  1468. }
  1469. setTimeout("_message_tips_pop('up')", 100);
  1470. if (!data.no_count_view) {
  1471. var pv = document.createElement("img");
  1472. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  1473. pv.style.display = "none";
  1474. document.body.appendChild(pv)
  1475. }
  1476. }
  1477. }
  1478. function _message_get_search_args(qkey) {
  1479. var args = new Object();
  1480. var query = document.location.search.substring(1);
  1481. var ret = "";
  1482. var pairs = query.split("&");
  1483. for (var i = 0; i < pairs.length; i++) {
  1484. var pos = pairs[i].indexOf("=");
  1485. if (pos == -1) {
  1486. continue
  1487. }
  1488. var argname = pairs[i].substring(0, pos);
  1489. var value = pairs[i].substring(pos + 1);
  1490. args[argname] = unescape(value);
  1491. ret = unescape(value);
  1492. break
  1493. }
  1494. return ret
  1495. }function _msg_item_click_count(id, type) {
  1496. var pv = document.createElement("img");
  1497. var rand = Math.ceil(Math.random() * 10000);
  1498. pv.src = "http://" + _msg_server + "/shm/count_click.php?id=" + id + "&t=" + type + "#" + rand;
  1499. pv.style.display = "none";
  1500. document.body.appendChild(pv)
  1501. }
  1502. function _message_callback(data) {
  1503. if (data.id > 0) {
  1504. var css = document.createElement("link");
  1505. css.href = data.css;
  1506. css.rel = "stylesheet";
  1507. css.type = "text/css";
  1508. document.body.appendChild(css);
  1509. var container = document.createElement("div");
  1510. container.style.display = "block";
  1511. container.id = "_popup_msg_container";
  1512. container.innerHTML = data.content;
  1513. document.body.appendChild(container);
  1514. if (!data.no_count_click) {
  1515. _message_child_attr_add("_popup_msg_container", data.id, data.types)
  1516. }
  1517. var MsgPop = _message_child("_popup_msg_container", "div");
  1518. if (MsgPop) {
  1519. spheight = MsgPop.getAttribute("height");
  1520. if (spheight) {
  1521. spheight = spheight.replace("px", "");
  1522. if (isNaN(spheight) == false) {
  1523. _msg_pop_height = spheight
  1524. }
  1525. }
  1526. MsgPop.style.display = "none";
  1527. MsgPop.style.height = "0px"
  1528. }
  1529. setTimeout("_message_tips_pop('up')", 100);
  1530. if (!data.no_count_view) {
  1531. var pv = document.createElement("img");
  1532. pv.src = "http://" + _msg_server + "/shm/count_new.php?id=" + data.id + "&t=" + data.types;
  1533. pv.style.display = "none";
  1534. document.body.appendChild(pv)
  1535. }
  1536. }
  1537. }
  1538. function _message_get_search_args(qkey) {
  1539. var args = new Object();
  1540. var query = document.location.search.substring(1);
  1541. var ret = "";
  1542. var pairs = query.split("&");
  1543. for (var i = 0; i < pairs.length; i++) {
  1544. var pos = pairs[i].indexOf("=");
  1545. if (pos == -1) {
  1546. continue
  1547. }
  1548. var argname = pairs[i].substring(0, pos);
  1549. var value = pairs[i].substring(pos + 1);
  1550. args[argname] = unescape(value);
  1551. ret = unescape(value);
  1552. break
  1553. }
  1554. return ret
  1555. }
  1556. var _msg_server = "message.csdn.net";
  1557. if (_message_get_search_args("_msg_local") == 1) {
  1558. _msg_server = "local.message.csdn.net"
  1559. }
  1560. var p = "1=1";
  1561. if (window.location.search.indexOf("?") > -1) {
  1562. var p = window.location.search.substring(1)
  1563. }
  1564. window.onload = function() {
  1565. _message_callScript("http://" + _msg_server + "/shm/msg_new.php?" + p + "&jsoncallback=_message_callback")
  1566. };
  1567. }
  1568. var _m_p__un = document.cookie.match(new RegExp("(^| )UserName=([^;]*)(;|$)"));
  1569. if (_m_p__un)
  1570. {
  1571. _gaq.push(['_setCustomVar',1,'User Type','Member',2]);
  1572. }else
  1573. {
  1574. _gaq.push(['_setCustomVar',1,'User Type','Visitor',2]);
  1575. }