trying to have several invisible buttons going to different pages in html5 animate
unfortunately, when i script the first button on it's own line (there are 9 buttons, in all in this animation, please see it on the right side fo the page at http://www.charlesfoxmusic.com) The animation reads "INCLUDING" and 9 categories. I want to make each one of those listings (SONG BOOK TV THEMES TELEVISION SCORES FILM SCORES CONCERT WORKS etc.,) into buttons that will navigate the viewer when he clicks them to that web page.
problem i am getting is how to set this up. i started with the SONG BOOK category. i made an invisible button over it and gave a separate line above the button with this code
this.button_1.addEventListener("click", fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage() {
window.open("http://www.thomasdrotardesign.com", "_blank");
}
WORKS PERFECTLY. however, when i go to the second category and do the same thing with the code
this.drotar.addEventListener("click", fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage() {
window.open("http://www.nytimes.com", "_blank");
}
WORKS PERFECTLY. HOWEVER, when i click on button_1 (SONG BOOK) it now takes me to the nytimes.com website, not the thomasdrotardesign.com website. how do i separate these buttons so they can navigate to separate sites without overlapping each other? I've tried everything. your insight would be invaluable.