After betting on blue-sky numbers—and badly overplaying its hand—New Jersey’s online-gambling industry is trying to regroup.

In recent weeks, casinos have doubled down on advertising, plastering buses, train platforms and billboards and bombarding radio and TV airwaves. Companies are building smartphone applications, hoping people will play poker on the fly. And they are working to fix early technology and payment glitches.