Real Estate Forums

Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here.

Reply
 
Thread Tools Display Modes
Old 12-04-2007, 07:42 PM
howard11792's Avatar
howard11792 howard11792 is offline
Real Estate WebMaster
 
Join Date: Apr 2007
Posts: 162
howard11792 is on a distinguished road
Default How do I create “Bookmark This Site” on my webpage?

I would like to give viewers an easy option to automatically bookmark my site during their visit. What is the code and how do I do it?

Thanks
__________________
Granda Metz
Majestic Realty, Park City, UT
www.grandametz.com
www.traverseridge.com
Reply With Quote
Old 12-04-2007, 08:23 PM
gregharaksin's Avatar
gregharaksin gregharaksin is offline
REW Client
 
Join Date: Jul 2007
Posts: 1,147
gregharaksin is on a distinguished road
Default Re: How do I create “Bookmark This Site” on my webpage?

awesome question!
Reply With Quote
Old 12-04-2007, 11:12 PM
jessiesc jessiesc is offline
REW Client
Recently blogged:
REW's new CMS 2.5
at my REW Blog. Claim your blog
 
Join Date: May 2006
Posts: 3,006
jessiesc is on a distinguished road
Send a message via Skype™ to jessiesc
Default Re: How do I create “Bookmark This Site” on my webpage?

Add this between your <head> </head> tags:

<script language="JavaScript" >
// script by http://www.yourwebsite.com
var urlAddress = "http://www.yourwebsite.com";
var pageName = "yourwebsite.com - Your page name here";
function addToFavorites() {
if (window.external) { window.external.AddFavorite(urlAddress,pageName)}
else { alert("Sorry! Your browser doesn't support this feature.");}
}
</script>

Place this in your <body> somewhere:

<a href="javascript:addToFavorites()">Click To Bookmark This Page !</a>

Change yourwebsite to whatever url you want to bookmark.
__________________
I'm not Jennifer... I'm Jessie : Panama City Beach Real Estate, Panama City Real Estate and Panama City Beach Condos
Reply With Quote
Old 12-05-2007, 05:56 AM
rvolk75's Avatar
rvolk75 rvolk75 is offline
Uber Real Estate Webmaster
 
Join Date: Jan 2007
Location: Southampton, PA
Posts: 887
rvolk75 is on a distinguished road
Default Re: How do I create “Bookmark This Site” on my webpage?

or you can do something like this anywhere on the page:

<a href="javascript:window.external.AddFavorite('http ://www.yoursite.com', 'Search my city Real Estate');">
<img src="http://picture/house.gif"> Add this Page to your
Favorites</a>
__________________
Russell Volk, REALTOR®
Mid-Atlantic Real Estate
Feasterville, PA
Bucks County Real Estate | Bucks County Real Estate Blog | Doylestown, PA Real Estate.
Reply With Quote
Old 12-05-2007, 06:47 AM
jessiesc jessiesc is offline
REW Client
Recently blogged:
REW's new CMS 2.5
at my REW Blog. Claim your blog
 
Join Date: May 2006
Posts: 3,006
jessiesc is on a distinguished road
Send a message via Skype™ to jessiesc
Default Re: How do I create “Bookmark This Site” on my webpage?

Quote:
Originally Posted by rvolk75 View Post
or you can do something like this anywhere on the page:

<a href="javascript:window.external.AddFavorite('http ://www.yoursite.com', 'Search my city Real Estate');">
<img src="http://picture/house.gif"> Add this Page to your
Favorites</a>
Nice one, definately an easier method and doesn't require access to the <head> tag. But the above doesn't work on my site, I think it's because of the semi colon. This does however work (I've removed the img):

<a href="javascript:window.external.AddFavorite('http ://www.mysite.com','Favorites text')">Bookmark Us</a>
__________________
I'm not Jennifer... I'm Jessie : Panama City Beach Real Estate, Panama City Real Estate and Panama City Beach Condos
Reply With Quote
Old 12-05-2007, 06:52 AM
rvolk75's Avatar
rvolk75 rvolk75 is offline
Uber Real Estate Webmaster
 
Join Date: Jan 2007
Location: Southampton, PA
Posts: 887
rvolk75 is on a distinguished road
Default Re: How do I create “Bookmark This Site” on my webpage?

It should work with the image. That's how I have it setup. Maybe the img tag just needs to be closed.
__________________
Russell Volk, REALTOR®
Mid-Atlantic Real Estate
Feasterville, PA
Bucks County Real Estate | Bucks County Real Estate Blog | Doylestown, PA Real Estate.
Reply With Quote
Old 12-13-2007, 09:59 PM
howard11792's Avatar
howard11792 howard11792 is offline
Real Estate WebMaster
 
Join Date: Apr 2007
Posts: 162
howard11792 is on a distinguished road
Default Re: How do I create “Bookmark This Site” on my webpage?

I cant get the picture to work...Any suggestions???
__________________
Granda Metz
Majestic Realty, Park City, UT
www.grandametz.com
www.traverseridge.com
Reply With Quote
Old 12-14-2007, 03:20 AM
langard langard is offline
Real Estate WebMaster
 
Join Date: Apr 2006
Posts: 214
langard is on a distinguished road
Default Re: How do I create “Bookmark This Site” on my webpage?

Yes. Your site is built with PHP.

Use jessiesc's suggestion and put the function in the header. Backslash any full quotes (\").

Backslash any full quotes wherever you put it into the page also like so:
<a href=\"javascript:window.external.AddFavorite('htt p ://www.mysite.com','Favorites text')\">Bookmark Us</a>

Then it'll work fine. Try it on a test page if you think you'll have problems until it functions properly, then transplant it.
__________________
LanGard MicroDevelopers Oregon Real Estate Agent and Company Directory
Reply With Quote
Old 12-18-2007, 11:02 PM
howard11792's Avatar
howard11792 howard11792 is offline
Real Estate WebMaster
 
Join Date: Apr 2007
Posts: 162
howard11792 is on a distinguished road
Default Re: How do I create “Bookmark This Site” on my webpage?

Still not working...
__________________
Granda Metz
Majestic Realty, Park City, UT
www.grandametz.com
www.traverseridge.com
Reply With Quote
Old 12-19-2007, 03:39 AM
jessiesc jessiesc is offline
REW Client
Recently blogged:
REW's new CMS 2.5
at my REW Blog. Claim your blog
 
Join Date: May 2006
Posts: 3,006
jessiesc is on a distinguished road
Send a message via Skype™ to jessiesc
Default Re: How do I create “Bookmark This Site” on my webpage?

Quote:
Originally Posted by howard11792 View Post
Still not working...
Where is the link? I don't see it on your site.
__________________
I'm not Jennifer... I'm Jessie : Panama City Beach Real Estate, Panama City Real Estate and Panama City Beach Condos
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Real Estate Webmasters on Facebook

For our members

Main Sections

IDX Coverage Areas

You can find us at

Spiders Welcome

All times are GMT -7. The time now is 03:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.