Need some html help

Dell / Dimension 4600i...
January 3, 2010 at 20:14:42
Specs: Microsoft Windows XP Home Edition, 2.793 GHz / 1534 MB
Below is the start of a web page and I am already in trouble.

I would like it to be full screen or at least centered.
And when the wmv ends have media player close
automatically and goto page2.html. No end user input.

Any thoughts are welcome :-)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta content="text/html; charset=ISO-8859-1"
This is my test page

<!-- START -->
<embed src="C:/astuff/saysme/test1.wmv" width="620" height="483"

autostart="1" showcontrols="1" type="application/x-mplayer2"


/"> </embed>

<!-- END -->

See More: Need some html help

Report •

January 3, 2010 at 21:55:47
You could try a bit of javascript using setTimeout that is set to the end of your video file; for example, if your clip is 30 seconds long, then something like


<script type="text/javascript">

function newUrl() {

   window.location = "new_url";


<body onload="setTimeout('newUrl()', 30000)">

The downside is the client would have to have js enabled for it to work. I haven't tried it before, but another idea may be to try the meta refresh and set its time to the end of your clip.

<meta http-equiv="refresh" content="time to move; url=new page to open">

One thing to consider though is user bandwidth... if the user has a slow internet connection ( I still do :P ), then you may redirect before the video fully loads... it *might* be a good idea to allow users a way to skip the video if they choose.


Report •

January 4, 2010 at 15:48:23
Thank you for your thoughts shutat.

Going with the below. ....and put center in to fix that as well

<form name="redirect">
<p align="center" style="font-family:verdana;font-size:13px;">
You will be redirected to the new page in <input type="text" size="1" name="rsec" style="font-family:verdana;font-size:13px;border:0px;" />seconds...
<script language="JavaScript" type="text/javascript">
// Countdown (in seconds)
var cSeconds=25

// Target URL
var uTarget = "index.html"

var cSecond = document.redirect.rsec.value = cSeconds + 1
function countRedirect()
if (cSecond != 1)
cSecond -= 1;
document.redirect.rsec.value = cSecond;
window.location = uTarget;

Report •

January 4, 2010 at 16:26:21
no worries; best of luck to you with your endeavor. :)

Report •

Related Solutions

Ask Question