PDA

View Full Version : Script for home page setup!?


Vivaldi
2005-12-10, 11:23 AM
Does anyone know a script for setting Your page as surfers home page if they click to certain text link!?

Useless
2005-12-10, 12:29 PM
I think this only works in IE. If Firefox, the text appears but there is no clickability.

<!--Paste this where the link will appear -->
<a style="cursor:hand;font-family:arial"onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://yourdomain.com');"><b>Make Us Your Homepage</b></a>

Vivaldi
2005-12-12, 06:50 AM
Good enough for me ... BIG thanks Useless |thumb

I guess You're not so useless after all :-)

Mattinblack
2005-12-12, 08:56 AM
This is a bit more friendly - just adds to bookmark .... dont like setting homepages myself cos it pisses em off.

Heres off my http://ukescort.kwikfire.com/index.html - it means the user has to click but its easily modded to an inline call. If the browser not supported tells em to press control D. One of the nice things about this is that the bookmark does not have to be for the site they are on or page.

<script language="JavaScript">

browser = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));

function bookmark()
{
window.external.AddFavorite('http://ukescort.servik.com/','UK Escorts');
}
if (browser) {
document.write('<a href="#" onClick="exit=false; bookmark()"><font face="verdana,arial,helvetica,san-serif" size="1" color="#ffffff">Click To Bookmark</font></a></center>')
}
else {
document.write('<font face="verdana,arial,helvetica,san-serif" size="1" color="#ffffff">Press [CTRL-D] To Bookmark This site</font>')
}
</script>

BTW remember to change URL to your site else they will be visiting me instead...lol

Vivaldi
2005-12-12, 09:42 AM
I already have one script for bookmarking but this is a nice one .... thanks!