PDA

View Full Version : Set site as homepage Script



tooner
04-21-2010, 02:51 AM
1) Script Title: :: Set site as homepage Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/addhome.htm

3) Describe problem: how to configure this for my page?

I have it at bottom here:
http://www.danscartoons.com/search_cartoons.htm

and need to know how best to configure so when a person clicks it, it will make it their homepage....

jscheuer1
04-22-2010, 04:55 AM
Change:


this.setHomePage('http://dynamicdrive.com');

to:


this.setHomePage('http://www.danscartoons.com/search_cartoons.htm');

Notes: This only works in IE, so it would be best to hide it from other browsers, like so:


<!--[if IE]>
<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.danscartoons.com/search_cartoons.htm');return false;">click here to make CARTOON SEARCH your default homepage</a>
<![endif]-->

And, if memory serves, it only works on a live page - can't be tested locally. The function should be made, as in the above example, to return false, so that the page will not reload.

tooner
04-22-2010, 03:40 PM
John:
VERY much appreciated. I went and did what you told meto. If you go here: http://www.danscartoons.com/search_cartoons.htm
let me know what you think? Sure appreciate your response.

jscheuer1
04-22-2010, 05:00 PM
Looks good!

tooner
04-22-2010, 06:08 PM
John - While I got you....about that link at bottom....
Would it be an even better idea to make that link more prominent on the page? Like up on the top and to the right? Or, in a way to get visitors to use THAT page as their search engine....as opposed to Google per se? Curious for feedback as the daily toon there offers peoople some incentive also!