Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script language="JavaScript" type="text/javascript">
- function change()
- {
- var marka = document.getElementById("mark");
- model = marka.value;
- var layer = document.getElementById(model);
- layer.style.display = "block";
- }
- function blank()
- {
- var marka = document.getElementById("mark");
- model = marka.value;
- var layer = document.getElementById('2');
- layer.style.display = "none";
- }
- function ShowOr(d1) {
- if (d1 != '') ShowDiv(d1);
- };
- function ShowDiv(id) {
- var item = null;
- if (document.getElementById) {
- item = document.getElementById(id);
- } else if (document.all){
- item = document.all[id];
- } else if (document.layers){
- item = document.layers[id];
- }
- if (!item) {
- }
- else if (item.style) {
- if (item.style.display == "none"){ item.style.display = ""; }
- else {item.style.display = ""; }
- }else{ item.visibility = "show"; }
- };
- function OrHide(d1) {
- if (d1 != '') HideDiv(d1);
- };
- function HideDiv(id) {
- var item = null;
- if (document.getElementById) {
- item = document.getElementById(id);
- } else if (document.all){
- item = document.all[id];
- } else if (document.layers){
- item = document.layers[id];
- }
- if (!item) {
- }
- else if (item.style) {
- if (item.style.display == "none"){ item.style.display = "none"; }
- else {item.style.display = "none"; }
- }else{ item.visibility = "show"; }
- };
- function Vibor(kolich) {
- if (kolich=="1") {OrHide('pro2');OrHide('pro3'); OrHide('pro4');OrHide('pro5');OrHide('pro6');OrHide('pro7');OrHide('pro8');OrHide('pro9');OrHide('pro10'); return false;}
- if (kolich=="2") {ShowOr('pro2');OrHide('pro3'); OrHide('pro4');OrHide('pro5');OrHide('pro6');OrHide('pro7');OrHide('pro8');OrHide('pro9');OrHide('pro10'); return false;}
- if (kolich=="3") {ShowOr('pro2');ShowOr('pro3'); OrHide('pro4');OrHide('pro5');OrHide('pro6');OrHide('pro7');OrHide('pro8');OrHide('pro9');OrHide('pro10'); return false;}
- if (kolich=="4") {ShowOr('pro2');ShowOr('pro3'); ShowOr('pro4');OrHide('pro5');OrHide('pro6');OrHide('pro7');OrHide('pro8');OrHide('pro9');OrHide('pro10'); return false;}
- if (kolich=="5") {ShowOr('pro2');ShowOr('pro3'); ShowOr('pro4');ShowOr('pro5');OrHide('pro6');OrHide('pro7');OrHide('pro8');OrHide('pro9');OrHide('pro10'); return false;}
- if (kolich=="6") {ShowOr('pro2');ShowOr('pro3'); ShowOr('pro4');ShowOr('pro5');ShowOr('pro6');OrHide('pro7');OrHide('pro8');OrHide('pro9');OrHide('pro10'); return false;}
- if (kolich=="7") {ShowOr('pro2');ShowOr('pro3'); ShowOr('pro4');ShowOr('pro5');ShowOr('pro6');ShowOr('pro7');OrHide('pro8');OrHide('pro9');OrHide('pro10'); return false;}
- if (kolich=="8") {ShowOr('pro2');ShowOr('pro3'); ShowOr('pro4');ShowOr('pro5');ShowOr('pro6');ShowOr('pro7');ShowOr('pro8');OrHide('pro9');OrHide('pro10'); return false;}
- if (kolich=="9") {ShowOr('pro2');ShowOr('pro3'); ShowOr('pro4');ShowOr('pro5');ShowOr('pro6');ShowOr('pro7');ShowOr('pro8');ShowOr('pro9');OrHide('pro10'); return false;}
- };
- </script>
- Вот переключатель:
- <select name="kolvo" class="editor_button" onChange="Vibor(this.options[this.selectedIndex].value);">
- <option value="1">1</option>
- <option value="2">2</option>
- <option selected value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9">9</option>
- </select>
- И сами поля:
- <div id="pro1">
- <table width="98%" align="center" class="slink">
- <tr style="width:100%">
- <tr><td width="110" height="25" nowrap="nowrap">№</td><td align="center">Чемпионат</td><td align="center">Команды</td><td>Ставка</td><td>Коэф.</td></tr>
- <td width="110" height="25" nowrap="nowrap">1.</td>
- <td style="width:35%"><input type="text" name="championship1" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /><br /></td>
- <td style="width:25%"><input type="text" name="game1" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:10%"><input type="text" name="result1" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:50px"><input type="text" name="k1" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- </tr>
- </table>
- </div>
- <div id="pro2">
- <table width="98%" align="center" class="slink">
- <tr style="width:100%">
- <td width="110" height="25" nowrap="nowrap">2.</td>
- <td style="width:35%"><input type="text" name="championship2" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /><br /></td>
- <td style="width:25%"><input type="text" name="game2" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:10%"><input type="text" name="result2" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:50px"><input type="text" name="k2" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- </tr>
- </table>
- </div>
- <div id="pro3">
- <table width="98%" align="center" class="slink">
- <tr style="width:100%">
- <td width="110" height="25" nowrap="nowrap">3.</td>
- <td style="width:35%"><input type="text" name="championship3" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /><br /></td>
- <td style="width:25%"><input type="text" name="game3" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:10%"><input type="text" name="result3" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:50px"><input type="text" name="k3" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- </tr>
- </table>
- </div>
- <div id="pro4" style="display:none;">
- <table width="98%" align="center" class="slink">
- <tr style="width:100%">
- <td width="110" height="25" nowrap="nowrap">4.</td>
- <td style="width:35%"><input type="text" name="championship4" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /><br /></td>
- <td style="width:25%"><input type="text" name="game4" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:10%"><input type="text" name="result4" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:50px"><input type="text" name="k4" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- </tr>
- </table>
- </div>
- <div id="pro5" style="display:none;">
- <table width="98%" align="center" class="slink">
- <tr style="width:100%">
- <td width="110" height="25" nowrap="nowrap">5.</td>
- <td style="width:35%"><input type="text" name="championship5" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /><br /></td>
- <td style="width:25%"><input type="text" name="game5" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:10%"><input type="text" name="result5" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:50px"><input type="text" name="k5" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- </tr>
- </table>
- </div>
- <div id="pro6" style="display:none;">
- <table width="98%" align="center" class="slink">
- <tr style="width:100%">
- <td width="110" height="25" nowrap="nowrap">6.</td>
- <td style="width:35%"><input type="text" name="championship6" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /><br /></td>
- <td style="width:25%"><input type="text" name="game6" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:10%"><input type="text" name="result6" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:50px"><input type="text" name="k6" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- </tr>
- </table>
- </div>
- <div id="pro7" style="display:none;">
- <table width="98%" align="center" class="slink">
- <tr style="width:100%">
- <td width="110" height="25" nowrap="nowrap">7.</td>
- <td style="width:35%"><input type="text" name="championship7" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /><br /></td>
- <td style="width:25%"><input type="text" name="game7" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:10%"><input type="text" name="result7" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:50px"><input type="text" name="k7" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- </tr>
- </table>
- </div>
- <div id="pro8" style="display:none;">
- <table width="98%" align="center" class="slink">
- <tr style="width:100%">
- <td width="110" height="25" nowrap="nowrap">8.</td>
- <td style="width:35%"><input type="text" name="championship8" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /><br /></td>
- <td style="width:25%"><input type="text" name="game8" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:10%"><input type="text" name="result8" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:50px"><input type="text" name="k8" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- </tr>
- </table>
- </div>
- <div id="pro9" style="display:none;">
- <table width="98%" align="center" class="slink">
- <tr style="width:100%">
- <td width="110" height="25" nowrap="nowrap">9.</td>
- <td style="width:35%"><input type="text" name="championship9" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /><br /></td>
- <td style="width:25%"><input type="text" name="game9" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:10%"><input type="text" name="result9" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- <td style="width:50px"><input type="text" name="k9" value="" maxlength="150" class="input11" style="width:99%; height:18px; font-family:tahoma; font-size:11px; border:1px solid #909090 " /></td>
- </tr>
- </table>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement