40 users online (0 members and 40 guests)  


  Results 1 to 7 of 7

Related

  1. Replies: 1
  2. Adding Favorites    Forum: HTML Forum
    Replies: 1
  1. #1
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156

    add favorites--customizable?

    my index.html uses frame, so dat ma music will go on even when someone browse through my pages. i also put a addfavortie button on my main.html(located inside index.html with another .html call music.html) . however, i want the surfer (when pressing the add favorite button ) to add favorite to my index.html, but not my home.html, how do i do dat?

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi there.

    Could you post the link to your site, or at least the code you are using for 'add favourite'? thanks.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    here's the code i use to put the add favorite link:

    <SPAN STYLE='cursor:hand;'onClick='window.external.AddFavorite(location.href, document.title);'><IMG SRC="addfavorite.gif" alt="Add me to your favorites!!!"><FONT color="#0066CC" size="1" face="verdana"><U>Add to favorites</U></FONT></SPAN>

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi again.

    I do not have Internet Explorer easily to hand, but in theory, doing this should be fine -

    replace
    Code:
    location.href
    with
    Code:
    "index.html"
    and replace
    Code:
    document.title
    with
    Code:
    "My Webpage Title"
    If you could try that (with IE, doesn't work with my mozilla, but neither did the original code) and let us know how you get on, thanks.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Here is the code I use

    a href="javascript:window.external.AddFavorite('http://www.ahfb2000.com','Advanced HTML For Beginners')">Bookmark /a

    Dave
    Last edited by HTML; 07-22-2002 at 04:41 PM.
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  6. #6
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    thx to both of u. however, dean, ur's didn't work. therefore, i used dave instead.

  7. #7
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    lol. As long as your problems solved
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread