Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: DTD question

  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Bristol, UK
    Thanked 0 Times in 0 Posts

    Cool DTD question

    hehheh, sort of carrying on from beetle's thread about DTD's, I have an ickle question (very specific hence new thread):

    You know the link stuff you can do in CSS; for instance a:link, a:visited, a:hover and a:active...?

    Well, I want to add some more states: normal, over, down and downover are my needs however over = hover and normal = link.

    Therefore I just need to add the down and downover attributes... any idea how? See, it's not just like adding a tag attribute to a DTD is it? (Hence new thread) I need to have some JavaScript in there somewhere, to tell when the mouse button is pressed down.

    I can do the code to change the states, and detect the mouse button, that is dead easy, basic coding. However, so far my feeble attempts to add this to a DTD so that I can use a:down has caused some problems!

    I have been trying to wade through some of the very interesting code which jkd sent me on a related subject (thanks jkd - it's top work but I will probably take a while to figure it out! ) however even though I think the method is similar I can;t work out how to do it.

    Please can someone give me a tip? jkd... you could probably do this blindfold lol

    Thanks peeps

    ::] krycek [::
    ithium | SOAPI | SDP | PTPScript manual
    "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."

  • #2
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    metro DC
    Thanked 18 Times in 18 Posts
    Custom tags is one thing, custom CSS is not.

    No browser exposes any way of adding extra pseudo-classes via CSS. As a matter of fact, as far as I can tell it actually parses out anything it doesn't understand, which means implementing some Javascript to read rules wouldn't even be that effective.


    Posting Permissions

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