Не получается так. Я немного покастю покажу весь код. Мне нужно чтоб осталось поле ввода номера icq и кнопка посмотреть состояние.
| Код | <script type="text/javascript" src="http://web.icq.com/js/search_radio_v1/0,,,00.js" language="JavaScript"></script> <script language="javascript" src="http://web.icq.com/includes/js/cookie_lib/0,,,00.js" type="text/javascript"></script> <script LANGUAGE="JavaScript1.1" SRC="http://ar.atwola.com/file/adsWrapper.js"></SCRIPT> <script language="Javascript"> <!-- function preview() { indicator = document.makeIndicator.indicator.selectedIndex; MyVar = document.makeIndicator.number.options[document.makeIndicator.number.selectedIndex].value if(indicator==0){ indicatorWin=window.open("", "pagerWin2", 'toolbar=false,directories=false,status=false,menubar=false,scrollbars=1,resizable=1,width=300,height=20'); indicatorWin.document.write(''+ //PERSONAL INDICATOR // // TABLE STARTS HERE //////////////////////////////////// '<img src="http://web.icq.com/whitepages/online?icq='+document.makeIndicator.icq.value+'&img='+ MyVar +'">'+ // TABLE ENDS HERE //////////////////////////////////// ''); indicatorWin.document.writeln("</p></body>"); } if(indicator==1){ indicatorWin=window.open("", "pagerWin2", 'toolbar=false,directories=false,status=false,menubar=false,scrollbars=1,resizable=1,width=100,height=20'); indicatorWin.document.write(''+ //ICQ PAGE INDICATOR // // TABLE STARTS HERE //////////////////////////////////// '<img src="http://web.icq.com/whitepages/online?web='+document.makeIndicator.icq.value+'&img=1">'+ // TABLE ENDS HERE //////////////////////////////////// ''); indicatorWin.document.writeln("</p></body>"); } } function create() { indicator = document.makeIndicator.indicator.selectedIndex; MyVar = document.makeIndicator.number.options[document.makeIndicator.number.selectedIndex].value if(indicator==0){ document.makeIndicator.result.value=(''+
//PERSONAL INDICATOR // // TABLE STARTS HERE //////////////////////////////////// '<img src="http://web.icq.com/whitepages/online?icq='+document.makeIndicator.icq.value+'&img='+MyVar+'">'+ // TABLE ENDS HERE //////////////////////////////////// ''); } if(indicator==1){ document.makeIndicator.result.value=(''+ //ICQ PAGE INDICATOR // // TABLE STARTS HERE //////////////////////////////////// '<img src="http://web.icq.com/whitepages/online?web='+document.makeIndicator.icq.value+'&img=1">'+
// TABLE ENDS HERE //////////////////////////////////// ''); } } //--> </script>
<form name="makeIndicator">
<span class="regText"> <span class="regTextB">Your ICQ#</span> (required):<br> <input type="text" name="icq"> </span>
<!-- <input type="hidden" name="indicator" value="Personal Status Indicator" class="regText"> -->
<span class="regText">Select the indicator:<br> <select name="indicator"> <option>Personal Status Indicator <option>ICQ Page Indicator </select></span>
<span class="regText"> <nobr><span class="regTextB">Select design#:</span></nobr><br> <select name="number">
<option value="0">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 <option value="6">6 <option selected value="7">7 <option value="8">8 <option value="9">9 <option value="21">10 </select></span>
<input type="button" onclick="preview()" value="Preview"> <input type="button" onclick="create()" value="Create My ICQ Status Indicator"><br><br>
<textarea name="result" cols="50" rows="7" wrap="virtual"></textarea>
</form>
| |