Hi all, trying to make it so my site has the following options:
Default Style - The one thats on untill someone selects otherwise
Large Font - For Accesability
Text Only - For None CSS Browsers
http://cpanel.lincoln.ac.uk/dci125/index.shtml#
I have the javascript code from:
http://alistapart.com/d/alternate/styleswitcher.js
in assets/javascript/styleswitcher.js
and I have my 2 CSS Files, assets/css/Style.css and assets/css/LargeFont.css
I use the code:
And have this in the header:
But clicking the links does nothing but add # to the url, what am I doing wrong?
Default Style - The one thats on untill someone selects otherwise
Large Font - For Accesability
Text Only - For None CSS Browsers
http://cpanel.lincoln.ac.uk/dci125/index.shtml#
I have the javascript code from:
http://alistapart.com/d/alternate/styleswitcher.js
in assets/javascript/styleswitcher.js
and I have my 2 CSS Files, assets/css/Style.css and assets/css/LargeFont.css
I use the code:
Code:
<p><a href="#" onclick="setActiveStyleSheet('Style'); return false;">Default</a></p>
<p><a href="#" onclick="setActiveStyleSheet('LargeFont'); return false;">Large Font</a></p>
<p><a href="#" onclick="setActiveStyleSheet('none'); return false;">Text Only</a></p>
And have this in the header:
Code:
<link rel="stylesheet" href="assets/css/Style.css" type="text/css">
<link rel="alternate stylesheet" href="assets/css/LargeFont.css" type="text/css">
<script type="text/javascript" src="assets/javascript/styleswitcher.js"></script>
But clicking the links does nothing but add # to the url, what am I doing wrong?