<script>   
 var x="<%=request("x")%>";y="<%=request("y")%>";h=1;w=1;x1=="<%=request("x1")%>";y1=="<%=request("y1")%>";
  document.write('<span   style="position:absolute;left:'+x+';top:'+y+';height:'+h+';width:'+w+';font-size:1px;"><img src=img/a.gif></span>');  
  document.write('<span   style="position:absolute;left:'+(x1+x)+';top:'+(y-y1)+';height:'+h+';width:'+w+';font-size:1px;"><img src=img/b.gif></span>');   
  </script>
<img src="img/ditu.jpg" width="1015" height="489" />
  <table width="100%" border="0">
    <tr>
      <td height="60" align="center" valign="middle">XXX的毕业设计</td>
    </tr>
  </table>
把这个文件保存为post.asp
这个是ASP的做法

解决方案 »

  1.   

    index.html:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>X Y X1 Y1</title>
    </head>
    <frameset rows="26,*" frameborder="no" border="0" framespacing="0">
      <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
      <frame src="post.asp" name="mainFrame" id="mainFrame" title="mainFrame" />
    </frameset>
    <noframes><body>
    </body>
    </noframes></html>post.asp<style type="text/css">
    <!--
    body {
    background-image: url();
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #FF6600;
    }
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    }
    -->
    </style><script>   
     var x=" <%=request("x")%>";y=" <%=request("y")%>";h=1;w=1;x1=" <%=request("x1")%>";y1=" <%=request("y1")%>";
      document.write('<span   style="position:absolute;left:'+x+';top:'+y+';height:'+h+';width:'+w+';font-size:1px;"><img src=img/a.gif></span>');  
      document.write('<span   style="position:absolute;left:'+(x1+x)+';top:'+(y-y1)+';height:'+h+';width:'+w+';font-size:1px;"><img src=img/b.gif></span>');   
      </script>
      <img src="img/ditu.jpg" width="1015" height="489" />
      <table width="100%" border="0">
        <tr>
          <td height="60" align="center" valign="middle">XXX的毕业设计</td>
        </tr>
      </table>
      
      

  2.   

    http://topic.csdn.net/u/20080405/18/cf735563-72de-4446-9e4e-a196bbd22e39.html
    这个是一个传递值的例子不知道对你是否有用。
      

  3.   

    改一下post.asp
    给一个默认值
    <style type="text/css">
    <!--
    body {
    background-image: url();
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #FF6600;
    }
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    }
    -->
    </style><script> 
    <%
    if request("x")="" then
    x=420
    else
    x=request("x")
    end if
    if request("y")="" then
    y=220
    else
    y=request("y")
    end if
    if request("x1")="" then
    x1=180
    else
    x1=request("x1")
    end if
    if request("y1")="" then
    y1=100
    else
    x=request("y1")
    end if%>   var x="<%=x%>";y="<%=y%>";h=1;w=1;x1="<%=x1%>";y1="<%=y1%>";
      document.write('<span   style="position:absolute;left:'+parseInt(x)+'px;top:'+parseInt(y)+'px;height:'+h+'px;width:'+w+'px;font-size:1px;"><img src=img/a.gif></span>');  
      document.write('<span   style="position:absolute;left:'+(parseInt(x1)+parseInt(x))+'px;top:'+(parseInt(y)-parseInt(y1))+'px;height:'+h+'px;width:'+w+'px;font-size:1px;"><img src=img/b.gif></span>');   
      </script>
      <img src="img/ditu.jpg" width="1015" height="489" />
      <table width="100%" border="0">
        <tr>
          <td height="60" align="center" valign="middle">XXX的毕业设计</td>
        </tr>
      </table>
      
      

  4.   

    上面不小心写错了一个变量<style type="text/css">
    <!--
    body {
    background-image: url();
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #FF6600;
    }
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    }
    -->
    </style><script> 
    <%
    if request("x")="" then
    x=420
    else
    x=request("x")
    end if
    if request("y")="" then
    y=220
    else
    y=request("y")
    end if
    if request("x1")="" then
    x1=180
    else
    x1=request("x1")
    end if
    if request("y1")="" then
    y1=100
    else
    y1=request("y1")
    end if%>   var x="<%=x%>";y="<%=y%>";h=1;w=1;x1="<%=x1%>";y1="<%=y1%>";
      document.write('<span   style="position:absolute;left:'+parseInt(x)+'px;top:'+parseInt(y)+'px;height:'+h+'px;width:'+w+'px;font-size:1px;"><img src=img/a.gif></span>');  
      document.write('<span   style="position:absolute;left:'+(parseInt(x1)+parseInt(x))+'px;top:'+(parseInt(y)-parseInt(y1))+'px;height:'+h+'px;width:'+w+'px;font-size:1px;"><img src=img/b.gif></span>');   
      </script>
      <img src="img/ditu.jpg" width="1015" height="489" />
      <table width="100%" border="0">
        <tr>
          <td height="60" align="center" valign="middle">XXX的毕业设计</td>
        </tr>
      </table>
      
      

  5.   

    先感谢chinmo,我先试下能否使用。等下回帖