She [topic-は] ghost [object-を] saw [then-て] hair [object-を] stood-on-end.
髪を逆立てる ('to have one's hair stand on end') is a vivid expression for extreme fear. 亡霊 ('ghost/apparition') is a Sino-Japanese compound. The て-form links seeing the ghost to its physical consequence.