SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Easy one!

  1. #1
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face Easy one!

    How would I add a <FONT> tag to this script to make the link white? Thanks!

    <SCRIPT LANGUAGE="JavaScript">

    <!-- Begin
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >=

    4)) {

    var url="http://www.etraveltutor.com";
    var title="Helpful foreign language phrases and games at eTravelTutor!";

    document.write('<A HREF="javascript:window.ext');
    document.write('ernal.AddFavorite(url,title);" ');
    document.write('onMouseOver=" window.status=');
    document.write("'Bookmark this Site!'; return true ");
    document.write('"onMouseOut=" window.status=');
    document.write("' '; return true ");
    document.write('"><b>Bookmark this Site!</b></a>');
    }
    else {
    var msg = "Bookmark this Site!";
    if(navigator.appName == "Netscape") msg += " (CTRL-D)";
    document.write(msg);
    }

    // End -->
    </script>
    <!--End ADD TO FAVORITES-->

  2. #2
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,121
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    As a guess (haven't tested)

    Code:
    document.write('"><b>Bookmark this Site!</b></a>');
    to

    Code:
    document.write('" style="a{color:#FFF;"><b>Bookmark this Site!</b></a>');
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  3. #3
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I figured it out!

    document.write('<div class="linkcolor1"><A HREF="javascript:window.ext');
    document.write('ernal.AddFavorite(url,title);" ');
    document.write('onMouseOver=" window.status=');
    document.write("'Bookmark this Site!'; return true ");
    document.write('"onMouseOut=" window.status=');
    document.write("' '; return true ");
    document.write('"><b>Bookmark this Site!</b></a></div>');

    Ta-Da!!! I love <DIV> tags


Bookmarks

Posting Permissions

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