New Jersey enacted legislation banning some convicted sex offenders from using the Internet. In signing the restrictions into law, Acting Gov. Richard J. Codey, who is filling in while Gov. Jon S. Corzine is vacationing, noted that sexual predators were as likely to lurk at a computer keyboard as in a park or playground.