AVS4You.comSupportRulesAbout Us
    ENG English    FRA Français    DEU Deutsch
Posts: 11
Registered: 08.11.2010
15.11.10 11:46:59
Sorry to ask for help on this as I know I need to spend time learning about tables but the only time I'll need this for my videos is when I use this code.*SORRY*

I have upload this file to my server and it opens fine but it open left justified. I could sure be happy if someone could code this for me so the vidoe player would be centered on the page when it opens.
Posts: 11
Registered: 08.11.2010
15.11.10 11:49:56
Please help me center the player with the page opens, don't know how to do this.

<html>
<head>
<META http-equiv="content-type" content="text/html; charset=windows-1252">

<title>new tilte does it appear here?AVS Flash Player</title>

More text here
<center>
<!-- SWFObject embed by Geoff Stearns geoff@deconcept.com http://blog.deconcept.com/swfobject/ -->
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
	body {
		background-color: #FFFFFF;
		font: .8em/1.3em verdana,arial,helvetica,sans-serif;
	}

	#flashcontent {
		border: solid 0px #000;
		width: 450px;
		height: 370px;
		float: left;
	}
</style>
</head>
<body>
	<div id="flashcontent">
		<strong>You need to upgrade your Flash Player.</strong>
	</div>
	<div align="right">
<script type="text/javascript">
		var so = new SWFObject('avs4you_player.swf', 'player', '450', '370', '7', "#ffffff");
		so.addParam("allowScriptAccess","always");
		so.addParam("allowFullScreen","true");
		so.addParam("wmode", "window");
		so.addParam("scale", "noscale");
		so.addVariable("file", "4thmovie.flv");
		so.addVariable("width", "450");
		so.addVariable("height", "370");
		so.addVariable("theme", "Glass.swf");
		so.addVariable("repeat", "0");
		so.addVariable("autostart", "0");
		so.addVariable("image", "");
		so.addVariable("volume", "50");
		so.addVariable("scaleonresize", "none");
		so.addVariable("top_caption", " ");
		so.addVariable("bottom_caption", " ");
		so.addVariable("v", getQueryParamValue("v"));
		so.write("flashcontent");
	</script></div>
</body>
</html>
Posts: 2396
Registered: 29.01.2012
16.11.10 04:59:48
To: bismarck2

Hello,

Try typing margin:0 auto; instead of float: left; . It should help.

Regards.

P.S. Please name the topic with the actual problem, not with the words "Help, please, etc", see forum rules.
Posts: 11
Registered: 08.11.2010
16.11.10 10:18:52
Sorry how I named the topic. Won't do that again.

Change the index.html file as you suggested but still the player is left justified.

You can see it here and look at the source code.
http://www.networkdriven.com/ASV4YOUhtmlCode1/index.html


Vlad:
To: bismarck2

Hello,

Try typing margin:0 auto; instead of float: left; . It should help.

Regards.

P.S. Please name the topic with the actual problem, not with the words "Help, please, etc", see forum rules.
Posts: 2396
Registered: 29.01.2012
17.11.10 07:36:41
To: bismarck2


Video is centered in my Firefox... Which browser do you use?

Try also placing <html> tag with the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
Posts: 11
Registered: 08.11.2010
17.11.10 12:03:00
Thanks, I hadn't deleted the <html> and <head> tags from the top and replaced it with the DOCTYPE you showed below.
Centers great now.

Vlad:
To: bismarck2


Video is centered in my Firefox... Which browser do you use?

Try also placing <html> tag with the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
Online:
Users:  0  
Guests:  561