//主页收藏图片热点链接等实例
<script language="javascript">
function AddFavorite()
{
//window.external.addFavorite("http://www.do-it.com.cn/","配电网管理系统");
//return false;
var strURL;
strURL = location.href;
strURL = strURL.replace("MainBanner","Default");
window.external.AddFavorite(strURL,"管理系统");
}
function SetHomePage()
{
var strURL;
strURL = location.href;
strURL = strURL.replace("MainBanner","Default");
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage(strURL);
return ;
}
//打开支持中心
function GoSupport()
{
var strAppCode;
var strEmployeeName;
var strUrl;
strEmployeeName = "<%=Session["EmployeeName"]%>";
strEmployeeName = escape(strEmployeeName);
strAppCode = "FM"; //修改项 本系统编码
strUrl += "/Login.aspx?EmployeeName=" + strEmployeeName;
strUrl += "&AppCode=" + strAppCode ;
window.open(strUrl);
}
</script>
<body>
//PNG图片
<table><tr>
<td align="right" class="tab1" style="PADDING-TOP:20px">
<div id="divBackGround" style="FILTER:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/icon_01.png', sizingMethod='scale');WIDTH:120px;HEIGHT:23px;">
<div style="position:relative" ><IMG src=Images/TransparentPixel.gif width=120 height=23 border=0 usemap=#Map></div>
</div>
</td></tr>
</table>
<map name="Map">
<area title="设为首页" shape="CIRCLE" coords="11,11,9" href="javascript:SetHomePage()">
<area title="加入收藏" shape="CIRCLE" coords="42,12,9" href="javascript:AddFavorite();">
<area title="支持中心" shape="CIRCLE" coords="76,11,9" href="javascript:GoSupport();">
<area title="重新登录" shape="RECT" target="_parent" coords="101,3,115,19" href="./Loginout.aspx">
</map>
</body>