The treatment of conjunctivitis depends upon the type of infection. If conjunctivitis is caused by viruses then no antibiotic will work and you may need only warm compress or saline solution to be applied several times a day. In case of bacterial conjunctivitis, antibiotic ointments or drops such as Bacitracin, Erythromycin, Ciprofloxacin or Ofloxacin may be given.