Mann Ha

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromMann Ha
ToMe
SubjectHelp with Script styleswap
Date30 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.
FromMe
ToMann Ha
SubjectRe: Help with Script styleswap
Date1 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/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.