using .onclick rather than lots of hrefs - newbie q

Discussion in 'HTML & Website Design' started by shabam, Nov 27, 2006.

  1. #1
    Hi there,

    I have an image map that uses onmouseover and onmouseout to display areas when moused over - i put all the info about what needs to be changed into an array.

    I am a newbie and am having problems not taking the brut force way to make things work in the next step: I want certain corresponding quicktime videos (I dont know how much more difficult this is to just changing the image) to take the place of the image map when i click on the hotspots.

    So the brut force way is to have an associate href to another html page that has a quicktime video embedded and set to automatically play.

    What id like to do is embed the videos into the html by js. Im assuming i would do this by first loading the videos into an array, then making it embed using onclick(). Am i fundamentally flawed in any way?

    Also I am confused how if I am to use onclick, what should the href say in the image map? (if i dont mention any href then there is no clicking option).

    Any general or specific pointers (generally and specifically) much appriaciated !
     
    shabam, Nov 27, 2006 IP