Opponents of the proposed construction of a controversial mosque just blocks from Ground Zero “ought to be ashamed of themselves” for opposing it, Mayor Bloomberg said this morning.

Bloomberg said he also doesn’t care where the people behind the mosque and Islamic cultural center will get the money to build.

“People say, ‘Do they have the money? Can they raise the money? Where does it come from?’ ” Bloomberg said during an appearance on his WOR-AM radio show.

“I don’t know and government shouldn’t. Do you really want every time they pass the basket in your church and you throw a buck in, they run over and say, ‘OK, now, you know, where do you come from? Who are your parents? Where’d you get this money?’

Bloomberg then added, “A handful of people ought to be ashamed of themselves.”

Earlier this week, with the Statue of Liberty as a backdrop, Bloomberg gave an impassioned plea in support of the mosque for what he said was trampling on religious freedom.

“I believe that this is an important test of the separation of church and state — as important a test as we may see in our lifetimes — and it is critically important that we get it right,” the mayor said.

The mayor spoke shortly after the Landmarks Preservation Commission paved the way Tuesday for the construction of the mosque on Park Place — voting 9-0 vote not to grant landmark status to the 152-year-old building that is to be demolished for the project.

The planned building, called Park 51, is slated to house a community center in addition to the house of worship.

Families of many 9/11 victims have opposed the construction of the proposed mosque, saying it would be insensitive since the hijackers behind the terror attacks were Muslim.

“To cave to popular sentiment would be to hand a victory to the terrorists,” he said, “We should not stand for that.”