3d rotation!

hello
how to restrict 3d rotation , something like x-axis and z-axis but Not y-axis.
an exemple would be nice :bu: