Alter CSS value
Posted: Mon Jan 10, 2011 6:48 pm
This seems like a very simple problem but I can't for the life of me figure it out.
So I have a site that if JavaScript isn't enabled, the cursor on the <a> is default.
If JavaScript is enabled then the <a> cursor is pointer.
My CSS is:
and the JavaScript is:
The <a> is in an unordered list in a div with an id or port.
Thanks for any help.
So I have a site that if JavaScript isn't enabled, the cursor on the <a> is default.
If JavaScript is enabled then the <a> cursor is pointer.
My CSS is:
Code: Select all
#port a {cursor:default;}Code: Select all
<script type="text/javascript">
document.getElementById(port).style.a.cursor = "pointer";
</script>Thanks for any help.