A federal judge under scrutiny for posting sexually explicit material on his own Web site declared a mistrial Friday in an obscenity trial over which he was presiding.

Judge Alex Kozinski said he would ask that the case be assigned to another judge.