You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
2.6 KiB

8 years ago
8 years ago
8 years ago
  1. function count_js(){document.writeln("");}
  2. function itopjs(){document.writeln("<img width=960px height=90px src=\"http://www.lqycms.com/images/banner.gif\">");}
  3. function tjs(){document.writeln("<img width=960px height=90px src=\"http://www.lqycms.com/images/banner.gif\">");}
  4. function navjs(){document.writeln("");}
  5. function site(){document.writeln("");}
  6. function djs1(){document.writeln("");}
  7. function djs2(){document.writeln("");}
  8. function djs3(aid){document.writeln('');}
  9. function djs4(){document.writeln("");}
  10. function djs5(){document.writeln("");}
  11. function djs6(){document.writeln("");}
  12. function m_djs3(){document.writeln("");}
  13. function rjs1(){document.writeln("");}
  14. function rjs2(){document.writeln("");}
  15. function rjs3(){document.writeln("");}
  16. function ljs1(){document.writeln('');}
  17. function ljs2(){document.writeln("");}
  18. function ijs1(){document.writeln('<img src="/images/irad.gif">');}
  19. function ijs2(){document.writeln("");}
  20. function ijs3(){document.writeln("");}
  21. function r1(){document.writeln("");}
  22. function r2(){document.writeln("<a rel=\"nofollow\" href=\"http://www.lqycms.com/cat1/\" class=\"more\">换一换<\/a>");}
  23. function IsPC(){
  24. var userAgentInfo = navigator.userAgent;
  25. var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone" ,"ios","webOS","WindowsPhone","BlackBerry","NOKIA","SAMSUNG","LG","LENOVO");
  26. var flag = true;
  27. for (var v = 0; v < Agents.length; v++) {
  28. if (userAgentInfo.indexOf(Agents[v]) > 0) {flag = false; break;}
  29. }
  30. return flag;
  31. }
  32. function uaredirect(murl){
  33. if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|WindowsPhone|Windows Phone)/i))) {
  34. location.replace(murl);
  35. }
  36. }
  37. function reBlank(){
  38. if(IsPC()){}else{
  39. var a=document.getElementsByTagName("a");
  40. for(var i=0;i<a.length;i++){
  41. if (a[i].getAttribute("target")) {
  42. a[i].setAttribute("target","_self");
  43. }
  44. }
  45. }
  46. }
  47. //打印对象
  48. function alertObj(obj)
  49. {
  50. var output = "";
  51. for(var i in obj){
  52. var property=obj[i];
  53. output+=i+" = "+property+"\n";
  54. }
  55. alert(output);
  56. }
  57. //根据id删除div
  58. function closediv(divid)
  59. {
  60. $(divid).remove();
  61. }
  62. //删除确认框
  63. function delconfirm(url)
  64. {
  65. if(confirm("确定删除吗"))
  66. {
  67. location.href= url;
  68. }
  69. else
  70. {
  71. }
  72. }
  73. //复选框反选
  74. function selAll(arcID)
  75. {
  76. var checkboxs=document.getElementsByName(arcID);
  77. for (var i=0;i<checkboxs.length;i++)
  78. {
  79. var e=checkboxs[i];
  80. e.checked=!e.checked;
  81. }
  82. }
  83. //获取选中的复选框的值
  84. function getItems(arcID)
  85. {
  86. if(!arcID){arcID='arcID';}
  87. var checkboxs=document.getElementsByName(arcID);
  88. var value = new Array();
  89. for(var i = 0; i < checkboxs.length; i++)
  90. {
  91. if(checkboxs[i].checked) value.push(checkboxs[i].value);
  92. }
  93. return value;
  94. }