Dispenser for shampoo, liquid soap or the like