How to change button texture ?

I do not know how to change the button texture ,thanks ,C# code

public sunlight SunLight;
public Texture temp;
public Texture Map ;
public GameObject test;
// Use this for initialization
void Start ()
{
//print(SunLight.temp );
}

// Update is called once per frame
void Update ()
{

}
void OnGUI()
{
GUI.Button(new Rect(100,200,100,100),Map);
}

void OnMouseEnter ()
{
test.guiTexture.enabled = true;
guiTexture.texture = temp;
//Map = temp;
print(“yyyyyyyyyyyyyyyyyyy”);
}

thanks

OnGUI and OnMouseOver are not related.

If you want to use OnGUI and GUI.Button, then check out GUIStyle. The style has a Normal and a Hover state. Just set the background textures: no mouse over code required.

thanks