| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1049 人关注过本帖
标题:请教高手,怎样去掉文本框内内容验证,让文本框不输入文字也能提交表单
只看楼主 加入收藏
hover365
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-11-30
结帖率:0
收藏
已结贴  问题点数:20 回复次数:2 
请教高手,怎样去掉文本框内内容验证,让文本框不输入文字也能提交表单
下面这段代码,只输入楼盘名称和选择区域就能提交。怎样修改,跪谢!


<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%server.ScriptTimeout = 60%>
<!--#include file="conn.asp"-->
<!--#include file="inc/VEfile.asp"-->
<!--#include file="inc/admin.asp"-->
<%
admin_login()
conn_()

'******* 一级类别 **********
function C1AF()
    dim sql,rs,str
   
    sql="select * from stage_region order by Order_ ASC"
    set rs=conn.execute(sql)
    if rs.eof then
        response.write("<script>alert('请先添加楼盘类别!');window.location='ProductC1.asp';</script>")
        response.End()
    end if
    do while not rs.eof
        str = str & "'" & rs("Class1ID") & "','" & rs("ClassName") & "',"
    rs.movenext
    loop
    rs.close
    set rs=nothing
    if right(str,1)="," then
        str = mid( str,1, len(str)-1 )
    end if
    C1AF = str
end function
'************************
C1AF_str = C1AF()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>产品管理</title>
<link href="css/m.css" rel="stylesheet" type="text/css">
<script>
var C1A = new Array(<%=C1AF_str%>);

function c1F(f1){//写入一级类别
    var t1 = f1.stage_region;//一级下拉
    var oi = 1;
    t1.options[0]=new Option('所在区域','0');
    for(var i=0; i < C1A.length; i++){
        t1.options[oi]=new Option(C1A[i+1],C1A[i]);
        oi++;
        i++;
    }
}

function DSelect(t1,s){//选中默认下拉列表
    for(i=0; i<t1.length; i++) {
        if(t1.options[i].value==s){t1.options[i].selected=true;return;}
    }
}
</script>
</head>

<body>
<%
dim slt,slt2,slt3'缩略图类型
dim p2,p2s,p3,p3s
id=trim(request.QueryString("id"))
step=request.querystring("step")
why=request.querystring("why")

if step="2" then
'    function alert(x)
'        alert="<script>alert('"&x&"');<//script>"
'    end function
   
    err_=""
    dim f
    set f = New VEFILE
    f.upfile

    stage_name=server.HTMLEncode(f.GetFormVal("stage_name"))
    stage_region=f.GetFormVal("stage_region")
    stage_types=f.GetFormVal("stage_types")
    building_types=f.GetFormVal("building_types")
    average_price=f.GetFormVal("average_price")
    note_price=f.GetFormVal("note_price")
    sales_status=f.GetFormVal("sales_status")
    project_total=f.GetFormVal("project_total")
    opening_time=f.GetFormVal("opening_time")
    movesIn_time=f.GetFormVal("movesIn_time")
    building_area=f.GetFormVal("building_area")
    floor_area=f.GetFormVal("floor_area")
    green_rate=f.GetFormVal("green_rate")
    FAR=f.GetFormVal("FAR")
    main_household=f.GetFormVal("main_household")
    property_charge=f.GetFormVal("property_charge")
    preSale_permit=f.GetFormVal("preSale_permit")
    decoration_status=f.GetFormVal("decoration_status")
    stage_address=f.GetFormVal("stage_address")
    sell_address=f.GetFormVal("sell_address")
    sell_phone=f.GetFormVal("sell_phone")
    stage_developer=f.GetFormVal("stage_developer")
    videoUrl=f.GetFormVal("videoUrl")
    isTop=f.GetFormVal("isTop")
    isRecomm=f.GetFormVal("isRecomm")
    RecommUrl=f.GetFormVal("RecommUrl")
    bigimage=f.GetFormVal("bigimage")
    smallimage=f.GetFormVal("smallimage")
    locationimage=f.GetFormVal("locationimage")
    stage_explain=f.GetFormVal("stage_explain")

    if videoUrl="" then videoUrl=0
    if isTop<>"1" then isTop=0
    if isRecomm=""  then isRecomm=0
    if bigimage="" then
      bigimage="images/nophoto.jpg"
    end if
    if smallimage="" then
      smallimage="images/nophoto.jpg"
    end if
    if locationimage="" then
      locationimage="images/nophoto.jpg"
    end if

