Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //JAVASCRIPT
- <script type="text/javascript">
- var $ = function(id)
- {
- return document.getElementById(id);
- };
- function chPic(id)
- {
- if (id == '0')
- {
- $('logo').setAttribute('style', 'background: url(kalo.png) no-repeat top center');
- }
- };
- </script>
- //TABS
- <div id="toptabs">
- <p>Change Picture:
- <a class="toptab" href="#" onclick="chPic(0)">Bodega Bay</a>
- <a class="toptab" href="#" >My Garden</a>
- <a class="toptab" href="#">Painting</a>
- <a class="toptab" href="#">My House</a></p>
- </div>
- //CSS
- #logo{
- position:relative;
- width:900px;
- height:300px;
- float:left;
- background: url(kalobg.gif) no-repeat center;
- }
Add Comment
Please, Sign In to add comment