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 4 of 4

Thread: Highlight text

  1. #1
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts

    Highlight text

    Example: http://www.phpbb.com/rules/#rule1a
    I was hoping that this would not require JS but it looks like it does. How is this done? Do you think it can be done without JS? Perhaps with :focus? That would leave out IE though, and IE users are the more annoying ones who break the rules.
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,302
    Thanks
    203
    Thanked 2,562 Times in 2,540 Posts
    Have a look at:-

    http://www.webconcerns.co.uk/tutoria...ss_page_11.asp

    You can see how the effect is done if you View Source.



    It is your responsibility to die() if necessary….. - PHP Manual
    Last edited by Philip M; 08-22-2008 at 08:43 PM.

  • #3
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    Quote Originally Posted by Philip M View Post
    Have a look at:-

    http://www.webconcerns.co.uk/tutoria...ss_page_11.asp


    It is your responsibility to die() if necessary….. - PHP Manual
    Thanks, but I know how to style it. Look at the link and tell me how to make a block of text highlighted by clicking on it. phpbb used JS.
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,302
    Thanks
    203
    Thanked 2,562 Times in 2,540 Posts
    If you had viewed the source you would have found this acceditation:-

    http://dorward.me.uk/software/frag/hi.js

    which seems to cover it.

  • Users who have thanked Philip M for this post:

    twodayslate (09-07-2008)


  •  

    Posting Permissions

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