Okay, I made my java menu..and well..i checked my code against newer ones and older ones and i just can't figure it out...I have IE 6 and it says that my browser does not support this script. Any reason why that I"m just not seeing? Code: <script type='text/javascript'> function Go(){return} /*********************************************************************** YOU CAN MANUALLY CHANGE THE MENU HERE, BUT BE VERY CAREFUL ! ***********************************************************************/ [All of my menu arrays are here] /---Example of my menu array---/ Menu1=new Array("Pleaser","#","",16,20,80); Menu1_1=new Array("3 3/4" And Lower","<A href="http://","",8,20,80">http://","",8,20,80); Menu1_1_1=new Array("Amour","<A href="http://","",0,20,80">http://","",0,20,80); Menu1_1_2=new Array("Belle","<A href="http://","",0,20,0">http://","",0,20,0); var AgntUsr=navigator.userAgent.toLowerCase(); var DomYes=document.getElementById?1:0; var NavYes=AgntUsr.indexOf('mozilla')!=-1&&AgntUsr.indexOf('compatible')==-1?1:0; var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; var Opr=AgntUsr.indexOf('opera')!=-1?1:0; var Opr6orless=window.opera && navigator.userAgent.search(/opera.[1-6]/i)!=-1 //DynamicDrive.com added code var DomNav=DomYes&&NavYes?1:0; var DomExp=DomYes&&ExpYes?1:0; var Nav4=NavYes&&!DomYes&&document.layers?1:0; var Exp4=ExpYes&&!DomYes&&document.all?1:0; var PosStrt=(NavYes||ExpYes)&&!Opr6orless?1:0; var FrstLoc,ScLoc,DcLoc; var ScWinWdth,ScWinHght,FrstWinWdth,FrstWinHght; var ScLdAgainWin; var FirstColPos,SecColPos,DocColPos; var RcrsLvl=0; var FrstCreat=1,Loadd=0,Creatd=0,IniFlg,AcrssFrms=1; var FrstCntnr=null,CurrntOvr=null,CloseTmr=null; var CntrTxt,TxtClose,ImgStr; var Ztop=100; var ShwFlg=0; [this isn't all of the code..all of it wont fit..but I put in where it verifies the browser for this specific question]
I'll throw a second question on here since it is in relation... My menu refuses to leave the top left of the window instead of in the table where I want it..the only thing in the coding I find that even comes close to location is this bit of code... :/ Code: if(DomYes){ var MmbrCntnr=Location.document.createElement("div"); MmbrCntnr.style.position='absolute'; MmbrCntnr.style.visibility='hidden'; Location.document.body.appendChild(MmbrCntnr)} else{ if(Nav4) var MmbrCntnr=new Layer(Wdth,Location) else{ WMnu+='c'; Location.document.body.insertAdjacentHTML
Can you most the would script because some important parts are missing. You can also link to a live example so I can view the code.
Try http://www.jsmadeeasy.com/javascripts/ There are lots of free java scripts you can download to save you time.