![]() |
JavaScript quirkiness...
oh my GAWSH! ...this one i can't figure out.
this is my first attempt at JS code, adding rollovers to the link tabs on my Delicious based site: www.ctfoto.com/ mostly, things seem fine so far, except, on Safari (not on FF though), when i roll over the #8 tab, the secondary image is shown as it should, but then when i remove the cursor and the primary image returns, it has been stretched to the same dimensions as the secondary image, and it stays that way - still functional as a rollover - until the page is refreshed, at which point the primary image returns to its proper dimensions. roll over it again, and it does the same thing... i'm at a loss. the code for tab #8 is exactly the same as all the other tabs; the image name is listed properly, as all the other tabs, in the 'new array' code; the source image is identically saved to my server; i've cleared cookies and cache; etc... just can't figure out what's happening. any ideas? here's the JS, located in the <head> Code:
<script type="text/javascript">Code:
<div id="nav_sub"> |
also... occasionally, after i roll the cursor away from the tab, the secondary image remains (instead of being replaced by the primary image).
or, even worse, instead of replacing the primary image, i get the dreaded "?" is this just sloppy code on my part, or what?... |
...did i post this in the wrong spot, or is everyone just out enjoying the beautiful weather?
i should go do that... |
Templates might have been a better place for it, since it has more to do with layout/design than it does PixelPost proper. However, I did read it, and can't be of much help at the moment, since I don't have Safari to see what the problem looks like.
|
thanks for moving this over here, dakwegmo+
|
Just a suggestion as I was going through the tabs when I switched between them sometimes I couldn't get the right one becuase the rollovers are bigger than the original graphics. Perhaps you could make them taller but the same width up?
|
so you think the different width is the problem... hmmmm
i'll give it a try. thanks Scarabaeus. |
looks like you were right, Scarabaeus... tried the secondary image oriented vertically (taller than wide) and it worked fine. but then it was too tall.
so i just changed the text to something shorter: Selects instead on OneShots... (i like Selects way better anyway!) works just fine now!! cheers, |
well shoot.
works fine on FF, but not on Safari... does anyone even use Safari anymore? |
Works well on IE too.
|
| All times are GMT. The time now is 05:02 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.