资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

如何在asp页面中 浮动出一个框来,询问是否要将本站加为首页。类似于sina前段时间的显示

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

如何在asp页面中   浮动出一个框来,询问是否要将本站加为首页。类似于sina前段时间的显示  
  而且判断,如果首页已经是了,就不要显示出来呢??

网友回答:

发表者:ETZRP

<html   xmlns:rdl>  
   
  <head>  
   
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
   
  <title>主页的检测与设置</title>  
   
  <style>  
   
  body  
  {  
  margin:0px;  
  padding:16px;background:#FFFFFF;  
  overflow:auto;  
  }  
   
  body,table,input,select,textarea,a  
  {  
  font-family:verdana,tahoma,arial;font-size:11px;  
  color:#000000;  
  word-break:break-all;}  
   
  table,img  
  {  
  border:0px;  
  }  
   
  a  
  {  
  text-decoration:none;  
  color:#003399;  
  }  
   
  a:hover  
  {  
  color:#000000;  
  text-decoration:underline;  
  }  
   
   
  #id_div3  
  {  
  padding-top:8px;  
  border-top:1px   solid   #000000;  
  line-height:15px;  
  }  
   
  #id_span3  
  {  
  font-size:10px;  
  font-family:tahoma;  
  }  
   
  @media   all    
  {  
  rdl\:homepage   {behavior:url(#default#homepage);}  
  }  
   
  #idCodeDiv  
  {  
  width:100%;  
  padding:4px;  
  font-family:verdana,tahoma;  
  margin:12px   0px   0px   0px;  
  background-color:#EEEEEE;  
  }  
   
   
  </style>  
   
   
  <script>  
   
  var   oHomePage,oCodeDiv,oURL;  
  var   sHomePage;  
   
  function   rdl_Verify()  
  {  
   
  var   sHomePage=oURL.value;  
   
  var   bIs=oHomePage.isHomePage(sHomePage);  
   
  with   (oCodeDiv)  
  {  
  if   (bIs)    
  {  
  innerText=sHomePage+"是您的默认主页";    
  innerText.fontcolor("red");  
  }  
  else    
  {  
  innerText=sHomePage+"不是您的默认主页";  
  }  
  }  
   
  }  
   
   
   
  function   rdl_Set()  
  {  
   
  var   sHomePage=oURL.value;  
   
  oHomePage.setHomePage(sHomePage);  
   
  }  
   
   
  function   window.onload()  
  {  
   
  oHomePage=document.all("idHomePage");  
   
  oCodeDiv=document.all("idCodeDiv");  
   
  oURL=document.all("idURL");  
   
  }  
   
  </script>  
   
   
  </head>  
   
  <body>  
   
  <rdl:homepage   id="idHomePage"   />  
   
  <table><tr>  
  <td>  
  <input   type=text   size=30   value="http://www.google.com"   id=idURL>  
  </td>  
  <td>  
  <input   type=button   value="   检测   "   onclick="rdl_Verify();"></td>  
  <td><input   type=button   value="   设置   "   onclick="rdl_Set();"></td>  
   
  </tr></table>  
   
  <br>  
  <br>  
  <div   id=idCodeDiv>请确认输入框内的url地址然后点击「检测」按钮。</div>  
   
  </body>  
  </html>


 

 
热门推荐笔记本: IBM笔记本
相关文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved