Results 1 to 3 of 3

Thread: How do you change the LINK color in the Cross Browser marquee script? HELP!

  1. #1
    Join Date
    Jul 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How do you change the LINK color in the Cross Browser marquee script? HELP!

    1) Cross Browser marquee script

    2) http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm

    3) I have tried to change the color for the links manual by placing
    HTML Code:
    <font color="#FFFFFF"> </font>
    before each link but it still stays the same color which is blue. Is there anyway I can change the link color to another color? I have been able to change the normal text color but when it comes down to the links I place in the Cross Browser Marquee.. it stays blue.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You'll need to use CSS to do this. Firstly, add something like the below in the HEAD of your page:

    Code:
    <style type="text/css">
    
    .marqueestyle{
    font-family: Arial;
    color: black;
    }
    
    .marqueestyle a{
    color: green;
    }
    
    .marqueestyle a:hover{
    color: red;
    }
    
    </style>
    Then, inside the script, modify your marquee contents to carry your just defined CSS class name:

    Code:
    var marqueecontent='<nobr><span class="marqueestyle">Thank you for visiting <a href="http://www.dynamicdrive.com">Dynamic Drive.</a> If you find this script useful, please consider linking to us by <a href="../link.htm">click here.</a> Enjoy your stay!</span></nobr>'
    For a list of available CSS properties, see: http://www.javascriptkit.com/dhtmltu...eference.shtml

  3. #3
    Join Date
    Jul 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks soo much .. it worked

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
  •