detail.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * Created by duhuan on 2017/9/1.
  3. */
  4. function getPic(){
  5. var xmlhttp;
  6. if(window.XMLHttpRequest){
  7. xmlhttp = new XMLHttpRequest();
  8. }
  9. else{
  10. // IE6, IE5 浏览器执行代码
  11. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  12. }
  13. xmlhttp.onreadystatechange = function(){
  14. if(xmlhttp.readyState == 4 && xmlhttp.status == 200){
  15. document.getElementById("message").innerHTML = xmlhttp.responseText;
  16. }
  17. };
  18. xmlhttp.open("GET","./pics.html",true);
  19. xmlhttp.send();
  20. }
  21. function introduce(){
  22. var xmlhttp;
  23. if(window.XMLHttpRequest){
  24. xmlhttp = new XMLHttpRequest();
  25. }
  26. else{
  27. // IE6, IE5 浏览器执行代码
  28. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  29. }
  30. xmlhttp.onreadystatechange = function(){
  31. if(xmlhttp.readyState == 4 && xmlhttp.status == 200){
  32. document.getElementById("message").innerHTML = xmlhttp.responseText;
  33. }
  34. };
  35. xmlhttp.open("GET","./introduce.html",true);
  36. xmlhttp.send();
  37. }
  38. function notice(){
  39. var xmlhttp;
  40. if(window.XMLHttpRequest){
  41. xmlhttp = new XMLHttpRequest();
  42. }
  43. else{
  44. // IE6, IE5 浏览器执行代码
  45. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  46. }
  47. xmlhttp.onreadystatechange = function(){
  48. if(xmlhttp.readyState == 4 && xmlhttp.status == 200){
  49. document.getElementById("message").innerHTML = xmlhttp.responseText;
  50. }
  51. };
  52. xmlhttp.open("GET","./notice.html",true);
  53. xmlhttp.send();
  54. }