I made a hta to notify the forum of new posts
Copy the following code locally and save as hta and double-click to execute it. A new post will appear in the lower right corner to notify you. The notification window will be automatically closed after 10 seconds.
The code is as follows:
<html>
<head>
<title>BlueIdeaBoardWatcher-ByHutia</title>
<!--Program settings. If you want the program to be displayed in the taskbar, please change showitaskbar to yes-->
<hta:applicationid="app1"singleinstance="yes"contextmenu="yes"
sysmenu="yes"windowstate="normal"maximizeButton="no"minimizeButton="yes"
applicationName="BlueIdeaBoardWatcher"version="1.0"innerBorder="no"
caption="yes"showitaskbar="no"border="thin"/>
<!--Language gb2312-->
<metahttp-equiv="content-type"content="text/html;charset="gb2312">
<!--Style sheet-->
<style>
body,td{
margin:0px;
padding:5px;
overflow:auto;
font-size:12px;
}
h3{
font-size:14px;
}
iframe{
display:none;
}
</style>
<script>
//******Global variable area******
//Classic Forum>Dreamweaver&Javascript Column
url="http://bbs.blueidea.com/forumdisplay.php?fid=1";
//Refresh interval 10s
intervals=10000;
//Initialize the component
try{
varxmlHttp=newActiveXObject("Microsoft.XMLHTTP");
varadodbStream=newActiveXObject("ADOD"+"B.St"+"ream");
}catch(e){
document.write("<h3> failed to load, component is disabled</h3>");
}
thisDomain=location.href.substring(0,location.href.lastIndexOf("//"));
//Save the result of the last visit in ree for comparison with the next time
ree=newArray();
//Variable used to determine whether the initialization is completed
initiated=false;
//Save the array of open windows
theWin=newArray();
//Initialize the function
functioninit(){
startCheck();
}
//Send get request
functionstartCheck(){
xmlHttp.open("get",url,true);
xmlHttp.send();
xmlHttp.onreadystatechange=checkState;
}
//Confirm the result returned by xmlHttp
functioncheckState(){
if(xmlHttp.readyState==4){
if(xmlHttp.status==200){
//Decode to get the return value
varstrHTML=b2s(xmlHttp.responseBody);
variStart=strHTML.search(/<tablecellpacing=0cellpadding=0width="99%"border=0>/i);