Add code to favorites on the homepage

Source: Internet
Author: User
Tags button type
Set as Homepage Code

1. Image Link

<A style = "cursor: Hand" onClick = "This. style. behaVior = 'url (# default # homepage )';
This. setHomePage ('HTTP: // home.cnblogs.com/jigong/'); ">

<U> set as homepage </u> </a>

2. Text Type:

<A onClick = "This. style. behaVior = 'url (# default # homepage )';
This. setHomePage ('HTTP: // home.cnblogs.com/jigong/'); "href =" # "> set as homepage </a>

3. Button type:

<Input type = "button" value = "set as Homepage" onClick = "This. style. behaVior = 'url (# default # homepage )';
This. setHomePage ('HTTP: // home.cnblogs.com/jigong/'); "href =" # ">

4. Set the prompt to homepage when the cursor points

<A href = "http://www.qipao8.com/" onMouseover = "This. style. behaVior = 'url (# default # homepage )';
This. setHomePage ('HTTP: // home.cnblogs.com/jigong/'); "target =" _ blank "> set as homepage </a>

Add to favorites code
1.

<A href = "#" onClick = "javasRows: window. external. addFavorite ('HTTP: // home.cnblogs.com/jigong/', 'jgblogs ') "Title =" add this site to your favorites "> <font size ="-1 "color =" # ffe09e "> Add this site to favorites </font> </a>

2.

<A href = "javasAuthorization: void (0); "onClick = "window. External. AddFavorite (document. Location. href, document. Title)"> Add to favorites </a>
Add Channel
<A href = "Typhoon. CDF")> Add to channel </a>

Email Link

<A href = 85695571@qq.com> contact me </a>

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.