Email conversation
From | Mann Ha |
To | Me |
Subject | Help with Script styleswap |
Date | 30 November 2007 21:06 |
Here is what I did: I put swapstyle.js into themesfolder for
html:<head><script src="themesfolder/swapstyle.js" type="text/javascript"
language="javascript1.2"></script><link rel="stylesheet" type="text/css"
href="my.css" title="Default">
<link rel="alternate stylesheet" type="text/css" href="other.css"
title="Other Css">
</head> <body><form method="get" onsubmit="return false;"> <p> <input
onclick="changeStyle('Default')" type="button" value="Use Default" /><br />
<input onclick="changeStyle('Other Css')" type="button" value="Use Other
Css" /><br /></form></body>
What am I doing wrong> it is not working? Thanks, love the sample hope I
could use it thanks.
From | Me |
To | Mann Ha |
Subject | Re: Help with Script styleswap |
Date | 1 December 2007 07:40 |
> I put swapstyle.js into themesfolder for html: [snip]
> What am I doing wrong it is not working?
I just tried what you gave me, and it worked just fine. I need some more
details to work out why it is not working when you use it on your site. The
first and most important thing; load the test in Opera, and use tools -
advanced - error console, to see any error messages that Opera gives you. If
they don't help you to solve the problem, send me the contents of the error
console. (Hint: you can use shift+click to select multiple lines of text in
the error console.)
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/