Results 1 to 5 of 5

Thread: Set site as homepage Script

  1. #1
    Join Date
    Apr 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Set site as homepage Script

    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....

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Change:

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

    Code:
    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:

    Code:
    <!--[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.
    Last edited by jscheuer1; 04-22-2010 at 04:59 PM. Reason: highlight added code parts, add info, spelling
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.
    Last edited by jscheuer1; 04-22-2010 at 04:56 PM. Reason: remove illegal sig

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Looks good!
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Apr 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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!
    Last edited by Snookerman; 04-24-2010 at 07:40 AM. Reason: removed self promo link

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •