Web Analytics Made Easy -
StatCounter making embeded windows media clickable - CodingForum

Announcement

Collapse
No announcement yet.

making embeded windows media clickable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • making embeded windows media clickable

    any ideas how when the video is complete you can click the embedded video and will goto a url?

    cant find anything like this.

  • #2
    You could try something like this if the video starts automatically:

    JS:
    Code:
    function popitup(url) 
    {
    newwindow=window.open(url,'name','height=200,width=150');
    }
    CSS:
    Code:
    div.videoDiv
    {
    cursor: pointer; 
    cursor: hand;
    /* both declarations to ensure browser compatibility */
    }
    HTML:
    Code:
    <div class="videoDiv" onclick="popitup(urlToGoto)">
    <embed src="videoURL" />
    </div>
    Information on pop-ups found here.
    Last edited by 1212jtraceur; Oct 13, 2006, 05:34 PM. Reason: accidentally typed html code for link, rather than bbcode

    Comment


    • #3
      that didnt work i tried using

      <script type="text/javascript">
      function clicked() {
      if (event.y < 240) {
      window.open("http://www.google.com", "new");
      };
      };
      </script>

      and used onMouseDown="clicked()"

      it works in IE but not in firefox, not sure if i can get it to work in firefox or not.

      Comment

      Working...
      X