/    Sign up×
Community /Pin to ProfileBookmark

pop-up window part is not working 1

hi guys

the following code is my Javascript for drop-down pop up menu. Everything is working fine except I choose make Oldsmobile, Plymouth and
Volkswagen, When I choose those three, the Model does not appear it and could anyone help me to fix it? thank you very much

<script language=”JavaScript” type=”text/JavaScript”>
<!–
function UpdateModels() {
document.fm.f5948.length = 0;
var the_select = document.fm.f5947;
var the_index = the_select.selectedIndex;
var the_selected = the_select.options[the_index].value;
document.fm.f5948.options[0] = new Option(‘-Select One-‘,”);

automake=new Array(40);
automodel=new Array(40);
automakecount=40;
automake[0]=’Make’;
automodel[0]= new Array(‘Model’);
automake[1]=’Acura’;
automodel[1]= new Array(‘CL’,’Integra’,’Legend’,’MDX 4×4′,’RL’,’RSX’,’SLX 4×4′,’TL’,’TSX’,’Vigor’);
automake[2]=’Audi’;
automodel[2]= new Array(‘100′,’100 AWD’,’5000′,’80’,’90’,’90 AWD’,’A4′,’A4 Quattro’,’A6′,’A6 Quattro’,’A8′,’A8 Quattro’,’Cabriolet’,’Quattro’,’S4 Quattro’,’S6 Quattro’,’TT’,’TT Quattro’);
automake[3]=’BMW’;
automodel[3]= new Array(‘318′,’323′,’325′,’328′,’330′,’330 AWD’,’525′,’528′,’530′,’535′,’540′,’6 Series’,’735′,’740′,’M3′,’M5′,’X3′,’X5 AWD’,’Z3′);
automake[4]=’Buick’;
automodel[4]= new Array(‘Century’,’Electra’,’Grand National’,’LeCrosse’,’LeSabre’,’Park Avenue’,’Raineer’,’Raineer 4×4′,’Reatta’,’Regal’,’Rendezvous’,’Rendezvous AWD’,’Riviera’,’Roadmaster’,’Skylark’,’Terraza’);
automake[5]=’Cadillac’;
automodel[5]= new Array(‘Brougham’,’Catera’,’CTS’,’DeVille’,’Eldorado’,’Escalade’,’Escalade AWD’,’Fleetwood’,’Northstar’,’Seville’,’SRX’,’SRX AWD’);
automake[6]=’Chevrolet’;
automodel[6]= new Array(‘1500′,’1500 4×4′,’1500 4×4 Diesel’,’1500 Diesel’,’2500′,’2500 4×4′,’2500 4×4 Diesel’,’2500 Diesel’,’3500′,’3500 4×4′,’3500 4×4 Diesel’,’3500 Diesel’,’APV’,’Astro’,’Astro AWD’,’Avalanche’,’Avalanche 4X4′,’Aveo’,’Beretta’,’Blazer’,’Blazer 4×4′,’Blazer 4×4 Diesel’,’Camaro’,’Camaro V8′,’Caprice’,’Cavalier’,’Celebrity’,’Cobalt’,’Colorado’,’Colorado 4×4′,’Corsica’,’Corvette’,’Equinox’,’Express’,’G10′,’G20′,’G20 Diesel’,’G30′,’Impala’,’Impala SS’,’Iroc/Z28′,’Lumina’,’Lumina APV’,’Malibu’,’Malibu Maxx’,’Metro’,’Monte Carlo’,’Monte Carlo SS’,’Nova’,’Prizm’,’S10′,’S10 4×4′,’S10 Blazer’,’S10 Blazer 4×4′,’Spectrum’,’SSR’,’Suburban’,’Suburban 4×4′,’Suburban 4×4 Turbo Diesel’,’Suburban Turbo Diesel’,’Tahoe’,’Tahoe 4×4′,’Tahoe 4×4 Turbo Diesel’,’Tahoe Turbo Diesel’,’Tracker’,’Tracker 4×4′,’Trail Blazer’,’Trailblazer’,’Trailblazer 4×4′,’Uplander’,’Venture’,’Venture 4×4′);
automake[7]=’Chrysler’;
automodel[7]= new Array(‘300 C’,’300M’,’Cirrus’,’Concord LHS’,’Concorde’,’Crossfire’,’Fifth Ave’,’Grand Voyager’,’Imperial’,’Intrepid’,’Intrepid 24V’,’LeBaron’,’LHS’,’Minivan’,’Minivan AWD’,’New Yorker’,’Pacifica’,’PT Cruiser’,’Sebring’,’Town & Country’,’Town & Country AWD’,’Voyager’);
automake[8]=’Daihatsu’;
automodel[8]= new Array(‘Charade’,’Rocky 4×4′);
automake[9]=’Dodge’;
automodel[9]= new Array(‘150′,’150 4×4′,’1500′,’1500 4×4′,’250′,’250 4×4′,’250 4×4 Diesel’,’250 Diesel’,’2500′,’2500 4×4′,’2500 4×4 Diesel’,’2500 Diesel’,’350′,’350 4×4′,’350 4×4 Diesel’,’350 Diesel’,’3500′,’3500 4×4′,’3500 4×4 Diesel’,’3500 Diesel’,’Avenger’,’Caravan’,’Caravan AWD’,’Colt’,’Colt 4×4′,’Dakota’,’Dakota 4×4′,’Daytona’,’Diplomat’,’Durango’,’Durango 4×4′,’Dynasty’,’Grand Caravan’,’Intrepid’,’Intrepid 24V’,’Magnum’,’Monaco’,’Neon’,’Omni’,’Raider’,’Raider 4×4′,’Ram SRT10′,’Shadow’,’Spirit’,’Stratus’);
automake[10]=’Eagle’;
automodel[10]= new Array(‘Premier’,’Summit’,’Summit AWD’,’Talon’,’Talon AWD’,’Vision’);
automake[11]=’Ford’;
automodel[11]= new Array(‘150′,’250′,’350′,’Aerostar’,’Aerostar 4×4′,’Aspire’,’Bronco’,’Bronco 4×4′,’Club Wagon’,’Club Wagon Diesel’,’Contour’,’Crown Victoria’,’Econoline’,’Econoline Diesel’,’Escape’,’Escape 4×4′,’Escort’,’Excursion’,’Excursion 4×4′,’Excursion 4×4 Diesel’,’Excursion Diesel’,’Expedition’,’Expedition 4×4′,’Explorer’,’Explorer 4×4′,’Explorer AWD’,’E250′,’F150′,’F150 4×4′,’F150 4×4 Diesel’,’F150 Diesel’,’F250′,’F250 4×4′,’F250 4×4 Diesel’,’F250 Diesel’,’F350′,’F350 4×4′,’F350 4×4 Diesel’,’F350 Diesel’,’Festiva’,’Five Hundred’,’Focus’,’Mustang’,’Mustang GT’,’Probe’,’Ranger’,’Ranger 4×4′,’Taurus’,’Taurus SHO’,’Tempo’,’Thunderbird’,’Thunderbird 2003′,’Windstar’,’ZX2′,’ZX3′);
automake[12]=’Geo’;
automodel[12]= new Array(‘Metro’,’Prizm’,’Spectrum’,’Storm’,’Tracker’,’Tracker 4×4′);
automake[13]=’GMC’;
automodel[13]= new Array(‘1500′,’1500 4×4′,’1500 4×4 Diesel’,’1500 Diesel’,’2500′,’2500 4×4′,’2500 4×4 Diesel’,’2500 Diesel’,’3500′,’3500 4×4′,’3500 4×4 Diesel’,’3500 Diesel’,’Canyon’,’Canyon 4×4′,’Envoy’,’Envoy 4×4′,’Jimmy’,’Jimmy 4×4′,’S15′,’S15 4×4′,’Safari’,’Safari AWD’,’Saffari’,’Sonoma’,’Sonoma 4×4′,’Suburban’,’Suburban 4×4′,’Suburban 4×4 Diesel’,’Suburban Diesel’,’Yukon’,’Yukon 4×4′,’Yukon 4×4 Diesel’,’Yukon Diesel’);
automake[14]=’Honda’;
automodel[14]= new Array(‘Accord’,’Civic’,’CRV’,’CRV 4×4′,’CRX’,’Del Sol’,’Element’,’Element AWD’,’Odyssey’,’Passport’,’Passport 4×4′,’Pilot’,’Prelude’,’S2000′);
automake[15]=’Hyundai’;
automodel[15]= new Array(‘Accent’,’Elantra’,’Excel’,’Santa Fe’,’Santa Fe 4×4′,’Scoupe’,’Sonata’,’Tiburon’,’XG300′);
automake[16]=’Infiniti’;
automodel[16]= new Array(‘FX35′,’FX45′,’G20′,’G35′,’I30′,’I35′,’J30′,’M30′,’M45′,’Q45′,’QX4′,’QX4 4×4’);
automake[17]=’Isuzu’;
automodel[17]= new Array(‘Amigo’,’Amigo 4×4′,’Axiom’,’Axiom 4×4′,’Hombre’,’Hombre 4×4′,’Imark’,’Impulse’,’Impulse AWD Turbo’,’Oasis’,’Pickup’,’Pickup 4×4′,’Rodeo’,’Rodeo 4×4′,’Stylus’,’Trooper’,’Trooper 4×4′,’VehiCross 4×4′);
automake[18]=’Jaguar’;
automodel[18]= new Array(‘S-Type’,’XJ6′,’XJ8′,’XJS’,’XK8′,’X-Type’);
automake[19]=’Jeep’;
automodel[19]= new Array(‘Cherokee’,’Cherokee 4×4′,’CJ7′,’CJ7 4×4′,’Grand Cherokee’,’Grand Cherokee 4×4′,’Grand Wagoneer’,’Grand Wagoneer 4×4′,’Liberty’,’Liberty 4×4′,’Pickup’,’Pickup 4×4′,’Wrangler’,’Wrangler 4×4′);
automake[20]=’Kia’;
automodel[20]= new Array(‘Amanti’,’Optima’,’Rio’,’Sedona’,’Sephia’,’Sorento’,’Spectra’,’Sportage’,’Sportage 4×4′);
automake[21]=’Lexus’;
automodel[21]= new Array(‘ES 250′,’ES 300′,’ES 400′,’GS 300′,’GS 400′,’GS 430′,’GX 470′,’IS 300′,’LS 400′,’LS 430′,’LX 450 4×4′,’LX 470 4×4′,’RX 300′,’RX 300 AWD’,’RX 330′,’RX 330 AWD’,’SC 300′,’SC 400′,’SC 430′);
automake[22]=’Lincoln’;
automodel[22]= new Array(‘Aviator’,’Aviator 4×4′,’Blackwood’,’Continental’,’LS’,’Mark VII’,’Mark VIII’,’Navigator’,’Navigator 4×4′,’Town Car’);
automake[23]=’Mazda’;
automodel[23]= new Array(‘3′,’323′,’626′,’929′,’B2200′,’B2200 4X4′,’B2300′,’B2300 4×4′,’B2500′,’B2500 4×4′,’B2600′,’B2600 4X4′,’B3000′,’B3000 4×4′,’B4000′,’B4000 4×4′,’Mazda 6′,’Miata’,’Millenia’,’MPV’,’MPV 4×4′,’MX3′,’MX6′,’Navajo’,’Navajo 4×4′,’Pickup’,’Pickup 4×4′,’Protege’,’RX7′,’Tribute’,’Tribute 4×4′);
automake[24]=’Mercedes’;
automodel[24]= new Array(‘190′,’260′,’300′,’300 4×4′,’300D Diesel’,’300SD Diesel’,’380SL’,’400′,’420′,’500′,’C220′,’C230′,’C240′,’C280′,’C320′,’C36′,’C43′,’CL500′,’CLK320′,’CLK430′,’E300 Diesel’,’E320′,’E320 AWD’,’E420′,’E430′,’E430 AWD’,’E500′,’ML320 4×4′,’ML430′,’S320′,’S350 Turbo Diesel’,’S420′,’S430′,’S500′,’SL320′,’SL500′,’SLK230′);
automake[25]=’Mercury’;
automodel[25]= new Array(‘Capri’,’Cougar’,’Grand Marquis’,’Marauder’,’Monterey’,’Mountaineer’,’Mountaineer 4×4′,’Mountaineer AWD’,’Mystique’,’Sable’,’Topaz’,’Tracer’,’Villager’);
automake[26]=’Mitsubishi’;
automodel[26]= new Array(‘Diamante’,’Eclipse’,’Eclipse AWD’,’Endeavor’,’Endeavor 4×4′,’Expo’,’Expo AWD’,’Galant’,’Galant AWD’,’Lancer’,’Mirage’,’Montero’,’Montero 4×4′,’Montero Sport’,’Montero Sport 4×4′,’Outlander’,’Outlander 4×4′,’Pickup’,’Pickup 4×4′,’Precis’,’Starion’);
automake[27]=’Nissan’;
automodel[27]= new

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@handong888authorFeb 08.2005 — This is the code continue from pop-up window part is not working 1, I can not put too much at one time, could you check it what is wrong with my Oldsmobile, Plymouth and Volkswagen. thank you very much

Array('200SX','240SX','300ZX','350Z','Altima','Frontier','Frontier 4x4','Maxima','Murano','Murano 4x4','NX','Pathfinder','Pathfinder 4x4','Pathfinder Armada','Pickup','Pickup 4x4','Quest','Sentra','Stanza','Titan','Xterra','Xterra 4x4');

automake[28]='Oldsmobile';

automodel[28]= new Array('88','98','Achieva','Alero','Aurora','Bravada','Bravada AWD','Calais','Ciera','Custom Cruiser','Cutlass','Cutlass Cruiser','Delta 88','Intrigue','LSS','Regency','Royale','Silhouette','Toronado');

automake[29]='Plymouth';

automodel[29]= new Array('Acclaim','Breeze','Colt','Colt AWD','Grand Voyager','Grand Voyager AWD','Horizon','Laser','Laser AWD','Laser Turbo','Neon','Reliant','Sundance','Voyager','Voyager AWD');

automake[30]='Pontiac';

automodel[30]= new Array('6000','Aztek','Aztek AWD','Bonneville','Fiero','Firebird','Formula','Grand Am','Grand Prix','GTO','LeMans','Montana','Montana AWD','Sunbird','Sunfire','Trans Am','Trans Sport','Vibe','Vibe AWD');

automake[31]='Porsche';

automodel[31]= new Array('911','928','968','Boxster');

automake[32]='Saab';

automodel[32]= new Array('9-3','9-5','9-7x','900','900 Turbo','9000','Aero','Viggen');

automake[33]='Saturn';

automodel[33]= new Array('Ion','L100','L200','L300','LS','LS1','LW','SC','SL','SW','vue','VUE AWD');

automake[34]='Scion';

automodel[34]= new Array('xA','xB','tC');

automake[35]='Subaru';

automodel[35]= new Array('Baja','Forester AWD','Impreza','Impreza AWD','Justy','Legacy','Legacy AWD','Loyale','Loyale AWD','Outback AWD','SVX','SVX AWD');

automake[36]='Suzuki';

automodel[36]= new Array('Aerio','Esteem','Forenza','Grand Vitara','Grand Vitara 4x4','Relay','Samurai','Samurai 4x4','Sidekick','Sidekick 4x4','Swift','Verona','Vitara','Vitara 4x4','X90','X90 4x4','XL7','XL7 4x4');

automake[37]='Toyota';

automodel[37]= new Array('4Runner','4Runner 4x4','Avalon','Camry','Camry AWD','Celica','Celica AWD','Corolla','Corolla AWD','Cressida','Echo','Highlander','Highlander 4x4','Land Cruiser AWD','Matrix','Matrix AWD','MR2','MR2 Turbo','Paseo','Pickup','Pickup 4x4','Previa','Previa AWD','RAV4','RAV4 4x4','Sequoia','Sequoia 4x4','Sienna','Solara','T100','T100 4x4','Tacoma','Tacoma 4x4','Tercel','Tundra','Tundra 4x4');

automake[38]='Volkswagen';

automodel[38]= new Array('Cabrio','Cabriolet','Corrado','Eurovan','Fox','Golf','Golf Diesel','GTI','Jetta','Jetta Diesel','Minivan','New Beetle','New Beetle Diesel','New Beetle Turbo','Passat','Passat AWD','Passat Diesel','Phaeton','Scirocco','Touareg');

automake[39]='Volvo';

automodel[39]= new Array('240','740','760','780','850','940','960','C70','S40','S60','S60 AWD','S70','S70 AWD','S80','S90','V40','V70','V70 AWD','V90','XC70','XC90');

for(x=0;x<=automake.length;x++)

{

if(automake[x]==the_selected)

{

for(y=1;y<automodel[x].length;y++)

{

document.fm.f5948.options[y] = new Option(automodel[x][y],automodel[x][y]);

}

}

}





}

//-->

</script>

<script language=javascript>

UpdateModels();

</script>
×

Success!

Help @handong888 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...