Of course, Hamas will keep on attacking anyway even if Iran is not attacked. They are just fishing for another pretext. From AFP, with thanks to JE:
THE radical Palestinian group Hamas will step up attacks against Israel if the Jewish state takes military action against Iran, its political chief has said in Tehran.
Khaled Meshaal also praised Iran’s President Mahmoud Ahmadinejad for his “courage” in having dismissed the Holocaust as a myth and calling for Israel to be moved out of the Middle East to Europe or North America.
“Just as Islamic Iran defends the rights of the Palestinians, we defend the rights of Islamic Iran. We are part of a united front against the enemies of Islam,” Mr Meshaal told reporters.
“Each member of this front defends itself with its own means in its region. We carry the battle in Palestine. If Israel launches an attack against Iran, we will expand the battlefield,” he told a news conference.