Several sets of code for the home page

Source: Internet
Author: User
Set as homepage

Add Favorites, set as homepage code

Add the following code to the <Body> appropriate location:

<a target=_top href= "javascript:window.external.addFavorite (' http://www.webjx.com ', ' Web Teaching Network ');" > Add to Favorites </a>
<a href= ' # ' > Set homepage </a>


Prompt when pointing to the mouse to set as the home page

Insert the following code into the <body> area:

<a href=http://www.webjx.com target= "_blank" > Set homepage </A>


Automatically pop-up window when opening page to ask whether to set the homepage

Place the following code between

<script language= "JavaScript" >
function Myhomepage () {
This.homepage.style.behavior= ' url (#default #homepage) '; This.homepage.sethomepage (' http://www.webjx.com ');
}
</script>
<p align= "center" ><a href=http://www.webjx.com name= "Homepage"
></a>

Add the following code to the <body>:

namely: <body >


Automatically prompt to set as home page when leaving

Replace <body> label as:
<body onunload= "basebody.style.behavior=" url (#default #homepage) '; Basebody.ishomepage (' http://www.webjx.com ')) basebody.sethomepage (' http://www.webjx.com/'); >



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.