Results 1 to 5 of 5

Thread: Making element (or its content) "unselectable"

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

    Default Making element (or its content) "unselectable"

    on http://rambo.id.uw.edu.pl/fmanager.html I made a nice gizmo in form of "live" SGI-like file manager, however there is an annoying side effect that when I try to move window, or doubleclick on "items" in FM, the text is being highlighted- I'd like to avoid that: is there a possibility to make an element "unselectable"?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Very nice. Good CDE look.

    Have a look at the DD No Select Text script for an example.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2006
    Posts
    239
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    In deed that was what I was looking for: onselectstart, for now I inserted DD script, however it is a little too strict, so I'm going to "reverse engineer" it and write my own, more sophisticated one

    And BTW: it's not CDE- it's Indigo Magic Desktop aike

    --added: And it's done:

    function unlockSelect() {
    document.onselectstart= function() { return true };
    document.onmousedown= function() { return true };
    }

    function lockSelect() {
    document.onselectstart= function() { return false };
    document.onmousedown= function() { return false };
    }

    second called when "window" is dragged or clicable item receives mousedown event, and then first when mouseup
    Can anyone test the page on IE?
    Last edited by ItsMeOnly; 08-09-2006 at 10:46 PM.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    And BTW: it's not CDE- it's Indigo Magic Desktop aike
    Yeah, I read the bit about SGI after posting that. I wonder which came first?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Aug 2006
    Posts
    239
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    CDE- 1986, IMD, or IRIS desktop as it was first called, came with 4D and IRIS series, around 1989/1992 (with multiple revisions which lead to final look as presented on my site).

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
  •