المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Add to favorites & bookmark page



bahattab
05-03-2008, 01:42 AM
Add to favorites javascript, bookmark page javascript
This simple piece of javascript code will automatically popup a prompt box to tempt your visitor to bookmark the page into their favorites list.
No programming experience is needed to insert the java code. Simply add the code directly into the <body> tag of your webpage. Works with IE 4+ browser only.
Copy the javascript code within in the text box below. CTRL + C
To paste the javascript to your html press CTRL + V

Handy Tip:
Prompting your visitors to add your website to their browser favorites can help to increase return visits.




<body onLoad="if(document.all)
window.external.AddFavorite(window.document.locati on,window.document.title)">

bahattab
05-03-2008, 02:04 AM
Handy Tip: To increase the number of visitors returning to your site, you need to give them every oportunity to find your site again. The easiest way to do this is to offer them the choice to bookmark your page and add it to their browsers favorites.


Bookmark This Page Javascript
Adding the "bookmark this page" javascript below will help to encourage return visits. Your visitor simply clicks on the link and a popup prompt will appear so they can add your site to their favorites list.
STEP 1

First you place the following in your <HEAD> tag of your html
Change the 4th and 5th lines "var url Address and var Pagename" to suit your sites url and page name. Change nothing else!




<script language="JavaScript" type="Text/Javascript">

<!--
// Hide script from older browsers
// script by http://www.hypergurl.com

var urlAddress = "http://www.hypergurl.com/graphics.html";
var pageName = "Free Graphics,Hypergurl";
function addToFavorites()
{
if (window.external)
{
window.external.AddFavorite(urlAddress,pageName)
}
else
{
alert("Sorry! Your browser doesn't support this function.");
}
}
// -->

</script>



STEP 2
Then place this bookmark script in your html between the <body> and </body> tags, where you want the prompt to appear on your page. Change the font attributes to suit.




<a href="javascript:addToFavorites()">
<font color="#0000FF" face="Arial">Bookmark Page !</font>
</a>




http://www.hypergurl.com/bookmark.html