LOS ANGELES — She sobbed and pleaded in court not to be thrown in jail, but troubled Hollywood starlet Lindsay Lohan had another, far less plaintive message for the judge, written on the fingernail of her middle finger.

Photographers using telephoto lenses captured photos showing that Lohan, hand pressed against her mouth, had the words "f*** u" carefully written over a multicolored pastiche of pastel nail polish.

The judge ordered Lohan, 24, to spend 90 days in jail for violating probation in two 2007 drunken driving cases. She also was ordered to take part in a 90-day in-patient substance abuse program.

Lohan was ordered not to drink alcohol, drive a vehicle with any drugs or alcohol in her system, drive without a valid driver's license and insurance, or deny any field sobriety tests.

The judge ordered Lohan to begin serving her jail term July 20.

Earlier story:

Hollywood wild child Lohan gets jail sentence

Troubled Hollywood starlet Lindsay Lohan broke down in tears after she was sentenced Tuesday to 90 days in jail for violating her probation in two 2007 drunk driving cases.

The actress, once a red-headed Disney films star and promising A-lister whose career since has spun off course, also was ordered to participate in a 90-day inpatient substance abuse program.

After Beverly Hills Superior Court Judge Marsha Revel sentenced Lohan, 24, the actress and fashion muse wept in court.

The judge ordered Lohan to surrender July 20 to begin serving her 90-day jail term.