Hello!
Im trying to fix one error on a page Im suppose to take care of, but I cannot figure it out. The thing is that my site is using js based drop-down menus, but they are set to open up by js in absolute positions, so any screen resolution and browser, which is not mentioned in the script, will make menu open is a completely different place. So main script for menus to slide out is ypSlideOutMenus.js and the one to fix the position looks like this:
Not much there, isn't it?
So there is 4 menus set to open in certain places.
Is there a way to modify it to make it snap to buttons and compatible with all browsers?
Or is there some other, better script available?
Or what could be the best solution?
Anyone, who can kindly find some time to help, this is the site Im talking about:
I also tried some software to create a new menu, but the best would be to have the menu snapping to buttons on the site. Or if you know some good program, to create js menus, please let me know. I tried Sothink Dhtml Menu 8, but its very limited in editing, if you're not going directly to change code, and I coulnt make the menu I wanted.
I really dont know almost anything about js, but somehow or other, I want to fix the problem and therefore ask for your kind help.
Thank you in advance.
Regards,
Jaanus
Im trying to fix one error on a page Im suppose to take care of, but I cannot figure it out. The thing is that my site is using js based drop-down menus, but they are set to open up by js in absolute positions, so any screen resolution and browser, which is not mentioned in the script, will make menu open is a completely different place. So main script for menus to slide out is ypSlideOutMenus.js and the one to fix the position looks like this:
Code:
// JavaScript Document
<!--
var yPosition = 178;
if(screen.width==1024){
//new ypSlideOutMenu("number menu", "slide position", left, top, width, height)
/*About*/ new ypSlideOutMenu("menu1", "down", 180, yPosition, 120, 130)
/*About*/ new ypSlideOutMenu("menu2", "down", 319, yPosition, 185, 130)
/*About*/ new ypSlideOutMenu("menu3", "down", 595, yPosition, 93, 130)
/*About*/ new ypSlideOutMenu("menu4", "down", 695, yPosition, 95, 130)
}
else{ //If 800 x 600
/*About*/ new ypSlideOutMenu("menu1", "down", 50, yPosition, 100, 130)
/*About*/ new ypSlideOutMenu("menu2", "down", 200, yPosition, 100, 130)
/*About*/ new ypSlideOutMenu("menu3", "down", 440, yPosition, 100, 130)
/*About*/ new ypSlideOutMenu("menu4", "down", 670, yPosition, 100, 130)
}
//-->
Not much there, isn't it?
So there is 4 menus set to open in certain places.
Is there a way to modify it to make it snap to buttons and compatible with all browsers?
Or is there some other, better script available?
Or what could be the best solution?
Anyone, who can kindly find some time to help, this is the site Im talking about:
I also tried some software to create a new menu, but the best would be to have the menu snapping to buttons on the site. Or if you know some good program, to create js menus, please let me know. I tried Sothink Dhtml Menu 8, but its very limited in editing, if you're not going directly to change code, and I coulnt make the menu I wanted.
I really dont know almost anything about js, but somehow or other, I want to fix the problem and therefore ask for your kind help.
Thank you in advance.
Regards,
Jaanus