Jump to content
  • 0

Помогите с меню


Quest182
 Share

Question

Вот всё мучаюсь с меню, сделал

вот на странице лучшая школа покера

<select name='f_Regions[]' class='select' onchange='showDillers(this.value)'>

<option value=''>Выберите регион...</option>

<option value='4' onclick="document.location.href = 'regions/altay.php'">Алтайский край</value>

<option value='5' onclick="document.location.href = 'regions/archangelsk.php'">Архангельская область</value>

<option value='6' onclick="document.location.href = 'regions/astrakhan.php'">Астраханская область</value>

<option value='7' onclick="document.location.href = 'regions/belgorod.php'">Белгородская область</value>

<option value='8' onclick="document.location.href = 'regions/volgograd.php'">Волгоградская область</value>

<option value='9' onclick="document.location.href = 'regions/vologda.php'">Вологодская область</value>

<option value='10' onclick="document.location.href = 'regions/voronezh.php'">Воронежская область</value>

<option value='11' onclick="document.location.href = 'regions/irkutsk.php'">Иркутская область</value>

<option value='12' onclick="document.location.href = 'regions/kamchatka.php'">Камчатская область</value>

<option value='13' onclick="document.location.href = 'regions/kemerovo.php'">Кемеровская область</value>

<option value='14' onclick="document.location.href = 'regions/kirov.php'">Кировская область</value>

<option value='15' onclick="document.location.href = 'regions/kostroma.php'">Костромская область</value>

<option value='16' onclick="document.location.href = 'regions/krasnodar.php'">Краснодарский край</value>

<option value='17' onclick="document.location.href = 'regions/krasnyarsk.php'">Красноярский край</value>

<option value='18' onclick="document.location.href = 'regions/kurgan.php'">Курганская область</value>

<option value='19' onclick="document.location.href = 'regions/moscow.php'">Москва и Московская область</value>

<option value='20' onclick="document.location.href = 'regions/murmansk.php'">Мурманская область</value>

<option value='21' onclick="document.location.href = 'regions/nao.php'">Ненецкий АО</value>

<option value='22' onclick="document.location.href = 'regions/novosibirsk.php'">Новосибирская область</value>

<option value='23' onclick="document.location.href = 'regions/orenburg.php'">Оренбургская область</value>

<option value='24' onclick="document.location.href = 'regions/perm.php'">Пермский край</value>

<option value='25' onclick="document.location.href = 'regions/primorsk.php'">Приморский край</value>

<option value='26' onclick="document.location.href = 'regions/altay.php'">Республика Алтай</value>

<option value='27' onclick="document.location.href = 'regions/bash.php'">Республика Башкортостан</value>

<option value='28' onclick="document.location.href = 'regions/komi.php'">Республика Коми</value>

<option value='29' onclick="document.location.href = 'regions/mariel.php'">Республика Марий Эл</value>

<option value='30' onclick="document.location.href = 'regions/saha.php'">Республика Саха (Якутия)</value>

<option value='31' onclick="document.location.href = 'regions/osetiya.php'">Республика Северная Осетия-Алания</value>

<option value='32' onclick="document.location.href = 'regions/tatarstan.php'">Республика Татарстан</value>

<option value='33' onclick="document.location.href = 'regions/tiva.php'">Республика Тыва</value>

<option value='34' onclick="document.location.href = 'regions/halasiya.php'">Республика Хакасия</value>

<option value='35' onclick="document.location.href = 'regions/rostov.php'">Ростовская область</value>

<option value='36' onclick="document.location.href = 'regions/samara.php'">Самарская область</value>

<option value='37' onclick="document.location.href = 'regions/leningrad.php'">Санкт-Петербург и Ленинградская область</value>

<option value='38' onclick="document.location.href = 'regions/saratov.php'">Саратовская область</value>

<option value='39' onclick="document.location.href = 'regions/sahalin.php'">Сахалинская область</value>

<option value='40' onclick="document.location.href = 'regions/sverdlovsk.php'">Свердловская область</value>

<option value='41' onclick="document.location.href = 'regions/stavropol.php'">Ставропольский край</value>

<option value='42' onclick="document.location.href = 'regions/tomsk.php'">Томская область</value>

<option value='43' onclick="document.location.href = 'regions/tula.php'">Тульская область</value>

<option value='44' onclick="document.location.href = 'regions/tumen.php'">Тюменская область</value>

<option value='45' onclick="document.location.href = 'regions/udmurtiya.php'">Удмуртская республика</value>

<option value='46' onclick="document.location.href = 'regions/ulyanovsk.php'">Ульяновская область</value>

<option value='47' onclick="document.location.href = 'regions/khabarovsk.php'">Хабаровский край</value>

<option value='48' onclick="document.location.href = 'regions/xmao.php'">Ханты-Мансийский АО</value>

<option value='49' onclick="document.location.href = 'regions/chelyabinsk.php'">Челябинская область</value>

<option value='50' onclick="document.location.href = 'regions/chita.php'">Читинская область</value>

<option value='51' onclick="document.location.href = 'regions/chuvashiya.php'">Чувашская республика</value>

<option value='52' onclick="document.location.href = 'regions/yaroslavl.php'">Ярославская область</value>

</select>

не работает оно почему-то в эксплорере, можт кто знает в чём дело?

я не оч соображаю в коде, можт чё лишнего взял

Edited by Quest182
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

похожий вопрос. почему-то не пашет в ИЕ

<html>

<head>

<script type="text/javascript">

function show(id) {

document.getElementById(id).style.display = document.getElementById(id).style.display == 'none' ? 'block' : 'block';

}

function hide(id) {

document.getElementById(id).style.display = document.getElementById(id).style.display == 'block' ? 'none' : 'none';

}

</script>

</head>

<body>

<select onchange="show(id); hide(id)">

<option onClick="show('item1'); show('item2'); show('item3')"> all</option>

<option onClick="show('item1'); hide('item2'); hide('item3')"> item1</option>

<option onClick="hide('item1'); show('item2'); hide('item3')"> item2</option>

<option onClick="hide('item1'); hide('item2'); show('item3')"> item3</option>

</select>

<table>

<tr><td id="item1" style="display: block">asdasdasdasd</td></tr>

<tr><td id="item2" style="display: block">qweqweqweqwe</td></tr>

<tr><td id="item3" style="display: block">zxczxczxczxc</td></tr>

</table>

</body>

</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy