SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Coding for Jesus LavernGingerich's Avatar
    Join Date
    Jul 2003
    Location
    Tennessee
    Posts
    607
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Change Text Color in Javascript

    Hi,

    I have a lot of these on my page, calling the showtrail script. The color is controlled with a stylesheet.

    <li><a href="#" onclick="return false" onmouseover="showtrail('','Psalm 119:11','Thy word have I hid in mine heart, that I might not sin against thee.','','','',270);" onmouseout="hidetrail();">Psalm 119:11</a></li>


    The problem is, I need to make some of the Bible verses a different color. I thought I could just wrap those certain verses with something such as <p class="popup2">, but it messes up the pop-up on hover box.

    Any ideas? How can I change the color on only several of them?

    Thanks,
    Lavern
    Yoder's Smoky Mountain Barbecue
    High quality barbeque smokers, pig roasters, and bbq pit grills.
    Pursuing Life Ministries - Jesus has saved me and given me hope.

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Wrap them in <span class="popup2">, it shouldn't mess it up.
    Saul


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
  •