Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

buttons.js 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. var article_new_tab;
  2. var article_info_tab;
  3. var article_news_tab;
  4. var article_events_tab;
  5. var article_new;
  6. var article_info;
  7. var article_news;
  8. var article_events;
  9. function buttons() {
  10. /*
  11. article_new_tab = document.getElementById("article_new_tab");
  12. article_info_tab = document.getElementById("article_info_tab");
  13. article_news_tab = document.getElementById("article_news_tab");
  14. article_events_tab = document.getElementById("article_events_tab");
  15. article_new = document.getElementById("article_new");
  16. article_info = document.getElementById("article_info");
  17. article_news = document.getElementById("article_news");
  18. article_events = document.getElementById("article_events");
  19. article_new_tab.addEventListener('click', function(event) {
  20. article_new.style.display = "block";
  21. article_info.style.display = "none";
  22. article_news.style.display = "none";
  23. article_events.style.display = "none";
  24. }, false);
  25. article_info_tab.addEventListener('click', function(event) {
  26. article_new.style.display = "none";
  27. article_info.style.display = "block";
  28. article_news.style.display = "none";
  29. article_events.style.display = "none";
  30. }, false);
  31. article_news_tab.addEventListener('click', function(event) {
  32. article_new.style.display = "none";
  33. article_info.style.display = "none";
  34. article_news.style.display = "block";
  35. article_events.style.display = "none";
  36. }, false);
  37. article_events_tab.addEventListener('click', function(event) {
  38. article_new.style.display = "none";
  39. article_info.style.display = "none";
  40. article_news.style.display = "none";
  41. article_events.style.display = "block";
  42. }, false);
  43. */
  44. }
  45. function buttons_ie8() {
  46. /*
  47. article_new_tab = document.getElementById('article_new_tab');
  48. article_info_tab = document.getElementById('article_info_tab');
  49. article_news_tab = document.getElementById('article_news_tab');
  50. article_events_tab = document.getElementById('article_events_tab');
  51. article_new = document.getElementById('article_new');
  52. article_info = document.getElementById('article_info');
  53. article_news = document.getElementById('article_news');
  54. article_events = document.getElementById('article_events');
  55. article_new_tab.attachEvent('onclick', function(event) {
  56. article_new.style.display = "block";
  57. article_info.style.display = "none";
  58. article_news.style.display = "none";
  59. article_events.style.display = "none";
  60. });
  61. article_info_tab.attachEvent('onclick', function(event) {
  62. article_new.style.display = "none";
  63. article_info.style.display = "block";
  64. article_news.style.display = "none";
  65. article_events.style.display = "none";
  66. });
  67. article_news_tab.attachEvent('onclick', function(event) {
  68. article_new.style.display = "none";
  69. article_info.style.display = "none";
  70. article_news.style.display = "block";
  71. article_events.style.display = "none";
  72. });
  73. article_events_tab.attachEvent('onclick', function(event) {
  74. article_new.style.display = "none";
  75. article_info.style.display = "none";
  76. article_news.style.display = "none";
  77. article_events.style.display = "block";
  78. });
  79. */
  80. }