potresti utilizzare questo

http://javascript.html.it/script/ved...script-attivo/