'    if stage_name="" then err_=err_&"<li>请输入楼盘名称.</li>"
'    if not (project_total<>"" and isNumeric(project_total)) then err_=err_&"<li>项目套数必须为数字.</li>" else project_total = csng(project_total)
'    if not (building_area<>"" and isNumeric(building_area)) then err_=err_&"<li>建筑面积必须为数字.</li>" else building_area = csng(building_area)
'    if not (floor_area<>"" and isNumeric(floor_area)) then err_=err_&"<li>占地面积必须为数字.</li>" else floor_area = csng(floor_area)
'    if not (property_charge<>"" and isNumeric(property_charge)) then err_=err_&"<li>项目套数必须为数字.</li>" else property_charge = FormatNumber(property_charge,2,-1)

        
    if not (project_total<>"" and isNumeric(project_total)) then project_total = 0
    if not (building_area<>"" and isNumeric(building_area)) then building_area = 0
    if not (floor_area<>"" and isNumeric(floor_area)) then average_price = 0
    if not (property_charge<>"" and isNumeric(property_charge)) then property_charge = 0
    if not (isTop<>"" and isNumeric(isTop)) then isTop = 0
    if not (isRecomm<>"" and isNumeric(isRecomm)) then isRecomm = 0

    if err_="" then
   
        '***远景图片************
        bigimage = f.savefile("bigimage", "../UploadFile/StageImg", 5000, "", ".jpg|.jpe|.jpeg|.bmp|.gif|.png", 1,"")'远景
        select case bigimage
            case "1"
                err_ = err_ & "<li>正面图文件大小超出限制!</li>"
                bigimage=""
            case "2"
                err_ = err_ & "<li>正面图文件格式不正确!</li>"
                bigimage=""
            case "3"'没有上传文件
                bigimage=f.GetFormVal("bigimage_y")
            case "NULL"
                err_ = err_ & "<li>正面图文件上传失败!</li>"
                bigimage=""
            case else'成功上传
                bigimage = "UploadFile/StageImg/" & bigimage
        end select
        '***********************
        
        '***近景图片************
        smallimage = f.savefile("smallimage", "../UploadFile/StageImg", 5000, "", ".jpg|.jpe|.jpeg|.bmp|.gif|.png", 1,"")'近景
        select case smallimage
            case "1"
                err_ = err_ & "<li>正面图文件大小超出限制!</li>"
                smallimage=""
            case "2"
                err_ = err_ & "<li>正面图文件格式不正确!</li>"
                smallimage=""
            case "3"'没有上传文件
                smallimage=f.GetFormVal("smallimage_y")
            case "NULL"
                err_ = err_ & "<li>正面图文件上传失败!</li>"
                smallimage=""
            case else'成功上传
                smallimage = "UploadFile/StageImg/" & smallimage
        end select
        '***********************
        
        '***楼盘位置************
        locationimage = f.savefile("locationimage", "../UploadFile/StageImg", 5000, "", ".jpg|.jpe|.jpeg|.bmp|.gif|.png", 1,"")'楼盘位置
        select case locationimage
            case "1"
                err_ = err_ & "<li>正面图文件大小超出限制!</li>"
                locationimage=""
            case "2"
                err_ = err_ & "<li>正面图文件格式不正确!</li>"
                locationimage=""
            case "3"'没有上传文件
                locationimage=f.GetFormVal("locationimage_y")
            case "NULL"
                err_ = err_ & "<li>正面图文件上传失败!</li>"
                locationimage=""
            case else'成功上传
                locationimage = "UploadFile/StageImg/" & locationimage
        end select
        '***********************
    end if
                 smallimage=f.GetFormVal("smallimage")
    locationimage=f.GetFormVal("locationimage")
    bigimage=f.GetFormVal("bigimage")
        if why<>"edit" then
         
        
   
            sql="insert into stage (stage_name,stage_region,stage_types,building_types,average_price,note_price,sales_status,project_total,opening_time,movesIn_time,building_area,floor_area,green_rate,FAR,main_household,property_charge,preSale_permit,decoration_status,stage_address,sell_address,sell_phone,stage_developer,videoUrl,isTop,isRecomm,RecommUrl,bigimage,smallimage,locationimage,stage_explain) values ('"&sql_re(stage_name)&"','"&sql_re(stage_region)&"','"&sql_re(stage_types)&"','"&sql_re(building_types)&"','"&sql_re(average_price)&"','"&sql_re(note_price)&"','"&sql_re(sales_status)&"',"&sql_re(project_total)&",'"&sql_re(opening_time)&"','"&sql_re(movesIn_time)&"',"&sql_re(building_area)&","&sql_re(floor_area)&",'"&sql_re(green_rate)&"','"&sql_re(FAR)&"','"&sql_re(main_household)&"',"&sql_re(property_charge)&",'"&sql_re(preSale_permit)&"','"&sql_re(decoration_status)&"','"&sql_re(stage_address)&"','"&sql_re(sell_address)&"','"&sql_re(sell_phone)&"','"&sql_re(stage_developer)&"','"&sql_re(videoUrl)&"',"&sql_re(isTop)&","&sql_re(isRecomm)&",'"&sql_re(RecommUrl)&"','"&sql_re(bigimage)&"','"&sql_re(smallimage)&"','"&sql_re(locationimage)&"','"&sql_re(stage_explain)&"')"
            alert_x="<script>alert('添加成功!');</script>"   
        else
            count_=f.GetFormVal("count_")
            if count_="" then count_=0
            
            sql2 = ""
            
            '*****判断是否有上传新图,是否删除原图***********************************
            sql="select * from product where id="&id
            set rs=conn.execute(sql)
            if not rs.eof then
            
                if bigimage <> "" then
                    sql2 = sql2 & ",bigimage='"&sql_re(bigimage)&"'"
                    if f.file_test("../" & rs("bigimage")) then'删除原图
                        f.file_del "../" & rs("bigimage")
                    end if
                end if
                if smallimage <> "" then
                    sql2 = sql2 & ",smallimage='"&sql_re(smallimage)&"'"
                    if f.file_test("../" & rs("smallimage")) then'删除原图
                        f.file_del "../" & rs("smallimage")
                    end if
                end if
                if locationimage <> "" then
                    sql2 = sql2 & ",locationimage='"&sql_re(locationimage)&"'"
                    if f.file_test("../" & rs("locationimage")) then'删除原图
                        f.file_del "../" & rs("locationimage")
                    end if
                end if
               
            end if
            rs.close
            set rs=nothing
            '**********************************************************************************
            
            sql="update stage set stage_name='"&sql_re(stage_name)&"',stage_region='"&sql_re(stage_region)&"',stage_types='"&sql_re(stage_types)&"',building_types='"&sql_re(building_types)&"',average_price="&sql_re(average_price)&",note_price='"&sql_re(note_price)&"',sales_status='"&sql_re(sales_status)&"',project_total="&sql_re(project_total)&",opening_time='"&sql_re(opening_time)&"',movesIn_time='"&sql_re(movesIn_time)&"',building_area="&sql_re(building_area)&",floor_area="&sql_re(floor_area)&",green_rate='"&sql_re(green_rate)&"',FAR='"&sql_re(FAR)&"',main_household='"&sql_re(main_household)&"',property_charge="&sql_re(property_charge)&",preSale_permit='"&sql_re(preSale_permit)&"',decoration_status='"&sql_re(decoration_status)&"',stage_address='"&sql_re(stage_address)&"',sell_address='"&sql_re(sell_address)&"',sell_phone='"&sql_re(sell_phone)&"',stage_developer='"&sql_re(stage_developer)&"',videoUrl='"&sql_re(videoUrl)&"',isTop="&sql_re(isTop)&",isRecomm="&sql_re(isRecomm)&",recommUrl='"&sql_re(recommUrl)&"',stage_explain='"&sql_re(stage_explain)&"' "& sql2 &",bigimage='"&sql_re(bigimage)&"',smallimage='"&sql_re(smallimage)&"',locationimage='"&sql_re(locationimage)&"' where id="&id
            alert_x="<script>alert('修改成功!');</script>"   
        end if
        conn.execute sql
        
        response.write(alert_x)
        stage_name=""
        stage_region=""
        stage_types=""
        building_types=""
        average_price=""
        note_price=""
        sales_status=""
        project_total=""
        opening_time=""
        movesIn_time=""
        building_area=""
        floor_area=""
        green_rate=""
        FAR=""
        main_household=""
        property_charge=""
        preSale_permit=""
        decoration_status=""
        stage_address=""
        sell_address=""
        sell_phone=""
        stage_developer=""
        bigimage=""
        smallimage=""
        locationimage=""
        stage_explain=""
