发新话题
打印

定时访问指定页面的代码

定时访问指定页面的代码

http://127.0.0.1/ceshi.html改成你要访问的地址,然后把以下代码保存成一个js文件。在windows任务计划里设定这个任务就行了,配合我在DEDECMS区发的自动采集插件,可以实现定时采集。当然这个代码别的用户你可以自己挖掘,用处多多,希望管理员+点车厢呵呵。

var html = "";
html += "<html><head><title>运行窗口</title></head><body>";
  html += "<font face=verdana></font>";
  html += "</body></html>";

// Create Internet Explorer Object
ie = new ActiveXObject("InternetExplorer.Application");

// Define how the window should look
ie.left = 50;
ie.top  = 50;
ie.height  = 510;
ie.width   = 470;
ie.menubar = 0;
ie.toolbar = 0;

// Set the browser to a blank page
ie.navigate("http://127.0.0.1/ceshi.html");

// Show the browser
ie.visible=1;

// Open a stream and write data.
//ie.document.open;
//ie.document.write( html );
//ie.document.close;

TOP

发新话题
Powered by Discuz! 6.0.0  © 2001-2007 Comsenz Technology Ltd
Processed in 0.109292 second(s), 6 queries, Gzip enabled
当前时区 GMT+8, 现在时间是 2008-10-7 07:45 皖ICP备06000549 清除 Cookies - 联系我们 - 火车采集器官方站 - 静态归档