I am as new to javascript as you can be.
So I am trying to have these two pieces of html placed in the document if the anchor hash has tab-1 thorugh tab-6 in it. And well this is what i wrote, and it does nothing, any ideas?
<script>
if (window.location.hash == "#tab-1" || "#tab-2" || "#tab-3" || "#tab-4" || "#tab-5" || "#tab-6") {}
else { document.write("
<div id="tagline">
<p id="quote">"Play for fun or don't play at all!"</p>
<p id="namer">- S. Pussehl</p> </div>") }
</script>
Aucun commentaire:
Enregistrer un commentaire