end if

if id<>"" then
    if validate(id,"long","") then
        sql="select * from stage where id="&id
        set edit_rs=server.CreateObject("adodb.recordset")
        edit_rs.open sql,conn,1,3
        
        stage_name=edit_rs("stage_name")
        stage_region=edit_rs("stage_region")
        stage_types=edit_rs("stage_types")
        building_types=edit_rs("building_types")
        average_price=edit_rs("average_price")
        note_price=edit_rs("note_price")
        sales_status=edit_rs("sales_status")
        project_total=edit_rs("project_total")
        opening_time=edit_rs("opening_time")
        movesIn_time=edit_rs("movesIn_time")
        building_area=edit_rs("building_area")
        floor_area=edit_rs("floor_area")
        green_rate=edit_rs("green_rate")
        FAR=edit_rs("FAR")
        main_household=edit_rs("main_household")
        property_charge=edit_rs("property_charge")
        preSale_permit=edit_rs("preSale_permit")
        decoration_status=edit_rs("decoration_status")
        stage_address=edit_rs("stage_address")
        sell_address=edit_rs("sell_address")
        sell_phone=edit_rs("sell_phone")
        stage_developer=edit_rs("stage_developer")
        videoUrl=edit_rs("videoUrl")
        isTop=edit_rs("isTop")
        isRecomm=edit_rs("isRecomm")
        recommUrl=edit_rs("recommUrl")
        bigimage=edit_rs("bigimage")
        smallimage=edit_rs("smallimage")
        locationimage=edit_rs("locationimage")
        stage_explain=edit_rs("stage_explain")

        why_="&why=edit&id="&edit_rs("id")
        edit_rs.close
        set edit_rs=nothing
    end if
