Set as home code and add to Favorites JS Code encyclopedia

Source: Internet
Author: User
Keywords Web page production Ajax javascript
Tags ajax behavior click close code copy default dialog

Set as home code and add to Favorites Code Encyclopedia (detailed)

get rid of it.

Popup Set as Home Page dialog code when closing Web page:
Copy Code <body id=iehomepage
onunload= "iehomepage.style.behavior= ' url (#default #homepage) '; Iehomepage.ishomepage (' http://www.jzread.com ')) iehomepage.sethomepage (' http://www.jzread.com '); >


Open Web page Popup Set as Home dialog code:
Copy Code <body id=iehomepage
onload= "iehomepage.style.behavior= ' url (#default #homepage) '; Iehomepage.ishomepage (' http://www.jzread.com ')) iehomepage.sethomepage (' http://www.jzread.com '); >


Click the link to set the home page
Copy code <a href=# onclick= "this.style.behavior=" url (#default #homepage) '; This.sethomepage (' Http://www.jzread.comt ' );" > Set as Home </a>


Mouse over Set as home page
Copy code <a href=# onmouseover= "this.style.behavior=" url (#default #homepage) '; This.sethomepage (' http://www.jzread.com '); > Set as Home </a>


(2) Add to Favorites code:
Copy Code
Eject when leaving Web page
<script language= "JavaScript" >
function Bookmarkit () {window.external.addFavorite (' http://www.jzread.com ', ' Niuniu free movie ')}</script>
<body onunload= "Bookmarkit ()" >


Pop-up when web page is loaded
Copy code <script language= "JavaScript" >
function Bookmarkit () {window.external.addFavorite (' http://www.jzread.com ', ' Niuniu free movie ')}
</script>
<body onload= "Bookmarkit ()" >


Right-click Eject
Copy Code <script language=javascript1.2>
Document.all.onmousedown=new Function ("If" event.button==2| | event.button==3) window.external.addFavorite (' http://www.jzread.com ', ' Niuniu free movie ') ")
</script>


Click Text Pop-up
Copy code <script language= "JavaScript" >
function Bookmarkit () {window.external.addFavorite (' http://www.jzread.com ', ' Niuniu free movie ')}
if (document.all) document.write (' <a href= "#" onclick= "Bookmarkit ()" > Add Favorites </a> ")
</script>


Mouse over Text popup
Copy code <script language= "JavaScript" >
function Bookmarkit () {window.external.addFavorite (' http://www.jzread.com ', ' Niuniu free movie ')}
if (document.all) document.write (' <a href= "#" onmouseover= "Bookmarkit ()" > Add Favorites </a> ")
Set as home code and add to Favorites code Encyclopedia

Note: I just share with you, do not recommend the site all put on the bounce or something. That way people will resent it! Put a proper one!

I wish all the world's webmaster daily traffic bursting! Happy every day!

Related Article

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.