list.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /**
  2. * Created by lenovo on 2017/5/4.
  3. */
  4. var xX =1;
  5. function xinXO(){
  6. var weihu=document.getElementById("weihu");
  7. var xinBox=document.getElementById("xinBox");
  8. if (xX == 1){
  9. weihu.style.color="red";
  10. xinBox.style.display="block";
  11. xX=0;
  12. } else{
  13. weihu.style.color="#0064cd";
  14. xinBox.style.display="none";
  15. xX=1
  16. }
  17. }
  18. // ��Ϣά���б�չ���¼�����
  19. // ����չ���¼���ʼ
  20. //��ʼֵ��һ��
  21. var xX1 =1;
  22. function xinXO1(){
  23. var weihu1=document.getElementById("weihu1");
  24. var xinBox1=document.getElementById("xinBox1");
  25. if (xX1 == 1){
  26. weihu1.style.color="red";
  27. xinBox1.style.display="block";
  28. xX1=0;
  29. } else{
  30. weihu1.style.color="#0064cd";
  31. xinBox1.style.display="none";
  32. xX1=1
  33. }
  34. }
  35. var xX1 =1;
  36. function xinXO2(){
  37. var weihu2=document.getElementById("weihu2");
  38. var xinBox2=document.getElementById("xinBox2");
  39. if (xX1 == 1){
  40. weihu2.style.color="red";
  41. xinBox2.style.display="block";
  42. xX1=0;
  43. } else{
  44. weihu2.style.color="#0064cd";
  45. xinBox2.style.display="none";
  46. xX1=1
  47. }
  48. }
  49. var xX1 =1;
  50. function xinXO3(){
  51. var weihu3=document.getElementById("weihu3");
  52. var xinBox3=document.getElementById("xinBox3");
  53. if (xX1 == 1){
  54. weihu3.style.color="red";
  55. xinBox3.style.display="block";
  56. xX1=0;
  57. } else{
  58. weihu3.style.color="#0064cd";
  59. xinBox3.style.display="none";
  60. xX1=1
  61. }
  62. }
  63. function del(){
  64. $("#box").show();
  65. }
  66. function delListPage(str){
  67. //console.info(str);
  68. $("div[name='box']").eq(str).show();
  69. }
  70. function adopt(){
  71. $("#box1").show();
  72. }
  73. function yes(){
  74. $("#box").hide();
  75. }
  76. function no(){
  77. $("#box").hide();
  78. }
  79. function noListPage(obj){
  80. var _tDiv = $(obj).parent();
  81. $(_tDiv).hide();
  82. //console.info(_tDiv);
  83. }
  84. function yes1(){
  85. $("#box1").hide();
  86. }
  87. function no1(){
  88. $("#box1").hide();
  89. }