GavinPearce
08-09-2003, 07:23 AM
Just playing around and made the following script that thought might be usful for some people. Never seen it used before so I though I'd post it here.
Basically it writes a link saying Set this site as your homepage to the page unless of course the site already is the users homepage in which case it won't ask them to set it as the homepage. Very nifty idea to keep your users happy from getting asked teh same things over and over again.
<script>
//ossys
//<!--
if (!hp.isHomePage('http://www.yoursite.com/')) {document.write("<p><a href=\"/mgyhp.html\" onClick=\"style.behavior='url(#default#homepage)';setHomePage('http://www.yoursite.com/');\">Make this site your Homepage!</a>");}
//-->
</script>
Basically it writes a link saying Set this site as your homepage to the page unless of course the site already is the users homepage in which case it won't ask them to set it as the homepage. Very nifty idea to keep your users happy from getting asked teh same things over and over again.
<script>
//ossys
//<!--
if (!hp.isHomePage('http://www.yoursite.com/')) {document.write("<p><a href=\"/mgyhp.html\" onClick=\"style.behavior='url(#default#homepage)';setHomePage('http://www.yoursite.com/');\">Make this site your Homepage!</a>");}
//-->
</script>