end if
%>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bordercolor="#666666" bordercolorlight="#666666" bordercolordark="#CCCCCC" class="tb1">
  <form action="ProductAdd.asp?step=2<%=why_%>" method="post" enctype="multipart/form-data" name='eform' onSubmit="return subF(this)">
    <tr>
      <td colspan="3" class="title" >
      <strong>
      <%
        if why<>"edit" then
            response.write "添加新产品"
        else
            response.write "修改产品信息"
        end if
      %>
      </strong>      </td>
    </tr>
    <%if err_<>"" then%>
    <tr align="left">
      <td colspan="3" class="fred"><%=err_%></td>
    </tr>
    <%end if%>
    <tr>
      <td width="11%" align="right" class="Editor" >楼盘名称:</td>
      <td colspan="2" class="fred"><input name="stage_name" type="text" id="stage_name" value="<%=stage_name%>"  size="45"></td>
    </tr>
    <tr>
      <td align="right" class="Editor">所在区域:</td>
      <td colspan="2">
      <select name="stage_region" style="width:90px">
      </select></td>
    </tr>
    <tr>
      <td align="right" class="Editor">楼盘类型:</td>
      <td colspan="2">
        <select id="stage_types" name="stage_types" class="fred">
          <option value="普通住宅">普通住宅</option>
          <option value="高层住宅">高层住宅</option>
          <option value="写字楼">写字楼</option>
          <option value="商住楼">商住楼</option>
          <option value="别墅">别墅</option>
          <option value="商铺">商铺</option>
          <option value="厂房">厂房</option>
          <option value="其他">其他</option>
        </select>
      </td>
    </tr>
    <tr>
      <td align="right" class="Editor">建筑类型:</td>
      <td colspan="2"><span class="fred">
        <input name="building_types" type="text" id="building_types" value="<%=building_types%>"  size="45">
      </span></td>
    </tr>
    <tr>
      <td align="right" class="Editor">销售均价:</td>
      <td colspan="2">
        <input name="average_price" type="text" id="average_price" value="<%=average_price%>"  size="45">
        元/㎡</td>
    </tr>
    <tr>
      <td align="right" class="Editor">价格说明:</td>
      <td colspan="2"><span class="fred">
        <input name="note_price" type="text" id="note_price" value="<%=note_price%>"  size="45">
      </span></td>
    </tr>
    <tr>
      <td align="right" class="Editor">销售状态:<br></td>
      <td colspan="2" valign="top"><span class="fred">
        <input name="sales_status" type="text" id="sales_status" value="<%=sales_status%>"  size="45">
      </span></td>
    </tr>
    <tr>
      <td align="right" class="Editor">项目套数:</td>
      <td colspan="2"><span class="fred">
        <input name="project_total" type="text" id="project_total" value="<%=project_total%>"  size="45">
      </span></td>
    </tr>
    <tr >
      <td align="right" class="Editor">开盘时间:</td>
      <td colspan="2">
        <input name="opening_time" type="text" id="opening_time" value="<%=opening_time%>"  size="45"> 格式如:2012-1-1</td>
    </tr>
    <tr >
      <td align="right" class="Editor">入住时间:</td>
      <td colspan="2">
        <input name="movesIn_time" type="text" id="movesIn_time" value="<%=movesIn_time%>"  size="45"> 格式如:2012-1-1</td>
    </tr>
    <tr >
      <td align="right" class="Editor">建筑面积:</td>
      <td colspan="2">
        <input name="building_area" type="text" id="building_area" value="<%=building_area%>"  size="45">
        ㎡</td>
    </tr>
    <tr >
      <td align="right" class="Editor">占地面积:</td>
      <td colspan="2">
        <input name="floor_area" type="text" id="floor_area" value="<%=floor_area%>"  size="45">
        ㎡</td>
    </tr>
    <tr >
      <td align="right" class="Editor">绿 化 率:</td>
      <td colspan="2"><span class="fred">
        <input name="green_rate" type="text" id="green_rate" value="<%=green_rate%>"  size="45">
      </span></td>
    </tr>
    <tr >
      <td align="right" class="Editor">容 积 率:</td>
      <td colspan="2"><span class="fred">
        <input name="FAR" type="text" id="FAR" value="<%=FAR%>"  size="45">
      </span></td>
    </tr>
    <tr >
      <td align="right" class="Editor">主打户型:</td>
      <td colspan="2"><span class="fred">
        <input name="main_household" type="text" id="main_household" value="<%=main_household%>"  size="45">
      </span></td>
    </tr>
    <tr >
      <td align="right" class="Editor">物 业 费:</td>
      <td colspan="2">
        <input name="property_charge" type="text" id="property_charge" value="<%=property_charge%>"  size="45">
      元/㎡</td>
    </tr>
    <tr >
      <td align="right" class="Editor">预 售 证:</td>
      <td colspan="2"><span class="fred">
        <input name="preSale_permit" type="text" id="preSale_permit" value="<%=preSale_permit%>"  size="45">
      </span></td>
    </tr>
    <tr >
      <td align="right" class="Editor">装修状况:</td>
      <td colspan="2"><span class="fred">
        <input name="decoration_status" type="text" id="decoration_status" value="<%=decoration_status%>"  size="45">
      </span></td>
    </tr>
    <tr>
      <td align="right" class="Editor">楼盘地址:</td>
      <td colspan="2"><span class="fred">
        <input name="stage_address" type="text" id="stage_address" value="<%=stage_address%>"  size="45">
      </span></td>
    </tr>
    <tr >
      <td align="right" class="Editor">售楼地址:</td>
      <td colspan="2"><span class="fred">
        <input name="sell_address" type="text" id="sell_address" value="<%=sell_address%>"  size="45">
      </span></td>
    </tr>
    <tr >
      <td align="right" class="Editor">售楼热线:</td>
      <td colspan="2"><span class="fred">
        <input name="sell_phone" type="text" id="sell_phone" value="<%=sell_phone%>"  size="45">
      </span></td>
    </tr>
    <tr>
      <td align="right" class="Editor">开 发 商:</td>
      <td colspan="2"><span class="fred">
        <input name="stage_developer" type="text" id="stage_developer" value="<%=stage_developer%>"  size="45">
      </span></td>
    </tr>
    <tr >
      <td align="right" class="Editor">看房视频:</td>
      <td colspan="2"><span class="fred">
        <input name="videoUrl" type="text" id="videoUrl" value="<%=videoUrl%>" size="3" readonly="readonly">
        <select name="Video" onChange="(document.eform.videoUrl.value=this.options[this.selectedIndex].value)">
        <option value="">请选择视频</option>
        <%
          set videoRs = conn.execute("select id,g_title from video where c1=2 order by id desc")
          if not videoRs.eof then
          do while not videoRs.eof
        %>
        <option value="<%=videoRs("id")%>"><%=videoRs("g_title")%></option>
        <%
          videoRs.movenext
          loop
          end if
        %>
        </select>
      </span></td>
    </tr>
    <tr >
      <td align="right" class="Editor">功能选项:</td>
      <td colspan="2">
        <input name="isTop" type="checkbox" id="isTop" value="1" <%if isTop="1" or isTop then response.write(" checked")%>>
        固顶显示(首页)
        <input name="isRecomm" type="checkbox" id="isRecomm" value="1" <%if isRecomm="1" or isRecomm then response.write(" checked")%>>
        推荐楼盘(内页)      </td>
    </tr>
    <tr >
      <td align="right" class="Editor">推荐链接:</td>
      <td colspan="2"><input name="RecommUrl" type="text" id="RecommUrl" value="<%=RecommUrl%>" size="45"></td>
    </tr>   
    <tr>
      <td align="right" class="Editor">远景图片:</td>
      <td width="53%">
      <input name="bigimage" type="text" id="bigimage" size="40" class="wenbenkuang" style="height:20" value="<%=bigimage%>">
      <input type="button" name="Submit2"  value="上传图片" onClick="window.open('upload_flash_120daohang.asp?formname=eform&editname=bigimage&uppath=/bookpic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"></td>
      <td width="36%">
        <div id="show_img">
        <%if bigimage<>"" then%>
        <a href="../<%=bigimage%>" target="_blank"><img src="../<%=bigimage%>" alt="" width="60" border="0"></a>
        <%end if%>
      </div></td>
    </tr>
    <tr>
      <td align="right" class="Editor">近景图片:</td>
      <td width="53%"><input name="smallimage" type="text" id="smallimage" size="40" class="wenbenkuang" style="height:20" value="<%=smallimage%>">
      <input type="button" name="Submit21"  value="上传图片" onClick="window.open('upload_flash_120daohang.asp?formname=eform&editname=smallimage&uppath=/bookpic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
      </td>
      <td width="36%">
        <div id="show_img">
        <%if smallimage<>"" then%>
        <a href="../<%=smallimage%>" target="_blank"><img src="../<%=smallimage%>" alt="" width="60" border="0"></a>
        <%end if%>
      </div></td>
    </tr>
    <tr>
      <td align="right" class="Editor">楼盘位置:</td>
      <td width="53%">
      <input name="locationimage" type="text" id="locationimage" size="40" class="wenbenkuang" style="height:20" value="<%=locationimage%>">
      <input type="button" name="Submit212"  value="上传图片" onClick="window.open('upload_flash_120daohang.asp?formname=eform&editname=locationimage&uppath=/bookpic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"></td>
      <td width="36%">
        <div id="show_img">
        <%if locationimage<>"" then%>
        <a href="../<%=locationimage%>" target="_blank"><img src="../<%=locationimage%>" alt="" width="60" border="0"></a>
        <%end if%>
      </div></td>
    </tr>
    <tr>
      <td align="right" valign="top" class="Editor">楼盘介绍:</td>
      <textarea name="stage_explain" style="display:none"><%=stage_explain%></textarea>
      <td colspan="2" align="left" valign="top">
      <%if application(VeMainKey&"editorVersion") <> "2.80" then%>
        <iframe id="eWebEditor" src="../eWebEditor4.60/ewebeditor.htm?id=stage_explain&style=coolblue" frameborder="0" scrolling="no" width="80%" height="260"></iframe>
      <%else%>
        <iframe id="eWebEditor1" src="../eWebEditor2.80/ewebeditor.asp?id=stage_explain&style=Content" frameborder="0" scrolling="no" width="80%" height="260"></iframe>
      <%end if%></td>
    </tr>
    <tr >
      <td align="right">&nbsp;</td>
      <td colspan="2"> <input type="submit" name="Submit" value=" 确 定 "> </td>
    </tr>
    <tr align="center">
      <td colspan="3">&nbsp;</td>
    </tr>
  </form>
