View Single Post
Old 08-13-2005, 10:55 AM   #1 (permalink)
killer_cow
Moo indeed.
 
killer_cow's Avatar
 
Join Date: Dec 2002
Location: In a grassy field :D
Posts: 140
killer_cow
HTML/CSS- How to code for UNSELECTABLE text

Hey guys,

Q2. for today.

How would I go about making text in an html page unselectable?

My problem is that in this javascripted menu I've just made (see previous post), when someone clicks on the 'Menu' label, that expands/collapses the menu, if he/she clicks on it and it selects the Menu text, then the menu freezes and goes crazy (flicking collapsed and expanded really quickly). :S

Now, I've seen Microsoft's 'Unselectable' attribute, but this only works in IE. Rubbish!

This unselectable attribute stops this problem I have perfectly! So please if anyone knows a cross-cleint/browser solution, please post it here!

Your time and help is much appreciated.

KC
__________________
killer_cow is offline   Reply With Quote