Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make onclick event with embedded video?

Status
Not open for further replies.

kippie

Technical User
Nov 8, 2001
158
I would like to have a video on my website and make it so that a visitor is brought to another HTML (in this case Google) if he clicks on the video. I have tried as I would /think it could work (see below) but is doesn't seem to work. Can someone help me to say what I do worng?

This is the HTM I have so far:
<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
</head>

<body>

<a href="javascript" onClick="window.open(' SRC="cyclers.avi" start="mouseover" loop="true" controller="false">
</EMBED></a>

</body>

</html>
 
Create a layer over the avi player and use a transparent GIF as the "button".

There's always a better way. The fun is trying to find it!
 
If you put a floating DIV tag over the video, and have an onclick event on the DIV tag, does that work?

Hope this helps,

Dan
 
Hi Tviman and Billy,

Thanks for your reaction, but I cannot get it work. It seems (at least for me) impossible to get a layer above the video. Is that so? Is the video layer always on top? I did as you said (see but what do I do wrong?

Kippie
 

Hmm.. maybe try using an iframe with a trapsarent background, and have the onlick event on the iframe instead?

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top