中国网站美工网!网页设计者的天堂!
本站特色:HTML网页模版下载    
  您的位置:

首页 >> 网页特效 >> 代码生成 >> 正文

相关信息

一个QQ菜单编辑器!
加密页面代码生成器
密码登录生成器 (但不是本站的绝
滚动条颜色生成器IE5.5+
MP3播放列表文件生成器
网页背景产生器 能实现与16进制
用来生成倒计时JS代码的脚本
加密页面代码生成器
密码登录生成器
动态按钮代码生成器
浏览器检测生成器
日历生成器

弹出式窗口代码产生器

弹出式窗口代码产生器


来源: 不详 | 时间: 2006-1-13 18:45:47 | 人气:

 

弹出式窗口代码产生器

要完成此效果把如下代码加入到<body>区域中

<table border=0 cellpadding=0 cellspacing=0 width="63%" align="center">
  <tbody>
  <tr>
    <td width="0">
      <table border=0 cellpadding=0 cellspacing=0 width="76%">
        <tbody>
        <tr>
          <td width="464">
            <div align="center"><b><font color=#7b9431 face=Arial
                  size=3>
              <script language="JavaScript">
<!-- 
function uncode() {
smut="&lt;";
replacewords="< ";
txt=document.mail.source2.value;
tstx="";
space=replacewords.indexOf(" ");
wrd=replacewords.substring(0,space);
wrdl=wrd.length
replacewords=replacewords.substring(space+1,replacewords.length);
while (txt.indexOf(wrd)>-1){
space=txt.indexOf(wrd);
txt=txt.substring(0,space)+smut+txt.substring((space+wrdl),txt.length);}
smut="&gt;";
replacewords="> ";
space=replacewords.indexOf(" ");
wrd=replacewords.substring(0,space);
wrdl=wrd.length
replacewords=replacewords.substring(space+1,replacewords.length);
while (txt.indexOf(wrd)>-1){
space=txt.indexOf(wrd);
txt=txt.substring(0,space)+smut+txt.substring((space+wrdl),txt.length);}
document.mail.source2.value=txt;
}


function generate(form){
page = document.inputForm.page.value;
toolbars = document.inputForm.toolbars.checked;
scrollprops = document.inputForm.scrollit.checked;
locations = document.inputForm.locations.checked;
statusbars = document.inputForm.statusbars.checked;
menubars = document.inputForm.menubars.checked;
resizeable = document.inputForm.resizeable.checked;
width = document.inputForm.width.value;
if (!width) width = screen.width;
height = document.inputForm.height.value;
if (!height) height = screen.height;
howto = document.inputForm.howtoopen.options[document.inputForm.howtoopen.selectedIndex].value;
center = document.inputForm.center.checked;
start = "<";
if(howto == 'body') {
otherOutput = start + "!-- 步骤二: 将Onload事件处理器粘贴在<body>标签内-->\n" + start + "BODY onLoad=\"javascript:popUp()\">";
}
if(howto == 'link') {
otherOutput = start + "!-- 步骤二: 用以下的链接打开一个新窗口 -->\n" + start + "A HREF=\"javascript:popUp()\">Open the Popup Window" + start + "/A>";
}
if(howto == 'button') {
otherOutput = start + "!-- 步骤二: 用以下的按钮代码打开一个新窗口-->\n" + start + "form>\n" + start + "input type=button value=\"Open the Popup Window\" onClick=\"javascript:popUp()\">\n" + start + "/form>";
}
scriptOutput = start + '!-- 请照以下步骤进行:\r\n\r\n'
+ '<!-- STEP ONE: 将以下代码粘贴在<head>区 -->\r\n\r\n'
+ '<HEAD>\r\n\r\n' + start + 'SCRIPT LANGUAGE="JavaScript">\r\n'

本新闻共7页,当前在第1页  1  2  3  4  5  6  7  

 
  上一篇:加密页面代码生成器  下一篇:用来生成倒计时JS代码的脚本
Copyright © 2005 - 2006 WEB600.Net,All Rights Reserved
业务联系 QQ 站长:106324307 美工:270348300 程序:63888546
E-mail: 3235183@163.com MSN: fuqiyangru@hotmail.com
中国网站美工网--网页设计者的天堂! 陕ICP备06005517号
本站资源来自互联网 如果侵犯您的权利 请通知我们 我们会尽快删除