hi every one
i made a menu using javascript and css.....using mozila firefox browser.
menu working properly . but the way of opening submenu is not professional...... plz help me out
i used this function into my javascript file code ...
var transition=102; but not working.
is it right function or right place where i m doing it.. or anywhere else............
var cssmenuids=["cssmenu1"] //Enter id(s) of CSS Horizontal UL menus, separated by commas
var csssubmenuoffset=-3 //Offset of submenus from main menu. Default is 0 pixels.
var transOptions= "gradientSize=[0..1], wipestyle=0/1, motion=right";
function createcssmenu2(){
for (var i=0; i<cssmenuids.length; i++){
var ultags=document.getElementById(cssmenuids[i]).getElementsByTagName("ul")
for (var t=0; t<ultags.length; t++){
ultags[t].style.top=ultags[t].parentNode.offsetHeight+csssubmenuoffset+"px"
var spanref=document.createElement("span")
spanref.className="arrowdiv"
spanref.innerHTML=" "
ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
ultags[t].parentNode.onmouseover=function(){
this.style.zIndex=100
this.getElementsByTagName("ul")[0].style.visibility="visible"
this.getElementsByTagName("ul")[0].style.zIndex=0
}
ultags[t].parentNode.onmouseout=function(){
this.style.zIndex=0
this.getElementsByTagName("ul")[0].style.visibility="hidden"
this.getElementsByTagName("ul")[0].style.zIndex=100
}
}
}
}
if (window.addEventListener)
window.addEventListener("load", createcssmenu2, false)
else if (window.attachEvent)
window.attachEvent("onload", createcssmenu2)
.horizontalcssmenu ul{
margin: 0;
padding: 0;
list-style-type: none;
}
/*Top level list items*/
.horizontalcssmenu ul li{
position: relative;
display: inline;
float: left;
animspeed: 200;
}
/*Top level menu link items style*/
.horizontalcssmenu ul li a{
display: block;
width: 120px; /*Width of top level menu link items*/
height:20px;
padding: 2px 8px;
border: 1px solid #202020;
border-left-width: 0;
text-decoration: none;
background:#4682B4;
color: White;
font: bold 13px Tahoma;
animspeed: slow;
showhidedelay: [-150,-150];
}
/*Sub level menu*/
.horizontalcssmenu ul li ul{
left:0px;
top: 0px;
border-top: 1px solid #202020;
position: absolute;
display: block;
visibility: hidden;
z-index: 100;
float: right;
animspeed: -15000;
showhidedelay: [-1500,-1500];
}
/*sub Sub level menu*/
.horizontalcssmenu ul li ul ul{
left:135px;
top: -200px;
border-top: 1px solid #202020;
position: absolute;
display: block;
visibility: hidden;
z-index: 100;
float: right;
animspeed:-15000;
showhidedelay: [-1500, -1500];
}
/*Sub level menu list items*/
.horizontalcssmenu ul li ul li{
display: inline block;
float: right;
position:relative;
left:0;
}
/*sub sub level mmenu list items*/
.horizontalcssmenu ul li ul ul{
display:inline block;
float:left;
position:absolute;
right:-100px;
animspeed: -15000;
showhidedelay: [-1500,-1500];
}
/* Sub level menu links style */
.horizontalcssmenu ul li ul li a{
width: 125px; /*width of sub menu levels*/
font-weight: bold;
padding: 2px 5px;
background: #BCD2EE;
border-width: 0 1px 1px 1px;
}
.horizontalcssmenu ul li a:hover{
background: #4682B4;
}
.horizontalcssmenu ul li ul li a:hover{
background: #4682B4;
}
.horizontalcssmenu .arrowdiv{
position: absolute;
right: 0;
}
* html p#iepara{ /*For a paragraph (if any) that immediately follows menu, add 1em top spacing between the two in IE*/
padding-top: 1em;
}