Maybe many previous collection codes of this site are invalid. Now update the code. Of course, there are some browsers that do not support js, so we have no idea.
Put the following code at the bottom of the home page or create a new js file.
<script type="text/javascript">
//Set as homepage hongdouh.cn
function SetHome(obj,url){
    try{
        obj.style.behavior='url(#default#homepage)';
       obj.setHomePage(url);
   }catch(e){
       if(window.netscape){
          try{
              netscape.security. PrivilegeManager.enablePrivilege("UniversalXPConnect");
         }catch(e){
Alert ("Sorry, this operation was rejected by the browser! Nn Please enter" about: config "in the browser address bar and enter, then set [signed. applets. codebase_principal_support] to 'true'");
          }
       }else{
Alert ("Sorry, the browser you are using cannot complete this operation. You need to manually set ["+url+"] as the home page.");
       }
  }
}
//Collect this website hongdouh.cn
function AddFavorite(title, url) {
  try {
      window.external.addFavorite(url, title);
  }
catch (e) {
     try {
       window.sidebar.addPanel(title, url, "");
    }
     catch (e) {
Alert ("Sorry, the browser you are using cannot complete this operation. Failed to add a favorite, please use Ctrl+D to add");
     }
  }
}
</script>
Dream weaving template page call:
<a href="javascript:void(0);" onclick="SetHome(this,' //hongdouh.cn '); ">Set as Home Page</a>
<a href="javascript: void (0);" onclick="AddFavorite ('my site ', location. href)">Collect this site</a>
Finally, remember to quote js at the bottom of the corresponding dream weaving template page (7-meter web small A warm prompt irrelevant js is placed at the bottom to optimize the opening speed of the page):
For example:<script src="Your website address/js/public. js" type="text/javascript"></script>

Post reply

Can't comment until