Menu der driller
Hej,jeg sidder og roder lidt med denne menu: http://www.median.dk/clara-kristian/menu/c-k_header.asp
Som det kan ses er der dog opstået et par problemer med den.
- Billederne hopper når man kører musen over dem.
- Menuen kan finde på at forsvinde før man får musen henover den, efter den er blevet kaldt frem med mouseover.
Hvordan retter jeg dette?
Den ene script-fil ser således ud:
-------------------------------------------------------
/*-------------------------------------------
Copyright Notice
--------------------------------------------*/
DQM_Notice = "DHTML QuickMenu, Copyright (c) - 2001, OpenCube Inc. - www.opencube.com"
/*-------------------------------------------
Required menu Settings
--------------------------------------------*/
DQM_sub_menu_width = 130
DQM_urltarget = "_self"
DQM_onload_statement = ""
DQM_codebase = ""
DQM_border_color = "#000000"
DQM_menu_bgcolor = "#ECE1D6"
DQM_hl_bgcolor = "#C7B29A"
DQM_sub_xy = "0,0"
DQM_border_width = 1
DQM_divider_height = 1
/*---IE5-MAC Offset Fix - The following two
-----parameters correct a position reporting
-----bug in IE5 on the Mac platform. Adjust
-----the offsets below untill the first level
-----sub menus pop up in the correct location.*/
DQM_ie5mac_offset_X = 10
DQM_ie5mac_offset_Y = 12
/*-------------------------------------------
Required font Settings
--------------------------------------------*/
DQM_textcolor = "#000000"
DQM_fontfamily = "Verdana"
DQM_fontsize = 10
DQM_textdecoration = "normal"
DQM_fontweight = "normal"
DQM_fontstyle = "normal"
DQM_hl_textcolor = "#FFFFFF"
DQM_hl_textdecoration = "normal"
DQM_margin_top = 3
DQM_margin_bottom = 3
DQM_margin_left = 5
/*-------------------------------------------
Optional main menu rollover images
--------------------------------------------*/
DQM_rollover_image0 = "menu_forside_2glow.gif"
DQM_rollover_wh0 = "57,14"
DQM_rollover_image1 = "menu_billeder_2glow.gif"
DQM_rollover_wh1 = "61,14"
DQM_rollover_image2 = "menu_adresser_2glow.gif"
DQM_rollover_wh2 = "69,14"
DQM_rollover_image3 = "menu_festkomite_2glow.gif"
DQM_rollover_wh3 = "83,14"
/*---------------------------------------------
Optional Icon Images
-----------------------------------------------*/
DQM_icon_image0 = "menu_pil1.gif"
DQM_icon_rollover0 = "menu_pil2.gif"
DQM_icon_image_wh0 = "7,10"
/*---------------------------------------------
Sub Menu Item Settings
-----------------------------------------------*/
DQM_sub_xy0 = "-42,19"
DQM_sub_menu_width0 = 150
DQM_subdesc0_0 = "<font color='#000000'>DHTML QuickMenu</font><br>This fully customizable menu is made available FREE of charge."
DQM_icon_index0_0 = 0
DQM_url0_0 = "http://www.opencube.com/effect_dqm.html"
DQM_sub_xy1 = "-61,19"
DQM_sub_menu_width1 = 140;
DQM_subdesc1_0 = "New Effects"
DQM_subdesc1_1 = "Implementations"
DQM_subdesc1_2 = "Visual DHTML"
DQM_subdesc1_3 = "DHTML Effects"
DQM_subdesc1_4 = "Applet Composer"
DQM_subdesc1_5 = "Applet Effects"
DQM_icon_index1_0 = 0
DQM_icon_index1_1 = 0
DQM_icon_index1_2 = 0
DQM_icon_index1_3 = 0
DQM_icon_index1_4 = 0
DQM_icon_index1_5 = 0
DQM_url1_0 = "http://www.opencube.com/index.html"
DQM_url1_1 = "http://www.opencube.com/index.html"
DQM_url1_2 = "http://www.opencube.com/prod_visualdhtml.html"
DQM_url1_3 = "http://www.opencube.com/prod_wedhtml.html"
DQM_url1_4 = "http://www.opencube.com/prod_composer.html"
DQM_url1_5 = "http://www.opencube.com/prod_wejava.html"
DQM_sub_xy2 = "-72,19"
DQM_sub_menu_width2 = 145
DQM_subdesc2_0 = "Visual DHTML"
DQM_subdesc2_1 = "Web Effects DHTML"
DQM_subdesc2_2 = "Applet Composer"
DQM_subdesc2_3 = "Web Effects Java"
DQM_icon_index2_0 = 0
DQM_icon_index2_1 = 0
DQM_icon_index2_2 = 0
DQM_icon_index2_3 = 0
DQM_url2_0 = "http://www.opencube.com/prod_visualdhtml.html"
DQM_url2_1 = "http://www.opencube.com/prod_wehtml.html"
DQM_url2_2 = "http://www.opencube.com/prod_composer.html"
DQM_url2_3 = "http://www.opencube.com/prod_wejava.html"
DQM_sub_xy3 = "-55,19"
DQM_sub_menu_width3 = 120
DQM_subdesc3_0 = "Cust. Service"
DQM_subdesc3_1 = "Tech. Support"
DQM_subdesc3_2 = "Product Sales"
DQM_icon_index3_0 = 0
DQM_icon_index3_1 = 0
DQM_icon_index3_2 = 0
DQM_url3_0 = "http://www.opencube.com/contact.htm"
DQM_url3_1 = "http://www.opencube.com/contact.htm"
DQM_url3_2 = "http://www.opencube.com/contact.htm"
-------------------------------------------------------
Den anden script-fil ser således ud:
-------------------------------------------------------
q18=0;q19=new Array();dh=DQM_divider_height;q61 =false;ns=navigator.appName==("Netscape");ns4=(ns &&(navigator.appVersion.indexOf("4.")!=-1));mac=(navigator.appVersion.indexOf("Mac")!=-1);ie=(navigator.appName.toLowerCase().indexOf("microsoft")>-1);ie5=(navigator.appVersion.toLowerCase().indexOf("msie 5.")!=-1);ie6=(navigator.appVersion.toLowerCase().indexOf("msie 6.")!=-1);ie4=((ie)&&(!ie5)&&(!ie6));ns5=(navigator.vendor==("Netscape6")|| navigator.product==("Gecko"));if((ns5)||(ie6)||(ie4))ie5=true;ie5only=((ie5)&&(!ns5)&&(!mac));(ie5only)? brn="ie":brn="ns";if((ns5)||((ie5)&&(mac)))brn="ns6";document.write("<script language=\"JavaScript1.2\" src=\""+DQM_codebase+"dqm_"+brn+".js\"></script>");document.close();;function DQM_handleOnload(){if(q61)return;q31();if(!ie5only){i=0;while(eval("window.DQM_rollover_image"+i)){q20=q20.concat(new Array(new Image()));q20[i].src=eval("DQM_rollover_image"+i);q21=q21.concat(new Array(q16("menu"+i).src));i++;}}q61=true;eval(DQM_onload_statement);};function q27(nid){if(eval("window.DQM_rollover_image"+nid)){if(ie5only)eval("q16(qmim"+nid+")."+q59);else q16("menu"+nid).src=q21[nid];}};function q30(menu){if((menu.lasthl!=null)&&(menu.q60==null))q4(menu);};function q31(){for(i=0;i<q18;i++){if(eval("window.DQM_subdesc"+i+"_0"))q1(i,true);}for(i=0;i<q19.length;i++)q1(q19[i],false);};function q32(index){if(!eval("window.DQM_url"+index))return;if(eval("window.DQM_urltarget"+index))where=eval("DQM_urltarget"+index);else where=DQM_urltarget;if((where.length<1)||(where.toLowerCase()=="_self")){window.location.href=eval("DQM_url"+index);}else {if(where.toLowerCase().indexOf("_parent")>-1)eval("parent.window.location=DQM_url"+index);else if(where.toLowerCase().indexOf("_new")<0)eval("parent."+where+".location=DQM_url"+index);else window.open(eval("DQM_url"+index));}};function q33(coords){var q72=new Array(0,0);var txy=coords.indexOf(",");if(txy!=-1){q72[0]=parseInt(coords.substring(0,txy));q72[1]=parseInt(coords.substring(txy+1));}return q72;};function getLevelVal(id,endv,rt){level=0;k=0;while((k=id.indexOf("_",k+1))>-1)level++;if(eval("window.DQM_border"+endv+level))return eval("DQM_border"+endv+level);else return rt;}
-------------------------------------------------------
