Advertisement
jigsaww

MissionLiteracyHideText Code

Jan 21st, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.61 KB | None | 0 0
  1. <!--A CONTAINER START-->
  2. <div class="acontain" align="center">
  3. <a class="sh" id="ahtml" onclick="showText('html','css','php','js')" href="javascript:void(0);">HTML</a>
  4. <a class="sh" id="acss" onclick="showText('css','html','php','js')" href="javascript:void(0);">CSS</a>
  5. <a class="sh" id="aphp" onclick="showText('php','html','css','js')" href="javascript:void(0);">PHP</a>
  6. <a class="sh" id="ajs" onclick="showText('js','html','css','php')" href="javascript:void(0);">JavaScript</a>
  7. </div>
  8. <!--A CONTAINER END-->
  9. <!--DIVCONTAINER START-->
  10. <div class="dcontain" align="center">
  11. <br>
  12. <!--HTML DIV START-->
  13. <div class="hide" id="html">
  14. <p class="phtml">
  15. <p class="ttitle">HTML</p>
  16. <br>
  17. <a href="#"><input src="http://s25.postimg.org/ga0s4g1mj/cclogo.jpg" style="width: 130px; height: 50px; display:inline-block; margin-right:50px;" type="image" /></a>
  18.  
  19. <a href="#"><input src="http://s25.postimg.org/p3roljolb/w3logotest2.png" style="width: 280px; height: 32px; display:inline-block; margin-right:50px;" type="image" /></a>
  20.  
  21. <a href="#"><input src="http://s25.postimg.org/t2thi42m7/hnlogo.png" style="width: 254px; height: 59px; display:inline-block; margin-right:50px;" type="image" />
  22. </a></p>
  23. <p class="divends">Click on the logo of the website to learn the respective language.</p>
  24. </div>
  25. <!--HTML DIV END-->
  26.  
  27. <!--CSS DIV START-->
  28. <div class="hide" id="css">
  29. <p class="pcss">
  30. <p class="ttitle">CSS</p>
  31. <br>
  32. <a href="#"><input src="http://s25.postimg.org/ga0s4g1mj/cclogo.jpg" style="width: 130px; height: 50px; display:inline-block; margin-right:50px;" type="image" /></a>
  33.  
  34. <a href="#"><input src="http://s25.postimg.org/p3roljolb/w3logotest2.png" style="width: 280px; height: 32px; display:inline-block; margin-right:50px;" type="image" /></a>
  35.  
  36. <a href="#"><input src="http://s25.postimg.org/t2thi42m7/hnlogo.png" style="width: 254px; height: 59px; display:inline-block; margin-right:50px;" type="image" />
  37. </a></p>
  38. <p class="divends">Click on the logo of the website to learn the respective language.</p>
  39. </div>
  40. <!--CSS DIV END-->
  41. <!--PHP DIV START-->
  42. <div class="hide" id="php">
  43. <p class="pphp">
  44. <p class="ttitle">PHP</p>
  45. <br>
  46. <a href="#"><input src="http://s25.postimg.org/ga0s4g1mj/cclogo.jpg" style="width: 130px; height: 50px; display:inline-block; margin-right:50px;" type="image" /></a>
  47.  
  48. <a href="#"><input src="http://s25.postimg.org/p3roljolb/w3logotest2.png" style="width: 280px; height: 32px; display:inline-block; margin-right:50px;" type="image" /></a>
  49.  
  50. <a href="#"><input src="http://s25.postimg.org/t2thi42m7/hnlogo.png" style="width: 254px; height: 59px; display:inline-block; margin-right:50px;" type="image" />
  51. </a></p>
  52. <p class="divends">Click on the logo of the website to learn the respective language.</p>
  53. </div>
  54. <!--PHP DIV END-->
  55. <!--JS DIV START-->
  56. <div class="hide" id="js">
  57. <p class="pjs">
  58. <p class="ttitle">JavaScript</p>
  59. <br>
  60. <a href="#"><input src="http://s25.postimg.org/ga0s4g1mj/cclogo.jpg" style="width: 130px; height: 50px; display:inline-block; margin-right:50px;" type="image" /></a>
  61.  
  62. <a href="#"><input src="http://s25.postimg.org/p3roljolb/w3logotest2.png" style="width: 280px; height: 32px; display:inline-block; margin-right:50px;" type="image" /></a>
  63.  
  64. <a href="#"><input src="http://s25.postimg.org/t2thi42m7/hnlogo.png" style="width: 254px; height: 59px; display:inline-block; margin-right:50px;" type="image" />
  65. </a></p>
  66. <p class="divends">Click on the logo of the website to learn the respective language.</p>
  67. </div>
  68. <br>
  69. <p class="divends">Click on any language.</p>
  70. <br>
  71. </div>
  72. <!--JS DIV END-->
  73. <!--DIVCONTAINE END-->
  74. <!--CSS START-->
  75. <style>
  76. .phtml {
  77.     display:inline-block;
  78. }
  79. .dcontain {
  80.     background-color:beige;
  81. }
  82. .acountain {
  83.     margin-top:10px;
  84.     border:1px solid black;
  85. }
  86. div.hide {
  87.     display:none;
  88.     font-family:Verdana;
  89.     text-decoration:none;
  90. }
  91. div.show {
  92.     font-family:Verdana;
  93.     text-decoration:none;
  94. }
  95. .sh {
  96.     text-decoration: none;
  97.     font-size:30px;
  98.     font-family:Verdana;
  99.     font-color:blue;
  100.     width:200px;
  101.     height:70px;
  102.     margin-left:20px;
  103.     margin-right:20px;
  104. }
  105. .sh:hover {
  106.     text-decoration:none;
  107.     font-family:Verdana;
  108.     background-color:moccasin;
  109. }
  110. .ttitle {
  111.     text-align:center;
  112.     font-size:40px;
  113.     font-family:Times;
  114. }
  115. .divends {
  116.     font-family:Verdana;
  117.     font-size:20px;
  118. }
  119. </style>
  120. <!--END OF CSS-->
  121. <!--START OF JS-->
  122. <script type="text/javascript">
  123.     function showText(show,hide1,hide2,hide3) {
  124.     document.getElementById(show).className = "show";
  125.     document.getElementById(hide1).className = "hide";
  126.     document.getElementById(hide2).className = "hide";
  127.     document.getElementById(hide3).className = "hide";
  128. }
  129. </script>
  130. <!--END OF JS-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement