Cursor Lock

Hello, i have a browser game with fps so i need to lock the cursor totaly in the game no matter where the player moves the mouse or clicks, how can i do that?

This will lock the cursor to the webplayer:

Screen.lockCursor = true;

In the web player, the cursor may only
be locked after the user has clicked
on the content and the user has not
left the content view with the cursor.
After the user presses escape or
switches to another application the
cursor will be automatically unlocked.
The cursor lock will also be lost when
exiting full screen mode.

To add the cursor in the webplayer in lock view. I think you could add your own:

Cursor.SetCursor(...);

All of the cursor stuff must happen in the “OnGUI” method of your script.
Ex:

void OnGUI()
{
    Cursor.visible = false;
    Cursor.lockState = CursorLockMode.Locked;
}