video placed in wrong place?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I cannot work out why the video is placed on the left hand side when
it should be placed, according to the css, on the right hand side. At
least I think this is a css problem, maybe I am wrong?

The code and the css entry are below



PS For those who have come across my efforts with the DOM for placing
video - apologies but this is driving me mad! I am making progress
with the php approach though!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
" ">
<link rel="stylesheet" type="text/css" href="assets/style/wm3.css">
<script charset='ISO-8859-1' src='rac.js'

<script type='text/javascript'>
var src = 'player';
if(!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0)) {
src = 'player8';
var divCount = 1;
function playVideo() {

var str1 = '<img src="assets/c2/images/image_c2_1_1.gif">';

var str2 = 'RHS';

var str3old = "alert('hello')";

var str3 = "AC_FL_RunContent('codebase',
',0,0,0 ',
'width', 320, 'height', 280, 'src', src, 'pluginspage',
' ',    'id', 'flvPlayer',
'allowFullScreen', 'true', 'movie', src,
'FlashVars','movie=assets/c2/video/video_c2_" + divCount + "1" +

var new1 = document.createElement('div');
new1.innerHTML = str1; = 'div1';
new1.className = 'nav';

var new2 = document.createElement('div'); = 'div2';
new2.className = 'content';

var new3 = document.createElement('script');
new3.type = "text/javascript"; = 'div3';
new3.text = str3;
var add_div = document.getElementById('div2');


body {
font-family:Arial,Verdana,"Microsoft Sans Serif";
background-color: #eeeeee;

.nav {
width: 350px;
float: left;
padding: 10px;
text-align: left;
border-style: solid;
border-width: 2px;
.content {
width: 400px;
padding: 10px;
margin-left: 400px;
border-left: 1px solid red;
border-style: solid;
border-width: 2px;

<body onload="playVideo();">


Re: video placed in wrong place?

Geoff Cox wrote:

Quoted text here. Click to load it

You must be. I get no video at all, not on left side, neither on the
right side. CSS is enabled, JavaScript is not.

HTH, Osmo

Re: video placed in wrong place?

On Sat, 11 Apr 2009 18:12:06 +0300, Osmo Saarikumpu

Quoted text here. Click to load it


Are you saying no video on any of the 3 examples? Which browser?

Certainly JavaScript is required for all as the video code needs

I find as follows, all latest versions except IE which is v7.

A = osflv-test1.htm    
B = osflv-test1-1.htm
C = osflv-test1-2.htm

Re whether video is shown,

browser        A    B    C

Firefox        LHS    LHS    RHS
IE7        none    none    RHS
Opera        none    none    RHS
Chrome        LHS    LHS    RHS
Safari        LHS    LHS    RHS        



Quoted text here. Click to load it

Site Timeline