|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
blow mentioned script is perfectly working in the IE, but the same script is not working in tne NN? why?
<script language="javascript"> <!-- hide jscript from old browsers /****** this object holds all of the key data **********/ function Link(name, url){ this.name = name; this.title = new Array(); this.url = new Array(); } /**************************************************************/ var names = new Array (); var temp = new Array (); var temp2 = new Array (); var link = new Link (); var final_list = new Array (); /******** array declaration... it holds all of the data for the menus ****/ /******** array declaration... it holds all of the data for the menus ****/ var menu = new Array ( "Select any*|Select any", "Advertising*|Art Director#" + "|Brodcast Manager#" + "|Copy Writer#" + "|Creative Director#" + "|Logo Designer#" + "|Market Research Executive#" + "|Modeller#" + "|Public Relation Officer#" + "|Script Writer#" + "|General", "Civil*|Architect#" + "|Civil Engineering Consultant#" + "|Site Engineer#" + "|Structural Engineer#" + "|General", "Computers/Software Development/EDP/Internet*|Customer Care#" + "|Data Entry Operator#" + "|Data WareHousing#"+ "|Database Administrator( ORACLE , SYBASE , DB2 , SQL SERVER,...)#" + "|Development (C , C++ , VC++ , JAVA,...)#" + "|ERP ( Bann , Marshall , Oracle , People Soft , SAP,...)#" + "|Graphic Designer#" + "|Networking Engineer#" + "|Networking Manager#" + "|Project Leader#" + "|Project Manager#" + "|Multimedia Designer#" + "|Service Engineer#" + "|System Analyst#" + "|Technical Suppot Executive#" + "|General", "Electrical*|Configuration Analyst#" + "|Controlled System Engineer#"+ "|Device Driver Devloper#"+ "|Equipment Maintanance Technician#"+ "|Electrical Engineer#"+ "|Process Enginerer#"+ "|Quality Control Inspector / Engineer#"+ "|General", "Electronics*|Fo#" + "|Device Driver Specialist#"+ "|Hardware Engineer#"+ "|PCB Designer#"+ "|Musical Instruments#"+ "|Quality Control Inspector / Engineer#"+ "|General", "Law*|Civil#" + "|Criminal#" + "|Tax#" + "|Pottery#" + "|Handicrafts#"+ "|Others", "Medical*|Anaesthesiology Consultant#" + "|Cardiology Consultant#" + "|Childrens Consultant#"+ "|Dental Consultant#" + "|Dermatology Consultant#" + "|Endocrenology cosultant#" + "|E.N.T. Consultant#"+ "|Gastroenterology cosultant#" + "|General cosultant#" + "|Geriatrics cosultant#" + "|Gerontology cosultant#" + "|Hematology cosultant#" + "|Homeopathy Consultant#"+ "|Immunology cosultant#" + "|Maternity Consultant#"+ "|Orthopedics Consultant#"+ "|Pediatrics Consultant#"+ "|Radiology Consultant#"+ "|Siddha Consultant#" + "|Surgery Consultant#"+ "|Homeopathy Consultant#"+ "|Urology Consultant#"+ "|Childrens Consultant#"+ "|Others", "Teaching*|College Lecturer#" + "|Computer Teacher#" + "|Dance Teacher#" + "|Faculitie#" + "|High School Teacher#" + "|Primary School Teacher#" + "|School Teacher ( ANGLO-INDIAN )#" + "|School Teacher ( CBSC )#" + "|School Teacher ( MATRIC)#" + "|Tuction Teacher#" + "|Vocal Tutor#" + "|General", "Marketing*|Business Development Executive#" + "|Chief Marketing Executive#"+ "|Marketing Manager#" + "|Sales Executive#"+ "|Sales Representative#"+ "|Senior Sales Executive#"+ "|General", "Mechanical*|Cane#" + "|Fibre#"+ "|Plastic#" + "|Steel#"+ "|Fibre#"+ "|General", "Sales*|Action Figures#" + "|Building sets#"+ "|Cards#"+ "|Cars and Vehicles#"+ "|Decoratives#" + "|Dolls#"+ "|Stuffed Toys#"+ "|Video Games#"+ "|Others", "Hobbies and Collections*|Cards#" + "|Celebrity pictures#"+ "|Coins#"+ "|Stamps#"+ "|Vintage Cars#" + "|Others", "Household Appliances*|Air Conditioners#" + "|Aircoolers#"+ "|Appliances#"+ "|Foodstuff#"+ "|Furnitures#" + "|Microwave oven#"+ "|Refrigerators#"+ "|Tools#"+ "|Others", "Jewellery and Jem stones*|Diamonds#" + "|Gem stones#"+ "|Gold jewellery#"+ "|Pearls#"+ "|Silver#"+ "|Others", "Musical Instruments*|Electronic Instruments#" + "|String Instruments#"+ "|Wind Instruments#"+ "|Piano#"+ "|General", "Photo and Electronic Goods*|Audio#" + "|CDs#"+ "|Copiers#"+ "|Digital Organizers#"+ "|Fax#" + "|Players-ACD and VCD#"+ "|Phones#"+ "|Photo Equipments#"+ "|Television#"+ "|Others", "Property*|Lease#" + "|Ownership#"+ "|Rent#"+ "|Sell#"+ "|General", "Sports*|Base Ball#"+ "|Basket Ball#"+ "|Car Rally#" + "|Cricket#"+ "|Hockey#"+ "|Volley Ball#"+ "|Water Games#" + "|Others", "Travel and Transport*|Holiday Packages#"+ "|Hotels#"+ "|Luggage#" + "|Resorts#"+ "|Travel Tickets#"+ "|Vacation Rentals#"+ "|Others", "Other Goods and Services*|Industrial Goods#"+ "|Office Products#"+ "|Pets#" + "|Real Estate#"+ "|Services#"+ "|Stationery#"+ "|Others" ); /*****************************************************************/ /*****************************************************************/ /*****************************************************************/ /*****************************************************************/ function stringSplit ( string, delimiter ) { if ( string == null | | string == "" ) { return null ; } else if ( string.split != null ) { return string.split ( delimiter ) ; } else { var ar = new Array() ; var i = 0 ; var start = 0 ; while( start >= 0 && start < string.length ) { var end = string.indexOf ( delimiter, start ) ; if( end >= 0 ) { ar[i++] = string.substring ( start, end ) ; start = end+1 ; } else { ar[i++] = string.substring ( start, string.length ) ; start = -1 ; } } return ar ; } } /**************************************************************/ function updateMenus ( what ) { var n = what.selectedIndex; //what.form.myLinks.length = final_list[n].title.length; //what.ft.ffarea.length = final_list[n].title.length; what.form.ffarea.length = final_list[n].title.length; //for (var x = 0; x < what.form.myLinks.length; x++) //for (var x = 0; x < what.ft.ffarea.length; x++) for (var x = 0; x < what.form.ffarea.length; x++) { //what.form.myLinks.options[x].text = final_list[n].title[x]; //what.ft.ffarea.options[x].text = final_list[n].title[x]; what.form.ffarea.options[x].text = final_list[n].title[x]; //what.ft.myLinks.options[x].value = final_list[n].url[x]; //what.ft.ffarea.options[x].value = final_list[n].url[x]; what.form.ffarea.options[x].value = final_list[n].url[x]; } //what.form.myLinks.selectedIndex = 0; //what.ft.ffarea.selectedIndex = 0; what.form.ffarea.selectedIndex = 0; } /**************************************************************/ function give_names () { //document.myForm.main.length = names.length; document.ft.findus.length = names.length; //document.myForm.myLinks.length = final_list[0].title.length; document.ft.ffarea.length = final_list[0].title.length; for ( var i=0; i<names.length; i++ ) //document.myForm.main.options[i].text = final_list[i].name; document.ft.findus.options[i].text = final_list[i].name; for (var x=0; x<final_list[0].url.length; x++) //document.myForm.myLinks.options[x].text = final_list[0].title[x]; document.ft.ffarea.options[x].text = final_list[0].title[x]; } /**************************************************************/ function createMenus () { for ( var i=0; i<menu.length; i++ ){ names[i] = stringSplit (menu[i], '*' ); link = new Link(names[i][0]); temp[i] = stringSplit(names[i][1], '#'); final_list[i] = link; for (var x=0; x<temp[i].length; x++){ temp2[x] = stringSplit( temp[i][x], '|' ); final_list[i].url[x] = temp2[x][0]; final_list[i].title[x] = temp2[x][1]; } } give_names(); } /**************************************************************/ // end jscript hiding --> |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > IE vs NN |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|