日期:2014-05-16  浏览次数:20329 次

我的网页填表功能,可否实现?
如支付宝的这个注册地址:
https://www.alipay.com/user/user_register.htm
我想自己做一个网页,里面对应的建立一些TEXT,数据可以通过程序一次写入,然后这个网页上安排一个按纽,点击后,这个网页里TEXT的数据就会传到支付宝注册网页的相应的文本框里了,不知道我的这个想法用页面程序可否实现,或用其他编程语言可否实现,如能实现,改如何去做,请指点,谢谢

------解决方案--------------------

如下,就可以了:


<script>

window.open( "https://www.alipay.com/user/user_register.htm?support=000000&_fmu.u._0.e=aaa@b.com&_fmu.u._0.e=aaa@b.com&_fmu.u._0.q=1234567890-&_fmu.u._0.qu=1234567890-&_fmu.u._0.pa=1234567890-&_fmu.u._0.pay=1234567890-&_fmu.u._0.p=%CE%D2%B0%D6%B0%D6%C2%E8%C2%E8%B5%C4%C3%FB%D7%D6%B8%F7%CA%C7%CA%B2%C3%B4&_fmu.u._0.o=0000&_fmu.u._0.pr=%D5%C5%C8%FD%C0%EE%CB%C4&_fmu.u._0.u=2&_fmu.u._0.f=%C7%EB%CA%E4%C8%EB%C4%FA%B5%C4%B9%AB%CB%BE%C3%FB%B3%C6&_fmu.u._0.r=%D5%C5%CE%E5&_fmu.u._0.ca=%C9%ED%B7%DD%D6%A4&_fmu.u._0.car=123456789012345678&_fmu.u._0.m=13100001234&_fmu.u._0.ph=&_fmu.u._0.c=9881&_fmu.u._0.re=alipay&action=register_action&event_submit_do_register=anything ")
</script>
------解决方案--------------------
function getDetailInfProcess() //提取
{
var i=0;
var j=0;
var theSelectedColName=new Array();
var theSelectedColValue=new Array();
var theColboxs=document.all( "trDetailTitles ").getElementsByTagName( "input ");
var theDetailInf= " ";
for (j=1;j <theColboxs.length;j++)
{
if ((theColboxs[j].name.substr(0,7)== "colbox_ ")&&theColboxs[j].checked)
{
theSelectedColName[theSelectedColName.length]=theColboxs[j].name.substr(7,100);
}

}

if (theSelectedColName.length==0) {alert( "您没有选择提取列! ");return false;}
var alltbDetailUsed= document.all( "tbDetailUsed ").rows;
for(var i=0;i <alltbDetailUsed.length-1;i++)
{
if (alltbDetailUsed[i].all( "record_select ").checked)
{
for (j=0;j <theSelectedColName.length;j++)
{
theDetailInf=theDetailInf+alltbDetailUsed[i].all(theSelectedColName[j]).value+ "; ";
}
theDetailInf=theDetailInf+ "\n ";
}
}
document.all( "theDetailInfTextarea ").innerText=theDetailInf;
}

function setDetailInfProcess() //填充
{
var i=0;
var j=0;
var theSelectedColName=new Array();
var theColboxs=document.all( "trDetailTitles ").getElementsByTagName( "input ");
var alltbDetailUsed= document.all( "tbDetailUsed ").rows;
var theDetailInf= " ";
var theColsNum=0;
var theRowsNum=0;
for (j=1;j <theColboxs.length;j++)
{
if ((theColboxs[j].name.substr(0,7)== "colbox_ ")&&theColboxs[j].checked)
{
theSelectedColName[theSelectedColName.length]=theColboxs[j].name.substr(7,100);
}

}
if (theSelectedColName.length==0) {alert( "您没有选择填充列! ");return false;}
theColsNum=theSelectedColName.length;

theDetailInf=document.all( "theDetailInfTextarea ").innerText.replace(/\t/g, "; ");
if(theDetailInf.length==0)
{
alert( "没有信息可以填充 ");
return false;
}

var theDetailInfRow=theDetailInf.split( "\n ");
var theDetailInfCell;
theRowsNum=theDetailInfRow.length;
if(theRowsNum> 1000) theRowsNum=1000;
for(i=0;i <theRowsNum;i++)
{
theDetailInfCell=theDetailInfRow[i].split( "; ");
if (theDetailInfCell