Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 06-23-2009, 12:13 PM   #1
Active Warrior
War Room Member
 
Join Date: Oct 2007
Location: Los Angeles, CA , .
Posts: 74
Thanks: 2
Thanked 3 Times in 2 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Default Needed, Code for a Redirect once My Video completes!

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
MikeStronghill is offline   Reply With Quote
Old 06-23-2009, 12:23 PM   #2
WSOGold.com
War Room Member
 
Michael Mayo's Avatar
 
Join Date: Jul 2005
Location: USA. Kentucky
Posts: 4,427
Blog Entries: 16
Thanks: 1,552
Thanked 1,295 Times in 659 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via ICQ to Michael Mayo Send a message via Skype™ to Michael Mayo
Default Re: Needed, Code for a Redirect once My Video completes!

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>
Hope that helps,
Have a Great Day!
Michael

Michael Mayo is offline   Reply With Quote
Old 06-23-2009, 12:25 PM   #3
Warrior Member
War Room Member
 
Join Date: Nov 2007
Location: , , United Kingdom.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Needed, Code for a Redirect once My Video completes!

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:
Originally Posted by MikeStronghill View Post
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
djtrillian is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
code, completes, needed, redirect, video

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 02:18 PM.