View Single Post
Old 01-13-2008, 03:41 AM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
heres a basic add to favourites for ie and firefox and "set as homepage" in ie

Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>hello world</title>

<script language="JavaScript1.2" type="text/javascript"> 
function CreateBookmarkLink() { 
title = "gfy kicks ass"; 
url = "http://www.gfy.com/"; 
if (window.sidebar) { 
// Mozilla Firefox Bookmark 

window.sidebar.addPanel(title, url,""); 
} else if( window.external ) { 
// IE Favorite 

window.external.AddFavorite( url, title); 
} 
else if(window.opera && window.print) { 
// Opera Hotlist 
return true; } 
}
</script>

</head>
<body bgcolor="#ffffff">
<a href="javascript:CreateBookmarkLink();">Add to Favorites</a>
<br><br>
<a href="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.google.com');">Set homepage </a>
</body>
</html>
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote