Phiên bản đầy đủ: jsB@nk » Ứng dụng » Công cụ xuất » Tạo cửa sổ popup
URL: https://www.javascriptbank.com/pop-up-message-generator.html
Một công cụ cho phép bạn tạo cửa sổ popup với thông tin đi kèm.
Phiên bản đầy đủ: jsB@nk » Ứng dụng » Công cụ xuất » Tạo cửa sổ popup
URL: https://www.javascriptbank.com/pop-up-message-generator.html
<script language="JavaScript"><!-- Beginfunction MakeIt(form){var txt=form.hidden.value+'<!-Place Between Head Tags->\r\n';txt+='<!-Place Between Body Tags-><a href="http://'+form.url.value+'"><input type="button" name="button" value="';txt+=form.buttonname.value+'"\r\n';txt+='onClick="MM_popupMsg('+form.message.value+')"></a>\r\n';form.code.value=txt;}function ResetPage(form){if(confirm("Do you wish to start over?")){form.message.value="";form.code.value="";form.buttonname.value=""; }}// End --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<form action=""> <table bgcolor="#ffffff" border="2" cellpadding="4" width="100%" height="314" bordercolorlight="#FFFFFF" bordercolordark="#555555"> <tbody><tr> <td width="287"> <div align="center"><font size="3" face="arial" color="#555555"><b>Name </b> <b>on Button</b></font></div> </td> <td align="center" width="373"><font size="2"><b> <input type="hidden" name="hidden" size="40" value="<script language="JavaScript"><!--function MM_popupMsg(msg) { //v1.0 alert(msg);}//--></script>"> <input type="text" name="buttonname" size="47"> </b></font> </td> </tr> <tr> <td align="center" width="287"><font size="3" face="arial"><b>Button Link or URL</b></font></td> <td align="center" width="373"><font size="2"><b> <input type="text" name="url" size="47" value="http://"> </b></font> </td> </tr> <tr> <td width="287" height="46"> <div align="center"><font size="3" face="arial"><b>Pop up Message<br> <font size="2" color="#ff0066">(Type message between ' ' in text field)</font></b></font></div> </td> <td align="center" width="373" height="46"><b><font size="2"> <input type="text" name="message" size="47" value="' '"> </font> </b></td> </tr> <tr> <td width="287" height="46"> <div align="center"><font size="3" face="arial"><b> <input type="button" value="Create Code" onclick="MakeIt(this.form);" name="button"> </b></font><font size="3" face="arial" color="#555555"><b><br> <input type="button" name="Button" value="Select Code" onclick="this.form.code.select(); this.form.code.focus()"> <br> </b></font><font size="3" face="arial"><b> </b></font><font size="1"><a href="http://www.searchbliss.com/">SearchBliss</a> / 2001</font></div> </td> <td align="center" width="373" height="46"><b><font size="2" color="#ffffff"> <textarea name="code" rows="6" cols="40"></textarea> </font></b></td> </tr> </tbody></table> </form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->