Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2010
    Location
    Toronto
    Posts
    95
    Thanks
    52
    Thanked 0 Times in 0 Posts

    Can Javascript do it?

    Can I dynamically change a text color when it goes through this attached image or div,(it does not matter)?
    I know how to change a color; however, I don’t know what conditions I need here. Is there a way to do it?

    here is the link:


    My idea is : to make text red when it is on the top of blue div but I have no idea how to achieve it.
    Once text is out of the blue div region, I want it be black again.
    Last edited by chickentulip; 09-17-2011 at 03:25 PM.

  • #2
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,026
    Thanks
    36
    Thanked 494 Times in 488 Posts

    Question

    Do you have some code to view or a link to visit?
    It appears that you forgot the attachment.

  • #3
    New Coder
    Join Date
    Oct 2010
    Location
    Toronto
    Posts
    95
    Thanks
    52
    Thanked 0 Times in 0 Posts
    jmrker, I have updated my first post
    Last edited by chickentulip; 09-16-2011 at 10:54 PM.

  • #4
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,026
    Thanks
    36
    Thanked 494 Times in 488 Posts
    I do not know of any way to control the text color within the "blue" area with JS.

    Since there is no JS in your script, you might try posting to the CSS section of this forum.
    I don't know if it will help, but at least it is something to try!

  • #5
    New Coder
    Join Date
    Oct 2010
    Location
    Toronto
    Posts
    95
    Thanks
    52
    Thanked 0 Times in 0 Posts
    thank you. this is what I will probably do


  •  

    Posting Permissions

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