Results 1 to 3 of 3
I wrote this up and it doesn't work. Where have I stuffed up?
Code:
<SCRIPT type="text/javascript">
function selector('glancej') {
document.getElementById('glance') {style.display='block'};
document.getElementById('front') {style.display='none'};
}
function selector('frontj') {
document.getElementById('glance') {style.display='none'};
document.getElementById('front') ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-03-2011 #1Banned
- Join Date
- Aug 2011
- Posts
- 43
I wrote up this simple JavaScript, but it doesn't seem to work. Where
I wrote this up and it doesn't work. Where have I stuffed up?
Code:<SCRIPT type="text/javascript"> function selector('glancej') { document.getElementById('glance') {style.display='block'}; document.getElementById('front') {style.display='none'}; } function selector('frontj') { document.getElementById('glance') {style.display='none'}; document.getElementById('front') {style.display='block'}; } </SCRIPT> <SPAN onclick="selector('glancej');">GLANCE</SPAN> <SPAN onclick="selector('frontj');">FRONT</SPAN> <IMG alt="" id="glance" src="glance.png"> <IMG alt="" id="front" src="front.png">
- 10-03-2011 #2
Try replacing lines like
withCode:document.getElementById('glance') {style.display='block'};Code:document.getElementById('glance').style.display='block';If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
The Fifth Continent reborn
- 10-03-2011 #3Banned
- Join Date
- Aug 2011
- Posts
- 43
Thanks Elija! (Y)


Reply With Quote
