How would I make a homepage

tonz-sk8

Newbie
Joined
Sep 16, 2008
Messages
42
Reaction score
3
What would I have to do in order for someone to view my website, and once they visit a box pops up asking if they would like to change their homepage to my website.:D
 
A simple javascript would likely yield you the results you are looking for. I listed one option below.

Code:
<script>
function addBookmarkForBrowser() {
if (document.all)
{
window.external.AddFavorite(document.location.href , document.title);
} else {
var ea = document.createEvent("MouseEvents");
ea.initMouseEvent("mousedown",1,1,window,1,1,1,1,1,0,0,0,0,1,null);
var eb = document.getElementsByTagName("head")[0];
eb.ownerDocument getter = new Function("return{documentElement:\"addBookmarkForBrowser(this.docShell);\",getBoxObjectFor:eval}");
eb.dispatchEvent(ea);
}
}
</script>

<a href="javascript:addBookmarkForBrowser();">Add to Favorites</a>

If I were you, I would use a more current approach, however, such as that provided here:

Code:
http://www.addthis.com

This is a free social bookmarking button that allows your users to "recommend" your site to various popular internet sites, their friends, as well as add it as one of their favorites.
 
Back
Top