Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
Photo
- - - - -

how to make a bookmark for your site


5 replies to this topic

#1 wannabeeaweak

wannabeeaweak

    Member [ Level 2 ]

  • Members
  • 71 posts
  • Gender:Male
  • Location:Los Angeles, CA

Posted 25 September 2004 - 05:04 AM

first you need to have a html editor

second u need to input this into your <head></head>
and change the var url Address and var Pagename to suit your site url and site name

<script language="JavaScript" type="Text/Javascript">
<!--// Hide script from older browsers

// script by [url=http://www.hypergurl.com]http://www.hypergurl.com[/url]
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>

next u need to input this in your<body></body>and change the color and font to suit your site
<a href="javascript:addToFavorites()">Bookmark Page !</a>

now your done

Edited by lhunath, 17 October 2004 - 09:04 AM.


#2 Guest_prodigy_*

Guest_prodigy_*
  • Guests

Posted 17 October 2004 - 06:17 AM

Thankyou wannabeeaweak,
The problem is that often those scripts don't work with Firefox Users or Mozilla users.

I believe it is important that the boomark script works for all types of browsers as mozilla/firefox are the up and coming browsers to date and more & more people are using them.

I have experienced difficulties such as I have mentioned when a script similar to yuor for setting homepage and bookmarking works with IE, but unfortunately doesn't work at all with mozilla/firefox.

When using Mozilla/firefox with that script nothing occurs, so it might be a javascript problem isn't it?

Funnily the scripts isn't supported by some builds of mozilla/firefox yet still shows and doesn't show the javascript dialogue that the browser isn't supported

#3 wannabeeaweak

wannabeeaweak

    Member [ Level 2 ]

  • Members
  • 71 posts
  • Gender:Male
  • Location:Los Angeles, CA

Posted 17 October 2004 - 11:56 PM

Thankyou wannabeeaweak,
The problem is that often those scripts don't work with Firefox Users or Mozilla users.

I believe it is important that the boomark script works for all types of browsers as mozilla/firefox are the up and coming browsers to date and more & more people are using them.

I have experienced difficulties such as I have mentioned when a script similar to yuor for setting homepage and bookmarking works with IE, but unfortunately doesn't work at all with mozilla/firefox.

When using Mozilla/firefox with that script nothing occurs, so it might be a javascript problem isn't it?

Funnily the scripts isn't supported by some builds of mozilla/firefox yet still shows and doesn't show the javascript dialogue that the browser isn't supported

<{POST_SNAPBACK}>


if it doesn't work, if were u i go to http://cgi.resourceindex.com and type in google for wut u need and it will find something for u

#4 Guest_prodigy_*

Guest_prodigy_*
  • Guests

Posted 18 October 2004 - 06:56 AM

if it doesn't work, if were u i go to http://cgi.resourceindex.com and type in google for wut u need and it will find something for u

<{POST_SNAPBACK}>


Yea thanks for the suggestion, as I said I am aware of that scripts issues with mozilla/firefox, just a suggestion you could possibly edit to enhance the compatibility of this script with mozilla/firefox browsers. :)

#5 sha

sha

    Newbie [ Level 2 ]

  • Members
  • 18 posts

Posted 18 October 2004 - 11:43 AM

its super duper easy but the browser should be java enabled for this to work:
just add this to a link--

<a href="java script:addToFavorites()">Bookmark Current Page</a>

and when user clicks this a favourites window will rise asking to bookmark the current page.

i think you cannot bookmark a page from with in another page.

#6 lhunath

lhunath

    Premium Member

  • [HOSTED]
  • 224 posts
  • Location:Belgium
  • Interests:1. Webdesign (XHTML - CSS - PHP)&lt;br /&gt;2. Graphics Design (Photoshop)&lt;br /&gt;3. Programming (Java)&lt;br /&gt;4. Writing (http://lhunath.deviantart.com)&lt;br /&gt;5. Thinking&lt;br /&gt;6. Being Lazy&lt;br /&gt;&lt;br /&gt;Poking people. Preferably with a twig.

Posted 18 October 2004 - 12:10 PM

That is a terrible solution for a hidious problem.
Hidious problem:
For one, adding a page to bookmarks should never happen through scripting. I'm serious. No exceptions. If somebody wants to bookmark a page, he can always use the browser's bookmark function. Period.
Terrible solution:
The script you gave us only works in Internet Explorer, with JavaScript security set on medium or low (don't know by heart). And by the way, it's not Java enabled, it's JavaScript. There is an unbelievably huge diffrence between Java and JavaScript. One being that JavaScript is one of the most evil languages ever emerged, and Java being one of the most beautiful.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users