Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. <body>
  2. <div id="container">
  3. <div id="header">
  4. <h1 class="h1"><img src="images/header2.PNG"/> </h1>
  5. </div>
  6. <div id="navbar">
  7. <div id="navbar"> <b> <img src="images/home2.png" width="109" height="54"/> </b>
  8. <b><img src="images/about.png" width="l09" height="54"/> </b>
  9. <b><img src="images/news.png" width="109" height="54"/></b>
  10. <b><img src="images/contact.png" width="109" height="54"</b>
  11. </div>
  12. <div id="article1" class="articleContent">
  13. <p class="font">This is the content</p>
  14. <p class="font"></p>
  15. </div>
  16. <div id="footer">&copy;2014 | Privacy | Contact Information</div>
  17. </body>
  18. </html>
  19.  
  20. var article = document.getElementById('article1');
  21. article.style.display = 'none';
  22. document.getElementById('open').onclick= function(){
  23. article.style.display = 'block';
  24. }
  25. document.getElementById('close').onclick= function(){
  26. article.style.display = 'none';
  27. }
  28.  
  29. function open(){
  30.  
  31. document.getElementById(one).style.display = 'block';
  32. }
  33.  
  34. function hide (){
  35. document.getElementById(one).style.display = 'hide';
  36. }
  37.  
  38. function open(e) {
  39. e.removeAttribute("style");
  40. }
  41.  
  42. function close(e) {
  43. e.style.display = "none";
  44. }
  45.  
  46. open=document.getElementById("openDiv");
  47. open.onclick=function(){
  48. document.getElementById("articleContent").style.display=hidden;
  49. }
  50. hide=document.getElementById("hideDiv");
  51. hide.onclick=function(){
  52. document.getElementById("articleContent").style.display=initial;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement