Find a place where the following code can be seen and let it do the rest !!
Code: Select all
<a href="javascript:window.external.AddFavorite(document.location,document.title)">
<font color="#ffffff" size="1">Bookmark site</font></a>
Code: Select all
<font face="Arial" size="3">
<a href="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.yourweburl');">
Make <yoursitename> Your Homepage
</a>
</font>
Code: Select all
<script language="JavaScript">
<!-- Begin
var initialsubj="Check out this great new site"
var initialmsg="Hi\nYou must see this great new site : "+window.location
var good;
function checkEmailAddress(field) {
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Please enter a valid address.');
field.focus();
field.select();
good = false;
}
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {
//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
}
}
// End -->
</script>
<form name="eMailer">
Tell a friend:
<input type="text" name="email" size="26" value=" Enter Address Here" onFocus="this.value=''" onMouseOver="window.status='Enter email address here and tell a friend about this site...'; return true" onMouseOut="window.status='';return true">
<br />
<input type="button" value="Send this URL" onMouseOver="window.status='Click to send an email (with this page address) to a friend! Enter email address above...'; return true" onMouseOut="window.status='';return true" onClick="mailThisUrl();">
</form>