BEVERLY HILLS, Calif. – Lindsay Lohan’s third act in jail figures to be a short one.

Late Friday, the actress’ attorney won a ruling clearing her release from jail if she posts $300,000 bail. It came nine hours after another judge ordered the starlet jailed for nearly a month.

Lohan’s release won’t mean that she’s free. She will be required to wear an ankle alcohol monitor for nearly a month and can’t go anywhere where alcohol is the main product being sold.

Lohan, 24, is also due back in court on Oct. 22, when the judge who curtly sent her to jail will decide what her punishment will be for failing a drug test roughly two weeks after he released her early from rehab.

The drama played out in two courthouses and a suburban Los Angeles women’s jail where Lohan has been sent twice before for a three-year-old drug and drunken driving case.

Judge Elden S. Fox ordered Lohan held without bail shortly after 9 a.m. Friday in a hearing attended by both the actress’ parents and two bondsmen. When Lohan’s attorney, Shawn Chapman Holley, asked to argue for bail, Fox replied, “Nope.”

Holley returned after lunch and held a closed-door meeting with Fox, but his orders did not change. late afternoon, as courtrooms around Los Angeles were closing down, Holley filed a motion challenging the judge’s ruling.

Judge Patricia Schnegg, an assistant supervising judge of LA’s criminal courts, ruled shortly before 6 p.m. that Lohan was entitled to bail.

It was unclear when Lohan would be released.

N.J. mayor’s dedication rewarded

NEWARK, N.J. – Just two months ago, Facebook founder Mark Zuckerberg was at a conference in Sun Valley, Idaho, and found himself seated at dinner with Newark Mayor Cory Booker.

Booker, a charismatic, 41-year-old former Stanford football player, regaled the other guests around the table with stories about how he had moved into one of his crime-ridden city’s most dangerous neighborhoods and rode along with police on late-night patrols.

“It’s the kind of personal and real dedication that you get from real leaders,” Zuckerberg recalled. “It just made me think this is a guy I want to invest in.”

On Friday, Zuckerberg did just that.

The 26-year-old Internet tycoon, with a net worth estimated by Forbes magazine at $6.9 billion, made his first major charitable donation, pledging $100 million over the next five years to help Newark’s struggling schools, which are in such sad shape that they were taken over by the state in the 1990s.

Zuckerberg made the announcement on Oprah Winfrey’s show, where he was joined by the Democratic mayor and New Jersey Republican Gov. Chris Christie.

“I believe in these guys, right?” the Harvard dropout told Winfrey as he sat in sneakers, T-shirt and jacket with the two suit-and-tie-clad politicians.

Zuckerberg has no other connection to Newark; he grew up in suburban New York and attended prep school in New Hampshire.

As part of the deal, Christie agreed to hand over responsibility for improving the schools to Booker. And Booker, who helped dramatically reduce violent crime in his desperately poor city of 280,000 with the aid of cameras and other police equipment paid for with donated money, said he will try to raise an additional $150 million.

Zuckerberg said he doesn’t expect to spend much time in Newark. “I also spend all of my time running a company,” he said. Instead, he is leaving it to Christie and Booker to oversee the gift.

Christie and Booker pledged fundamental change but offered no specifics. Booker said he would start meeting with Newark residents to figure out how to use the money. He said it could go to both traditional public schools and charter schools.

“I’m putting everything on the line when it comes to my energy, my resources, my relationships, and frankly my career,” the mayor said. “We’ve got to show achievement within a number of years.”

The Newark school system has been plagued by low test scores, high dropout rates and crumbling buildings. Education experts will be watching closely to see whether the money makes a difference in a district that already spends nearly $24,000 a year — more than twice the national average — on each of its 40,000 students.

“Mark Zuckerberg’s generous pledge provides a rare opportunity to dramatically improve the education of Newark’s children and the quality of life for everyone who lives in this city,” said Joseph Del Grosso, president of the Newark teachers union.

Zuckerberg said he had been thinking about becoming a philanthropist and focusing on education, and decided to act now.

“The status quo path would be to wait until later into my career to do something,” he told reporters.