JavaScript

From Ilianko
Revision as of 11:55, 17 June 2011 by Anko (talk | contribs) (Created page with "<code><pre> <script> function hide(id) { var e = document.getElementById(id); if(e.style.display == 'inline') e.style.display = 'none'; else ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
<script>
function hide(id) {
       var e = document.getElementById(id);
       if(e.style.display == 'inline')
          e.style.display = 'none';
       else
          e.style.display = 'inline';
    }
</script>
</head>

<body>
  <p onclick="hide('b')">SEO - оптимизация за търсачки</p>
<div id="b" style="display:none;position:relative; left:15px; top:10px">
    <img onclick="hide('b')"src="logo.png" />

  </div>