When J.D. is on the floor with stuffed Rowdy it's hardwood, but when Rowdy turns into a real dog in his fantasy there is a green rug on the floor. When JD comes out of the fantasy the rug is gone and the hardwood returns. The rug was likely placed there to give the live Rowdy traction to leap over the couch and jump on Carla as depicted in the fantasy sequence.