D
develeigh
Hi,
I have got this Collapsible Menus, it uses combination of JavaScript
and CSS.
Javascript when executed changes the inital CSS settings to make the
sub menu visable
function toggleClamShellMenu(objectID) {
var object = document.getElementById(objectID);
if (object.style.display == 'block')
object.style.display='none';
else
object.style.display='block';
return;
}
in CSS the initial settings hides the sub menus
#menu1 { display: none; }
#menu2 { display: none; }
#menu3 { display: none; }
In HTML using a tags to execute the javascript
<a class="menuHead" href="javascript:toggleClamShellMenu('menu1')">
It works perfectly in Firefox, IE, Safari but not in Opera to my
suprise.
Opera is not reporting any errors with the Javascript and I cannot see
what it is that stops it working in Opera.
If you know why it doesn't work in opera please let me know and any
possible workarounds.
Many Thanks in Advance
Dafydd
I have got this Collapsible Menus, it uses combination of JavaScript
and CSS.
Javascript when executed changes the inital CSS settings to make the
sub menu visable
function toggleClamShellMenu(objectID) {
var object = document.getElementById(objectID);
if (object.style.display == 'block')
object.style.display='none';
else
object.style.display='block';
return;
}
in CSS the initial settings hides the sub menus
#menu1 { display: none; }
#menu2 { display: none; }
#menu3 { display: none; }
In HTML using a tags to execute the javascript
<a class="menuHead" href="javascript:toggleClamShellMenu('menu1')">
It works perfectly in Firefox, IE, Safari but not in Opera to my
suprise.
Opera is not reporting any errors with the Javascript and I cannot see
what it is that stops it working in Opera.
If you know why it doesn't work in opera please let me know and any
possible workarounds.
Many Thanks in Advance
Dafydd