Results 1 to 10 of 10
  1. #1
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Location
    Edmonton Canada
    Posts
    5,781
    Can anybody help me here? I am using this script as a bookmark me but what I want to do is use it on quite a few different pages, is there anyway to do this without me having to keep changing the website.com?
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>*SCRIPT LANGUAGE="JavaScript"*
    *!-- Begin
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) *= 4)) {

    var url="http://www.website.com/";
    var title="Computer bargains";

    document.write('*A HREF="javascript:window.ext');
    document.write('ernal.AddFavorite(url,title);" ');
    I had to remove the mouseover bit from here
    document.write("'Add our site to your favorites!'; return true ");
    document.write('"onMouseOut=" window.status=');
    document.write("' '; return true ");
    document.write('"*Bookmark us for your */a*');
    }
    else {
    var msg = "Bookmark us for your ";
    if(navigator.appName == "Netscape") msg += " (CTRL-D)";
    document.write('Bookmark us for your */a*
    Netscape: CTRL-D');
    }

    // End --*
    */script*<HR></BLOCKQUOTE> All > & < have been changed to * so it will showThanks in advance for any help with this

  2. #2
    ABW Founder Haiko de Poel, Jr.'s Avatar
    Join Date
    January 18th, 2005
    Location
    New York
    Posts
    21,609
    Gordon,

    Not sure of your exact Q ... can you elaborate ...

    do you want to use it on ....
    www.xxxx.com/123.htm AND www.xxxx.com/456.htm and then offer a bookmark on the individual pages?

    Haiko

  3. #3
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Location
    Edmonton Canada
    Posts
    5,781
    Yes exactly Haiko. I was thinking of putting the script in the template and hoping it would automaticaly bookmark the different individual pages that use the template. Thus saving me from having to change by hand the url in the script for every page. Can this be done?

    BTW only 2 more members now and you have 4500 [img]/infopop/emoticons/icon_biggrin.gif[/img]

    [ 07-20-2002: Message edited by: Gordon ]

  4. #4
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    Gordon, you use Dreamweaver, right? I think if you put it in a template, Dreamweaver will resolve the URL to the file name. I'm not positive however. You might want to look for a Bookmark This Page extension on the DW Exchange at Macromedia. That would be more likely to interact with Dreamweaver's link management than a 3rd party script. Then before you apply it to the whole site, try it on just a couple pages to test it.

  5. #5
    Full Member garystarling's Avatar
    Join Date
    January 18th, 2005
    Posts
    277
    Try location.href as in the following example

    < SCR IPT LANGUAGE="JavaScript" >
    < !--

    function addBookmark() {
    if (window.external)
    external.AddFavorite(location.href)
    else
    alert("Your browser doesn't support this feature.");
    }

    // -- >
    < /SCR IPT >

    Spaces added after < >.

  6. #6
    Full Member garystarling's Avatar
    Join Date
    January 18th, 2005
    Posts
    277
    Just in case you are not sure how to call it use:

    < FORM >
    < INPUT TYPE="button" VALUE="Add" onClick="addBookmark[]" >
    < /FORM >

    Change square brackets to round ones!

  7. #7
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Location
    Edmonton Canada
    Posts
    5,781
    GaryS
    Thanks Gary that is what I am after but is there a way that I could use that code but as a text link rather than a form button?

  8. #8
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Location
    Edmonton Canada
    Posts
    5,781
    @ eaglefire

    Yes you are correct I use dreamweaver but for some reason the bookmark extension will not work. I have tried to reload it but it tells me I need dreamweaver 4 :confused: I am sure I had it working before on dreamweaver 3

  9. #9
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    Add To Faves


    OK well no matter what I do the URL isn't going to come out right.

    Go to http://www.macromedia.com/exchange/dreamweaver/
    Go to Navigation Extensions and download Add To Faves.

    {

    [ 07-21-2002: Message edited by: eaglefire ]

  10. #10
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Location
    Edmonton Canada
    Posts
    5,781
    @ eaglefire
    Thanks for that info.

    You are not going to believe this, all of a sudden, (after trying for about 8 days and it not working) the bookmark extension has decided to work :confused:

    I do not know what it was that caused it not to work but hey! I'm happy now [img]/infopop/emoticons/icon_biggrin.gif[/img] I can do what I want to do and hopefully bring in more sales [img]/infopop/emoticons/icon_biggrin.gif[/img]

    Thanks to everybody for the help.

  11. Newsletter Signup

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •