![]() | | ||||||||
| | #1 |
| Active Warrior War Room Member Join Date: Oct 2007 Location: Los Angeles, CA , .
Posts: 74
Thanks: 2
Thanked 3 Times in 2 Posts
|
Hi all, I am needing some help. I have posted this question before and still don't have an answer. I am wanting a way to play a video on my website and once this video finishes, I want it to redirect the viewer to an order page. Does anyone know how to do this in Dreamweaver or do you have any Java Code or HTML code that will allow me to do this? Thanks in advance for any information on this. Mike |
| | |
| | #2 |
| WSOGold.com War Room Member Join Date: Jul 2005 Location: USA. Kentucky
Posts: 4,427
Blog Entries: 16 Thanks: 1,552
Thanked 1,295 Times in 659 Posts
|
Hi Mike, You could try putting a couple of functions like this in the Head of your html page. Code: <script type="text/javascript">
function playerReady(obj)
{
player = document.getElementsByName(obj.id)[0];
player.addModelListener('STATE', 'stateMonitor');
};
function stateMonitor(obj)
{
if(obj.newstate == 'COMPLETED')
{
document.location.href = "newpage.html";
}
};
</script> Have a Great Day! Michael |
| SAVE KIM WINFREY MEGA WSO! KEEP KEN STRONG FUNDRAISER - HELP KEN BEAT CANCER Coming Soon: Forum Ferret - Digg Deeper | |
| | |
| | #3 | |
| Warrior Member War Room Member Join Date: Nov 2007 Location: , , United Kingdom.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
The simple way to do it is by time. I have used a timeline in DW to show/hide layers and there is a simple script to redirect after a certain elapsed time. But the potential problem is that if the video caches ue to slow connection or if they can pause it etc. then the end of the video will not match up with the timing of the redirect script. If you use .wmv format you can embed a URL as a metacommand and that way it will always happen at the right time in the video. Quote:
| |
| | |
![]() |
|
| Tags |
| code, completes, needed, redirect, video |
| Thread Tools | |
| |
![]() |