کد فرم گذاری برای سایت
<!-- TWO STEPS TO INSTALL CUSTOMIZED WINDOW: <br> <br> 1. Paste the coding into the HEAD of your HTML document <br> 2. Put the last code into the BODY of your HTML document --> <br> <br><!-- STEP ONE: Copy this code into the HEAD of your HTML document --> <br> <br><HEAD> <br> <br>< LANGUAGE="Java"> <br> <br> <br><!-- Begin <br>function customize(form) { <br>var address = document.form1.url.value; <br>var op_tool = (document.form1.tool.checked== true) ? 1 : 0; <br>var op_loc_box = (document.form1.loc_box.checked == true) ? 1 : 0; <br>var op_dir = (document.form1.dir.checked == true) ? 1 : 0; <br>var op_stat = (document.form1.stat.checked == true) ? 1 : 0; <br>var op_menu = (document.form1.menu.checked == true) ? 1 : 0; <br>var op_scroll = (document.form1.scroll.checked == true) ? 1 : 0; <br>var op_resize = (document.form1.resize.checked == true) ? 1 : 0; <br>var op_wid = document.form1.wid.value; <br>var op_heigh = document.form1.heigh.value; <br>var option = "toolbar="+ op_tool +",location="+ op_loc_box +",directories=" <br>+ op_dir +",status="+ op_stat +",menubar="+ op_menu +",scrollbars=" <br> <br>+ op_scroll +",resizable=" + op_resize +",width=" + op_wid +",height="+ op_heigh; <br>var win3 = window.open("", "what_I_want", option); <br>var win4 = window.open(address, "what_I_want"); <br>} <br>function clear(form) { <br>document.form1.wid.value=""; <br>document.form1.heigh.value=""; <br>} <br>// End --> <br></> <br> <br><!-- STEP TWO: Copy this code into the BODY of your HTML document --> <br> <br> <br> <br><CENTER> <br><h4>Please choose from the following selections to customize your window</h4> <br><br> <br><TABLE cellpadding=5 border><TR><TD><PRE> <br><FORM name=form1 ACTION="java:" METHOD="POST"> <br><INPUT TYPE="text" NAME="url" value="http://www.khafankadeh.7p.com" >: URL <br><INPUT TYPE="checkbox" NAME="tool">: Toolbar <br><INPUT TYPE="checkbox" NAME="loc_box">: Location <br><INPUT TYPE="checkbox" NAME="dir">: Directories <br><INPUT TYPE="checkbox" NAME="stat">: Status <br><INPUT TYPE="checkbox" NAME="menu">: Menubar <br><INPUT TYPE="checkbox" NAME="scroll">: Scrollbars <br><INPUT TYPE="checkbox" NAME="resize">: Resizable <br><INPUT TYPE="text" NAME="wid" value= >: Width <br><INPUT TYPE="text" NAME="heigh" value=>: Height <br><BR><CENTER> <br><INPUT TYPE="button" VALUE="=ENTER=" OnClick="customize(this.form)"> <br><INPUT TYPE="reset" VALUE="=RESET=" onClick="clear(this.form)"> <br></PRE></TD></TR></TABLE> <br></FORM> <br></CENTER><p><center> <br><font face="arial, helvetica" size="-2"> <br> <br><!-- Size: 2.54 KB --> <br></font></center></center>