Created
April 21, 2012 09:41
-
-
Save lamprosg/2436213 to your computer and use it in GitHub Desktop.
Modify CSS with JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" type="text/css" href="stylesheets/maint_layout.css" /> | |
<script type="text/javascript"> | |
function showPage(item) | |
{ | |
if (item==1) | |
{ | |
document.getElementById('default').style.display = 'none'; | |
document.getElementById('about').style.display = 'block'; | |
} | |
if (item==2) | |
{ | |
document.getElementById('default').style.display = 'block'; | |
document.getElementById('about').style.display = 'none'; | |
} | |
} | |
</script> | |
<!-- Modifying CSS with JavaScript --> | |
<!-- Link: http://www.universalwebservices.net/web-programming-resources/javascript/modify-css-with-javascript --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment