SamF
20th March 07, 05:16 PM
Hi all,
I've implemented the CSS options for my site in a standard "floating" CSS tooltip, where the CSS code is:
a.options {
position: relative;
}
a.options span {
display: none;
}
a.options:hover span {
display: block;
position: absolute;
z-index: 100;
}
When I try to put radio buttons in the tooltip, all the associated JavaScript works fine, but the buttons won't select and deselect as normal: rather, the first option selected will select, and nothing else in the group will show itself as selected after that. When I put them outside the tooltip, they work fine.
Can anyone work out what's going on?
<a href="#" onclick="return false;" class="options">Options<span>
<p>
Text size: <input name="textSize" type=radio onclick="ChangeFontSize('standard');"> Standard<input name="textSize" type=radio onclick="ChangeFontSize('largetext');"> Large
</p>
<p>
Contrast: <input name="contrast" type=radio onclick="ChangeContrast('standard');"> Standard<input name="contrast" type=radio onclick="ChangeContrast('highcontrast');"> High
</p>
</span></a>
Any help would be greatly apprectiated!
Thanks,
Sam
I've implemented the CSS options for my site in a standard "floating" CSS tooltip, where the CSS code is:
a.options {
position: relative;
}
a.options span {
display: none;
}
a.options:hover span {
display: block;
position: absolute;
z-index: 100;
}
When I try to put radio buttons in the tooltip, all the associated JavaScript works fine, but the buttons won't select and deselect as normal: rather, the first option selected will select, and nothing else in the group will show itself as selected after that. When I put them outside the tooltip, they work fine.
Can anyone work out what's going on?
<a href="#" onclick="return false;" class="options">Options<span>
<p>
Text size: <input name="textSize" type=radio onclick="ChangeFontSize('standard');"> Standard<input name="textSize" type=radio onclick="ChangeFontSize('largetext');"> Large
</p>
<p>
Contrast: <input name="contrast" type=radio onclick="ChangeContrast('standard');"> Standard<input name="contrast" type=radio onclick="ChangeContrast('highcontrast');"> High
</p>
</span></a>
Any help would be greatly apprectiated!
Thanks,
Sam