Ignoring the fact that opacity is part of CSS3, which isn’t fully developed yet, is there some way I could get JavaScript to change a divider’s opacity, when a link is clicked? So, what I need is to click the link and a divider with 0% opacity goes to about 75%.
@AmazingAntauthorOct 27.2006 — #A divider is the <div> tag. However, it looks like the JavaScript works better if applied to the image itself. Anyway, I took that code, and removed the hr. Then I gave the image the id "divider", and it worked perfectly.
Thanks!~
There's no percent symbols in your signature's code, so it confused me. I get it now! ?
In need of having this work out, I've got the image set with css in the style to z-index: -1, so that it's under everything else. On the page I'm working on it with, the only thing above it is plain text, so no problem there. But when I change the link code you gave me to [code=html] <a href="#" onclick="dv=document.getElementById('divider');dv.style.opacity=.75;dv.style.filter='alpha(opacity=75)';;dv.style.z-index:2;">Show Divider</a>[/code] It basically does nothing. ?