If there is not one already it would be nice to have an add to favorites function built in And also a send page function.
like there is for "back", "top", "Print"
If this is built in already can someone point me to it?
Add to favorites - Send Page Functions
Add to Favorites Update
Ok I searched and played around enought that I found a snippet of code that works.
The only last thing I would like to do is get the icon to also be hyperlinked to the script. So that they can click the icon or the text and add to favorites.
Any coders out there know how to do this?
Code: Select all
<script>
<!--
if (document.all && document.getElementById){
document.write("<a href=\"#\" onclick=\"window.external.AddFavorite('" +document.URL+ "', '" +document.title+ "');return false;\">bookmark</a>")
}
else
{
document.write("Bookmark This Page")
}
// -->
</script>
The only last thing I would like to do is get the icon to also be hyperlinked to the script. So that they can click the icon or the text and add to favorites.
Code: Select all
<img src="img/article/icn_bookmark.gif" border="0">
Send This Page
Well I have the "Send this Page" thing worked out.
In your template HTML head you can enter:
(I personally like to make a .js file for these and then call it from the html head of the template:
And save this code as the email.js and upload it to your desired location:
Then for the link use:
I finally found this on this site:
http://www.hooverwebdesign.com/emailpage.html
In your template HTML head you can enter:
Code: Select all
<script language="javascript">
function mailpage()
{
mail_str = "mailto:?subject=Check out the " + document.title;
mail_str += "&body=I thought you might be interested in the " + document.title;
mail_str += ". You can view it at, " + location.href;
location.href = mail_str;
}
</script>
Code: Select all
<script type="text/javascript" language="JavaScript1.2" src="images/email.js"></script>
Code: Select all
function mailpage()
{
mail_str = "mailto:?subject=Check this out - " + document.title;
mail_str += "&body=I thought you might be interested in the " + document.title;
mail_str += ". You can view it at, " + location.href;
location.href = mail_str;
}
Then for the link use:
Code: Select all
javascript:mailpage()
I finally found this on this site:
http://www.hooverwebdesign.com/emailpage.html
or you could see this hack
http://www.phpwcms.de/forum/viewtopic.php?t=1072
http://www.phpwcms.de/forum/viewtopic.php?t=1072
http://www.studmed.dk Portal for doctors and medical students in Denmark