PDA

View Full Version : dissapearing "set as homepage" link.



VatsaL
11-12-2006, 05:24 PM
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

tech_support
11-13-2006, 06:07 AM
They would of probably used cookies.

ddadmin
11-13-2006, 09:06 AM
It definitely would involve cookies, though there's another missing piece of the puzzle - how does Google know what your current homepage setting is?

VatsaL
11-13-2006, 11:04 AM
No worries, dug one out from 6 months back!

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


VatsaL

tech_support
11-13-2006, 10:25 PM
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.

blm126
11-13-2006, 10:43 PM
Well, maybe a more cross browser solution would be to use CSS and :visited.

VatsaL
11-13-2006, 11:00 PM
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.


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

Acey99
11-13-2006, 11:17 PM
I'm assuming you're using IE ?

does ActiveX ring a bell ?

boxxertrumps
11-13-2006, 11:25 PM
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!

VatsaL
11-13-2006, 11:51 PM
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..