Results 1 to 2 of 2

Thread: For changing color in this script

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

    Default For changing color in this script

    Hello!

    I need help to change the color of the text in this script the text is presently Black And I interested to change for white..

    See this script:


    ******************************************************

    <style type="text/css">
    .verticaltext{
    font: bold 13px Arial;
    position: absolute;
    right: 3px;
    top: 20px;
    width: 15px;
    writing-mode: tb-rl;
    }

    </style><script type="text/javascript">

    <script type="text/javascript">

    /***********************************************
    * Vertical Text script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
    * This notice must stay intact for legal use
    ***********************************************/

    //Enter desired vertical text:
    var myverticaltext='<div class="verticaltext">This page copyright © 1998-2004 <a href="http://www.dynamicdrive.com">Dynamic Drive.</a></div>'

    var bodycache=document.body
    if (bodycache && bodycache.currentStyle && bodycache.currentStyle.writingMode)
    document.write(myverticaltext)

    </script>



    Thanks in adverance for your help!

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

    Default

    Just add color: white to the CSS at the top:

    Code:
    .verticaltext{
    color: white;
    font: bold 13px Arial;
    "
    "

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
  •