Results 1 to 10 of 10

Thread: dissapearing "set as homepage" link.

  1. #1
    Join Date
    Apr 2006
    Location
    London
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default dissapearing "set as homepage" link.

    If you have Google or MSN search (http://www.live.com) as your homepage, you probably would have noticed, that if you click on the "make google your homepage" link once, and when you www.google.com again after setting it as your homepage, the link dissapears.

    and if you set something else as your homepage, and then visit www.google.com, the link to set google as your homepage appears again.

    I tried playing with Google's code, but didnt actually work.
    How can I achieve that with javascript??

    thanks,


    VatsaL
    Last edited by ddadmin; 11-13-2006 at 09:05 AM.

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    They would of probably used cookies.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It definitely would involve cookies, though there's another missing piece of the puzzle - how does Google know what your current homepage setting is?

  4. #4
    Join Date
    Apr 2006
    Location
    London
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No worries, dug one out from 6 months back!

    http://www.dynamicdrive.com/forums/s...ad.php?p=37992


    VatsaL

  5. #5
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    It definitely would involve cookies, though there's another missing piece of the puzzle - how does Google know what your current homepage setting is?
    Trick of the trade.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  6. #6
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Well, maybe a more cross browser solution would be to use CSS and :visited.

  7. #7
    Join Date
    Apr 2006
    Location
    London
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by blm126 View Post
    Well, maybe a more cross browser solution would be to use CSS and :visited.

    Then wouldn't this serve as a cross browser script? well, I thought it would.

    ..if anyone can confirm that the script works in netscape and mozilla and opera - the link should disspear after you've set it as your homepage.

    Code:
    <span id=hp style="behavior:url(#default#homepage)"></span>
    <script type="text/javascript">
    //<!--
    if (!hp.isHomePage('http://www.dynamicdrive.com/')) {document.write("<p><a href=\"#\" onclick=\"style.behavior='url(#default#homepage)';setHomePage('http://www.dynamicdrive.com/');return false;\">Make DynamicDrive your homepage</a>");}
    //-->
    </script>
    thanks.

  8. #8
    Join Date
    Nov 2006
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm assuming you're using IE ?

    does ActiveX ring a bell ?

  9. #9
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    this represents Google's increasing hold on the internet...
    BEWARE

    youtube got googled in the most literal sense, it was bought by them awhile ago...

    most ads you see on the webs are from google

    its the number one search engine...

    its the apocalypse!
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  10. #10
    Join Date
    Apr 2006
    Location
    London
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Acey99 View Post
    I'm assuming you're using IE ?

    does ActiveX ring a bell ?
    yeah, IE Ahoy.

    ActiveX may be defined as a nuclear bomb on a web page.

    .and Google s the king, it'll never cease.
    It is slowly taking over the web, munching up anything that'll come in its way..

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
  •