1、新建个html页面
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta http-equiv=Content-Language content=zh-cn> <title>金秋-百度贴吧在线分享外链工具</title> <meta name="keywords" content="在线外链,贴吧外链工具,金秋博客,jin07.com,金秋博客网,百度外链"> <meta name="description" content="金秋博客网www.jin07.com,欢迎你的访问!"> <style type="text/css"> <!-- .STYLE1 { color: #FF0000; font-size: 9px; } .STYLE4 {color: #993366} .STYLE5 {color: #FF0000} .STYLE6 {color: #FF33CC} .STYLE7 { color: #000000; font-weight: bold; font-size: 24px; font-family: "方正兰亭超细黑简体"; } .STYLE8 {color: #FF0066} .STYLE10 {color: #996633} .STYLE11 {color: #0000FF} --> </style> </head> <body> <form action="tieba.asp" method="post" target="_blank"> <p align="center"><span class="STYLE7"><span class="STYLE11">百度贴吧</span><span class="STYLE8">外链<span class="STYLE10">分享</span></span></span>:<script language=‘javascript‘> function test() { document.getElementById("tips").innerHTML=‘<span class="STYLE1">提示:输入网址即可!不需要添加http://</span>‘; } </script> <input name="fname" type="text" value="www.jin07.com" size="20" onclick=test() /> <div id=‘tips‘ align="center"><span class="STYLE1"></span></div> </p> <p align="center"> <input type="submit" value="提交" /> </p> </form> <p align="center">*本工具可以利用百度贴吧分享插件,快速分享你的网址、文章外链到贴吧内! </p> <p align="center">金秋博客 <span class="STYLE6">www</span>.<span class="STYLE4">jin07</span>.<span class="STYLE5">com</span></p> </body> </html>
2、再建个接受html表单数据页面,取名为:tieba.asp
<% dim fname fname=Request.Form("fname") If fname<>"" Then Response.Redirect("http://tieba.baidu.com/f/commit/share/openShareApi?url=http://" & fname & "#0-tieba-1-23435-7eff13ea8df1a334a227e1223f8d0dd3&title=""请填写标题") End If %>
3、测试页面
在编辑框输入 可以读取数据。但是输入微转运就会出错。
时间: 2024-10-29 14:11:37