![]() |
Simplicious image nav rollover not validating..
I've used the nice image navigation method from Simplicious in my site redesign - where each half of the image has an overlay rollover for prev/next - but, as with the Similicious demo site (http://www.sotolicious.com/keepers), this isn't validating.
Does anyone know how this can be fixed, or some way of doing the same thing but with a different script that will validate? Any help is appreciated, thanks :) http://oculus.farfromreal.com |
1. Download image wraparound addon, install it.
2. Delete this after <body> line Code:
<script type="text/javascript">Code:
<script type="text/javascript">Code:
|
Xact, I don't think that is what Finner is looking for.
Finner, what you want to do so your site validates is wrap the JS code in <!-- //--> like so: Code:
<script type="text/javascript"> |
oh! wonderful - thank you dwilkinsjr! that's just what it needed. I'm curious as to why that makes such a difference..but glad it does.
|
The W3C validator does not validate JS code so all you did was hide the JS code from the validator by wrapping it in the comment tags.
This will also hide the JS from any browser that does not support it (hence, the W3C validator). |
Ah yes, fair enough - I'll keep that in mind for next time (I should have known that anyway being a web developer... ;)).
xact - had a look at the image wraparound.. is a nice feature and seems to be a bit of a cleaner implementation too. thanks :D |
| All times are GMT. The time now is 11:45 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.