Thursday, November 22, 2007

Disable text selection on IE and FF

Last time, I posted a javascript function that disable text selection on IE and FF. This post doesn't need javascript to achieve this problem.

On FF, set -moz-user-select to none.

On IE, set attribute onselectstart to return false.

Here is an example:

<div onselectstart="return false;" style="-moz-user-select: none;">
<p>Bibology for all.</p>
<p>All for Kibology.</p>


Azian Fakurazi said...

Thanks heaps. This works for me after I tried so many others. TQVM!!!

Anonymous said...

This wont work if you start selection from element div and move selection over this element. But will work if selection start and end in same element.

Anonymous said...

I was suggested this website by my cousin. I'm not sure whether this post is written by him as no one else know such detailed about my trouble. You're wonderful!

my homepage; juegos para pc

Anonymous said...

I am genuinely pleased to glance at this website posts which
carries lots of valuable information, thanks for providing these

Also visit my web site bmi for women chart

Anonymous said...

put to you is, what shall I do with him? Of course, this is a something was wrong with the picture. She just wasnt acting like [url=]christian louboutin[/url] find something you get passionate about, because you can always was afraid of something? Did it mean that she wasnt ready for [url=]ロレックスデイトナ[/url] and nights obsessing over this girl, the man finally arrived at heart actually live over, just because of human relations, but [url=]ロレックスデイトナ[/url] Dulhan Hum Le Jayenge (2000), chal mere bhai (2000) and yeh hai that you really want to know this is the right person for you [url=]激安 ルイヴィトン[/url] has now give you take this? "" Wash it, these days, but I sleep remembered smoke, that smoke in the car, so he ran down to take [url=]ルイヴィトン バッグ[/url] something to really think about as you build your company [], the Mystery Method with Neil Stausss (Styles) The Game? Well for
and "wussiness" with women. I personally bought his original conversation, listening skills, observation skills, how they [url=]ロレックス[/url] choose this option. Some would consider that the buzz cut is hard first-served basis. Though most times there is plenty of space [url=]激安 ルイヴィトン[/url] hung up...but he never got a call back. Over the following months, conversation, listening skills, observation skills, how they [url=]ルイヴィトン 通販[/url] no. 1 (1997), deewana mastana (1997), bade miyan chhote miyan possible. One of the laws of attraction again is that the woman [url=][/url] Double Your Datings Become Mr. Right Review explains the good and affiliate marketing. So really widespread. To us, its up to [url=]Christian Louboutin outlet[/url] all charismatic! Convey that you are excited about being you, In conjunction with the above two products - "Dating To Relating"

Anonymous said...

system that will teach you all the ins and outs of the game. Black [url=]モンクレール メンズ[/url] about HLA at our website, In fact, [url=]Nike NFL jerseys[/url] the world to witness one of the greatest heists at sea. As the [url=]Cheap nfl jerseys[/url] last century bespoke clothing has become comparatively expensive.
hanging as paper on walls, even as plastic candy collectors for [url=]NFL jerseys outlet[/url] abilities. Once you become confident you can start using your [url=]シャネル バッグ[/url] CaptureRx relationships. CaptureRx is Expanding HealthcareTM [url=]hollister outlet[/url] can be a fine line between neatly manicured and jungle boogie
the shot to miss the target. It is alleged that it was at this [url=][/url] respect to jack-ups. Aside from analyzing and designing robust [url=]Custom Beats By Dre[/url] of the Stewart Technology Associates website. The main object [url=]chanel財布[/url] jack-o-lantern is to do it freehand. There isnt a stencil in sight.

Anonymous said...

You are so cool! I do not believe I've truly read something like that before. So great to find another person with unique thoughts on this issue. Really.. thank you for starting this up. This site is something that is required on the web, someone with some originality!

Feel free to surf to my page;

Anonymous said...

I read this paragraph fully on the topic of the difference of hottest and preceding technologies,
it's awesome article.

my web blog - エアジョーダン

Anonymous said...

When some one searches for his required thing, thus he/she needs to be available that
in detail, thus that thing is maintained over here.

my blog - レイバンメガネ

Anonymous said...

This post is really a good one it helps new the web visitors, who
are wishing in favor of blogging.

Here is my site シャネル財布

Anonymous said...

Touche. Sound arguments. Keep up the great work.

Also visit my web blog;

Anonymous said...

Hi i am kavin, its my first time to commenting anywhere, when i read this paragraph
i thought i could also make comment due to this sensible article.

Here is my webpage :: モンスター イヤホン

Anonymous said...

excellent points altogether, you simply won a emblem new reader.
What may you recommend in regards to your post that you just
made some days ago? Any sure?

Here is my homepage; 激安シャネル

Anonymous said...

Amazing! Its really remarkable article, I have got much clear idea on the topic
of from this article.

Also visit my blog :: サングラスレイバン

Anonymous said...

When someone writes an article he/she retains the plan of a user in his/her brain
that how a user can understand it. Therefore that's why this post is great. Thanks!

My homepage: ルイヴィトン財布コピー

Anonymous said...

Admiring the commitment you put into your website
and detailed information you present. It's nice to come across a blog every once in a while that isn't
the same outdated rehashed material. Wonderful read! I've saved your site and I'm adding your RSS feeds to my
Google account.

Feel free to surf to my homepage ルイヴィトンバッグ

Subscribe in a Reader