Futuredood
07-23-2002, 02:23 AM
Hey,
I was looking for the code to make those links that once clicked, will offer to have that web site as their browser's home page..
Usually seen on sites like this:
"Click here to make xxx.com your home page!"
Thanks!
IGobyTerry
07-23-2002, 02:35 AM
oops delete this post, I just tried it out and it definitely doesn't work.
The Prohacker
07-23-2002, 02:49 AM
<!-- ONE STEP TO INSTALL SET HOMEPAGE LINK:
1. Copy the coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
// If it's Internet Explorer, use automatic link
// Be sure to change the "http://www.YourWebSiteHere.com\"
// to the URL you want them to bookmark.
if (document.all){
document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.YourWebSiteHere.com\');">');
document.write('<font size="5" color=6699FF face=arial><B>Click Here to Make My Web Page Your Homepage</B></font></a>');
}
// If it's Netscape 6, tell user to drag link onto Home button
// Be sure to change the "http://www.YourWebSiteHere.com\"
// to the URL you want them to bookmark.
else if (document.getElementById){
document.write('<a href="http://www.YourWebSiteHere.com">Drag this link onto your Home button to make this your Home Page.</a>');
}
// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}
// If it's any other browser, for which I don't know the specifications of home paging, display instructions
else {
document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}
// End -->
</script>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 2.11 KB -->
Only IE support this feature!
<SCRIPT LANGUAGE="JavaScript">
<!-- // Begin
if (document.all){
document.write('<A HREF="#" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.YourSite.com\');">');
document.write('Click Here to make this your homepage</a>');
}
else {
document.write('Press CTRL D to bookmark this page');
}
// End -->
</script>
alpha
07-23-2002, 03:30 AM
I'm not speaking for Futuredood as I have no idea how he's going to use this feature...
but seriously... who da heck would want to set your homepage (the very first thing you would see if you open up your browser) to a site that has 3 popups and 11 popunders with a full screener with no close button?
I just don't like those who take advantage of things like that to try to accidentally get hits - I remember this times I accidentally selected yes instead of no - the next time I opened up IE, I saw the Niagara Falls of advertisements.
Just my personal grudge I guess ;)
Just like most things, some people actually use it for it's intended purpose while others -- gullible people beware!