Antonio Melo
03-02-2009, 08:34 PM
1) Script Title:
Smooth Navigational Menu (v1.02)
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm
3) Describe problem:
All the Select Boxes present in the page will appear in front of the menu
(but just in IE 6.0)
I had some customization to fix it, but I guess
this is not the best way to solve the problem.
I've done these changes (red marked) lines(45 to 54):
$headers.hover(
function(e){
$(this).children('a:eq(0)').addClass('selected')
hideAllSelectBox();
},
function(e){
$(this).children('a:eq(0)').removeClass('selected')
showAllSelectBox();
}
)
and in the ddsmoothmenu.js I inserted that on the last lines:
// customization
function hideAllSelectBox(){
var x = document.getElementsByTagName("select");
for (i=0;x && i < x.length; i++)
x[i].style.visibility = "hidden";
}
function showAllSelectBox(){
var x = document.getElementsByTagName("select");
for (i=0;x && i < x.length; i++)
x[i].style.visibility = "visible";
}
If there's a simple way to solve the problem, I would like to know how to make it work in IE 6.0.
Thanx in advance, folks!
Antonio Melo
Smooth Navigational Menu (v1.02)
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm
3) Describe problem:
All the Select Boxes present in the page will appear in front of the menu
(but just in IE 6.0)
I had some customization to fix it, but I guess
this is not the best way to solve the problem.
I've done these changes (red marked) lines(45 to 54):
$headers.hover(
function(e){
$(this).children('a:eq(0)').addClass('selected')
hideAllSelectBox();
},
function(e){
$(this).children('a:eq(0)').removeClass('selected')
showAllSelectBox();
}
)
and in the ddsmoothmenu.js I inserted that on the last lines:
// customization
function hideAllSelectBox(){
var x = document.getElementsByTagName("select");
for (i=0;x && i < x.length; i++)
x[i].style.visibility = "hidden";
}
function showAllSelectBox(){
var x = document.getElementsByTagName("select");
for (i=0;x && i < x.length; i++)
x[i].style.visibility = "visible";
}
If there's a simple way to solve the problem, I would like to know how to make it work in IE 6.0.
Thanx in advance, folks!
Antonio Melo