继续:
保存为renren.wsf :
<job id="WshShell">
<script language="JScript">
var ie=new ActiveXObject("InternetExplorer.Application");
ie.Navigate("http://renren.com");
ie.Visible=1;
while(ie.Busy){
WScript.Sleep(500);
}
var document=ie.Document;
var body=document.body;
var myinput=body.getElementsByTagName("input");
for(var i=0;i<myinput.length;i++){
input=(myinput[i].getAttribute("id"));
if(input=="email"){
myinput[i].value="youremail@163.com";
}
if(input=="password"){
myinput[i].value="yourpassword";
}
if(input=="login"){
myinput[i].click();
}
}
</script>
</job>
阅读全文
类别:默认分类 查看评论文章来源:
http://hi.baidu.com/mirguest/blog/item/7e21d097b9ce991b7bf48097.html