FREE CODE Friday, 10.20.2017, 0:46 AM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
۞Forum Statistics۞
NEW TOPPIV
HOT TOPPIC
TOP MEMBERS
NEW MEMBERS
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • shadow text Have(0) reviews faxuhi
  • Beautiful text two Have(0) reviews faxuhi
  • Nice menu with java script <p1> Have(2) reviews faxuhi
  • Mouse Clock Have(1) reviews faxuhi
  • HTML table placeholder Have(0) reviews faxuhi
  • Html graphic bullets Have(0) reviews faxuhi
  • Different times of the world by the users choice from a list Have(0) reviews faxuhi
  • Mouseover Alert HTML Script Have(0) reviews faxuhi
  • Redirect to another page and link automatically to other pg Have(0) reviews faxuhi
  • Combo box link box to browse your website easily Have(0) reviews faxuhi
  • Message to user by clicking a button Have(0) reviews faxuhi
  • Background changing color effect Have(0) reviews faxuhi
  • faxuhi[189]Bài
  • mcsnagger0022[0]Bài
  • thinknoodles[0]Bài
  • karaganis888[0]Bài
  • faxuhi [189]Bài
  • mcsnagger0022 [0]Bài
  • thinknoodles [0]Bài
  • karaganis888 [0]Bài
  • Page 1 of 11
    Forum » HTML Codes » choose your country » choose your country
    choose your country
    faxuhiDate: Monday, 07.25.2011, 11:12 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code


    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">

    <!-- Begin
    var africaArray =  new Array("('Select country','',true,true)",
    "('Ethiopia')",
    "('Somalia')",
    "('South Africa')",
    "('Other')");
    var middleeastArray =  new Array("('Select country','',true,true)",
    "('Egypt')",
    "('Iran')",
    "('Israel')",
    "('Kuwait')",
    "('Lebanon')",
    "('Morocco')",
    "('Saudi Arabia')",
    "('Syria')",
    "('Turkey')",
    "('U. A. Emirates')",
    "('Other')");
    var asiaArray =  new Array("('Select country','',true,true)",
    "('Armenia')",
    "('Bangladesh')",
    "('Cambodia')",
    "('China')",
    "('India')",
    "('Indonesia')",
    "('Iran')",
    "('Japan')",
    "('Malaysia')",
    "('Myanmar')",
    "('Nepal')",
    "('Pakistan')",
    "('Philippines')",
    "('Singapore')",
    "('South Korea')",
    "('Sri Lanka')",
    "('Taiwan')",
    "('Thailand')",
    "('Uzbekistan')",
    "('Vietnam')",
    "('Other')");
    var europeArray =  new Array("('Select country','',true,true)",
    "('Albania')",
    "('Austria')",
    "('Belarus')",
    "('Belgium')",
    "('Bosnia')",
    "('Bulgaria')",
    "('Croatia')",
    "('Cyprus')",
    "('Czech Rep.')",
    "('Denmark')",
    "('Estonia')",
    "('Finland')",
    "('France')",
    "('Germany')",
    "('Greece')",
    "('Hungary')",
    "('Iceland')",
    "('Ireland')",
    "('Italy')",
    "('Latvia')",
    "('Liechtenstein')",
    "('Lithuania')",
    "('Luxembourg')",
    "('Macedonia')",
    "('Malta')",
    "('Monaco')",
    "('Netherlands')",
    "('Norway')",
    "('Poland')",
    "('Portugal')",
    "('Romania')",
    "('Russia')",
    "('Slovakia')",
    "('Slovenia')",
    "('Spain')",
    "('Sweden')",
    "('Switzerland')",
    "('Ukraine')",
    "('United Kingdom')",
    "('Other')");
    var australiaArray =  new Array("('Select country','',true,true)",
    "('Australia')",
    "('New Zealand')",
    "('Other')");
    var lamericaArray =  new Array("('Select country','',true,true)",
    "('Costa Rica')",
    "('Cuba')",
    "('El Salvador')",
    "('Guatemala')",
    "('Haiti')",
    "('Jamaica')",
    "('Mexico')",
    "('Panama')",
    "('Other')");
    var namericaArray =  new Array("('Select country','',true,true)",
    "('Canada')",
    "('USA')",
    "('Other')");
    var samericaArray =  new Array("('Select country','',true,true)",
    "('Argentina')",
    "('Bolivia')",
    "('Brazil')",
    "('Chile')",
    "('Colombia')",
    "('Ecuador')",
    "('Paraguay')",
    "('Peru')",
    "('Suriname')",
    "('Uruguay')",
    "('Venezuela')",
    "('Other')");
    function populateCountry(inForm,selected) {
    var selectedArray = eval(selected + "Array");
    while (selectedArray.length < inForm.country.options.length) {
    inForm.country.options[(inForm.country.options.length - 1)] = null;
    }
    for (var i=0; i < selectedArray.length; i++) {
    eval("inForm.country.options[i]=" + "new Option" + selectedArray[i]);
    }
    if (inForm.region.options[0].value == '') {
    inForm.region.options[0]= null;
    if ( navigator.appName == 'Netscape') {
    if (parseInt(navigator.appVersion) < 4) {
    window.history.go(0);
    }
    else {     
    if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
    window.history.go(0);
                 }
              }
           }
        }
    }
    function populateUSstate(inForm,selected) {   
    var stateArray =  new Array("('Select State','',true,true)",
    "('Alabama')",
    "('Alaska')",
    "('Arizona')",
    "('Arkansas')",
    "('California')",
    "('Colorado')",
    "('Connecticut')",
    "('Delaware')",
    "('Columbia')",
    "('Florida')",
    "('Georgia')",
    "('Hawaii')",
    "('Idaho')",
    "('Illinois')",
    "('Indiana')",
    "('Iowa')",
    "('Kansas')",
    "('Kentucky')",
    "('Louisiana')",
    "('Maine')",
    "('Maryland')",
    "('Massachusetts')",
    "('Michigan')",
    "('Minnesota')",
    "('Mississippi')",
    "('Missouri')",
    "('Montana')",
    "('Nebraska')",
    "('Nevada')",
    "('New Hampshire')",
    "('New Jersey')",
    "('New Mexico')",
    "('New York')",
    "('North Carolina')",
    "('North Dakota')",
    "('Ohio')",
    "('Oklahoma')",
    "('Oregon')",
    "('Pennsylvania')",
    "('Rhode Island')",
    "('South Carolina')",
    "('South Dakota')",
    "('Tennessee')",
    "('Texas')",
    "('Utah')",
    "('Vermont')",
    "('Virginia')",
    "('Washington')",
    "('West Virginia')",
    "('Wisconsin')",
    "('Wyoming')");
    if (selected == 'USA') {
    for (var i=0; i < stateArray.length; i++) {
    eval("inForm.country.options[i]=" + "new Option" + stateArray[i]);
    }
    if ( navigator.appName == 'Netscape') {
    if (parseInt(navigator.appVersion) < 4) {
    window.history.go(0)
    }
    else {      
    if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
    window.history.go(0)
              }
           }
        }
    }
    else {
    }   
    if (selected == 'Other') {
    newCountry = "";
    while (newCountry == ""){
    newCountry=prompt ("Please enter the name of your country.", "");
    }
    if (newCountry != null) {
    inForm.country.options[(inForm.country.options.length-1)]=new Option(newCountry,newCountry,true,true);
    inForm.country.options[inForm.country.options.length]=new Option('Other, not listed','Other');
        }
    }
    if(inForm.country.options[0].text == 'Select country') {
    inForm.country.options[0]= null;
        }
    }
    // End -->
    </script>

    <!-- CCONTINUE  -->

    <BODY>

    <center>
    <form name="globe">
    <select name="region" onChange="populateCountry(document.globe,document.globe.region.options[document.globe.region.selectedIndex].value)">
    <option selected value=''>Select Region</option>
    <option value='asia'>Asia</option>
    <option value='africa'>Africa</option>
    <option value='australia'>Australia</option>
    <option value='europe'>Europe</option>
    <option value='middleeast'>Middle East</option>
    <option value='lamerica'>Latin America</option>
    <option value='namerica'>North America</option>
    <option value='samerica'>South America</option>
    </select>
    <select name="country" onChange="populateUSstate(document.globe,document.globe.country.options[document.globe.country.selectedIndex].text)">
    <option value=''><--------------------</option>
    </select>
    </form>
    </center>

     
    Forum » HTML Codes » choose your country » choose your country
    Page 1 of 11
    Search:

    Copyright MyCorp © 2017 Website builderuCoz