I had this code working perfectly, and then something changed and the calls in the first two divs below will not do anything. Can anyone see why? The calls look identical in all four divs to me, why won't the first two work anymore?
<div class="Peach" onmouseover="previewStyle('peach.css');" onclick="setCookie('Style','rayslinks.css',365);">Black on Peach</div>
<div class="Blue" onmouseover="previewStyle('blue.css');" onclick="setCookie('Style','rayslinksblue.css',365);">White on Blue</div>
<div class="Black" onmouseover="previewStyle('black.css');" onclick="setCookie('Style','black.css',365);">White on Black</div>
<div class="White" onmouseover="previewStyle('white.css');" onclick="setCookie('Style','white.css',365);">Black on White</div>
Here is the previewStyle function:
function previewStyle(StyleFile)
{
document.getElementById("Skin").href= StyleFile;
}
I keep looking at it, and I can't spot any differences... Neither the onmouseover or the onclick routines are firing in the first two divs, but in the second pair they do????
Later, Ray Parrish

Help




Back to top










