(Note: Replace the 'symbol with the' symbol that is not input in any input method state. Otherwise, the program cannot run)
1.Text Type:
<A onclick = "this. style. behavior = 'url (# default # homepage) '; this. setHomePage ('HTTP: // www.apple-wallpaper.com '); "href =" http://www.apple-wallpaper.com "> set to home </a>
2.Button type:
<Input type = "button" value = "set as Homepage" onclick = "this. style. behavior = 'url (# default # homepage) '; this. setHomePage ('HTTP: // www.apple-wallpaper.com '); "href =" http://www.apple-wallpaper.comt ">
3.When you leave, the system automatically prompts you to set it to the homepage:
<Body onUnload = "basebody. style. Behavior = 'url (# default # homepage) '; If (! (Basebody. ishomepage ('HTTP: // www.1.com ') basebody. setHomePage ('HTTP: // www. apple-wallpaper.comt'); ">
4.When the webpage is opened, the system prompts whether to set it to the Home Page:
<Script language = "JavaScript">
Function myhomepage (){
This. Homepage. style. Behavior = 'url (# default # homepage) '; this. Homepage. setHomePage ('HTTP: // www.dafacai.net ');
}
</SCRIPT>
<P align = "center"> <a href = "http://www.apple-wallpaper.comt" name = "Homepage"
Onclick = "myhomepage ();"> </a>
1. Image Link
<A style = "cursor: Hand" onclick = "This. style. Behavior = 'url (# default # homepage )';
This. setHomePage ('HTTP: // www.apple-wallpaper.com '); ">
<U> set as homepage </u> </a>
2. Text Type:
<A onclick = "This. style. Behavior = 'url (# default # homepage )';
This. setHomePage ('HTTP: // www.apple-wallpaper.com '); "href =" # "> set to homepage </a>
3. Button type:
<Input type = "button" value = "set to homepage" onclick = "This. style. Behavior = 'url (# default # homepage )';
This. setHomePage ('HTTP: // www.apple-wallpaper.com '); "href =" # ">
4. When you leave, the system automatically prompts you to set it to the homepage.
<Body onUnload = "basebody. style. Behavior = 'url (# default # homepage )';
If (! (Basebody. ishomepage ('HTTP: // www.apple-wallpaper.com ') basebody. setHomePage ('HTTP: // www.apple-wallpaper.com/'); ">
5. Set the prompt to homepage when the cursor points
<A href = "http://www.apple-wallpaper.com/" onmouseover = "This. style. Behavior = 'url (# default # homepage )';
This. setHomePage ('HTTP: // www.apple-wallpaper.com '); "target =" _ blank "> set to homepage </a>
-------------------------------------------------------------------------------
Add to favorites code
1.
<A href = "#" onclick = "javascript: window. external. addFavorite ('HTTP: // www.apple-wallpaper.com ', 'apple wallpaper resource ') "Title =" add this site to your favorites "> <font size ="-1 "color =" # ffe09e "> Add this site to favorites </font> </a>
2.
<A href = "javascript: 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 = "mailto: xuan_web@hotmail.com"> contact me </a>
Add the following code to <body>:
Onload = "myhomepage ();"
That is: <body onload = "myhomepage ();">