1996 honda accord

With battery fully charged my 1996 Honda accord turns on but when i turn the lights on there is a ticking sound under the glove box. I turn off the car and when turning it right back on the battery is drained the lights go dim and it will not start.