woodlandstar
Technical User
All I am attempting to do is turn a slide show on or off. The link for this is
This works but the problem is that the selected button clears and I do not want it to clear. If it clears then the user does not know if the show is on or off. If I use just an alert to tell which button is checked then they do not clear, but if I put in the code to enable or disable the slide show then the buttons clear. How can I keep the buttons from clearing?
Thank You For Any Help
Code:
In the head I have
chosen = ""
len = document.f1.r1.length
for (i = 0; i <len; i++) {
if (document.f1.r1.checked) {
chosen = document.f1.r1.value
}
}
if (chosen == "Off") {
javascript:void(disableSlideMode());
}
else {
javascript:void(enableSlideMode(10));
}
}
</script>
In the body I have
<form NAME = f1>
<p align="center">
<input type = radio Name = r1 Value = "On" onClick =GetSelectedItem()>
On
<input type = radio Name = r1 Value = "Off" onClick =GetSelectedItem()>
Off
</p>
</form>
This works but the problem is that the selected button clears and I do not want it to clear. If it clears then the user does not know if the show is on or off. If I use just an alert to tell which button is checked then they do not clear, but if I put in the code to enable or disable the slide show then the buttons clear. How can I keep the buttons from clearing?
Thank You For Any Help
Code:
In the head I have
chosen = ""
len = document.f1.r1.length
for (i = 0; i <len; i++) {
if (document.f1.r1.checked) {
chosen = document.f1.r1.value
}
}
if (chosen == "Off") {
javascript:void(disableSlideMode());
}
else {
javascript:void(enableSlideMode(10));
}
}
</script>
In the body I have
<form NAME = f1>
<p align="center">
<input type = radio Name = r1 Value = "On" onClick =GetSelectedItem()>
On
<input type = radio Name = r1 Value = "Off" onClick =GetSelectedItem()>
Off
</p>
</form>