Results 1 to 6 of 6
Thread: Nav Bar Question (CSS or JS?)
Jun 13, 2012, 08:42 #1
- Join Date
- Jun 2012
- NW Illinois, USA
- 0 Post(s)
- 0 Thread(s)
Nav Bar Question (CSS or JS?)
Hi all. First time posting, so I hope this is in the right place.
I'm working on a site (single page layout), and I'm trying to create a single-line horizontal menu, with no sub-items. I'd like to make each anchor link play a sound AND swap images onClick. Is this possible to do using pure CSS? I'd prefer not to use JS, but am willing if that is the only/best way.
I've made an unsuccessful attempt using JS, but I don't know it very well, and I am stumped. If anyone wants to have a look at that attempt, there is a jsFiddle here: http://jsfiddle.net/tBpMV/2/
The sound and image swap work fine, but clicking the links does not take you anywhere. There is a small JS script on the bottom of the html that controls the image swap. If I delete that code, the links begin working, but then there's no image swap. I've tried everything I can think of to get it working, but no joy.
So anyway, I'm hoping there's a way to accomplish this without the JS. I'd sure appreciate any advice/input.
Thanks in advance!