Adding cobweb style by parameter