</table>
<script language="javascript">
c1F(document.eform);
DSelect(document.eform.stage_region,'<%=stage_region%>');//默认一级类
DSelect(document.eform.stage_types,'<%=stage_types%>');//默认一级类
DSelect(document.eform.Video,'<%=videoUrl%>');//默认一级类

function upF()
{
if(document.forms[0].slt.checked==true){l1.style.display='none';}else{l1.style.display='block';}
}
upF();
</script>
<script language="javascript">
function show_imgF(url,this1,show_img){//预览图片
var url2;
if(url=="url"){//网络上的图片:如有http://
//alert(url)
    url=this1.value;
    url = url.replace(/'/g,"\\\\'")
    show_img.innerHTML="<a href=\""+ url +"\" target='_blank'><img src=\""+ url +"\" width=200 border='0'></a>";
   
    }else{
    url=this1.value;
        url = url.replace(/'/g,"\'")
    var regExp1 = new RegExp("\\\\","g")
    url2 = url.replace(regExp1,"\\\\")
        url2 = url2.replace(/'/g,"\'")
    var regExp2 = new RegExp("\s","g")
    show_img.innerHTML="<a href=\"javascript:openimgF('"+ url2 +"')\"><img src=\""+ url +"\" width=150 border='0'></a>";
    }
}
function openimgF(url){//新窗口中显示图
win = window.open("","","");
win.document.open();
        //url = url.replace(/'/g,"\'")
win.document.write("<img src=\""+ url +"\" border='0'>");
win.document.close();
}
</script>
</body>
</html>
<%connClose()
%>
搜索更多相关主题的帖子: sql 楼盘 function 输入文字 include 
2011-11-30 15:08
编程的乐趣
Rank: 9Rank: 9Rank: 9
等 级:蜘蛛侠
威 望:1
帖 子:229
专家分:1027
注 册:2011-4-4
收藏
得分:20 
2011-11-30 16:09
hover365
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-11-30
收藏
得分:0 
有人能帮我看一下吗
2011-12-01 09:42
快速回复:请教高手,怎样去掉文本框内内容验证,让文本框不输入文字也能提交表单 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.025627 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved