www.webdeveloper.com
Results 1 to 3 of 3

Thread: Help!! How can position a video with Javascript relative to the screen size??

Threaded View

  1. #1
    Join Date
    Mar 2009
    Posts
    2

    Exclamation Help!! How can position a video with Javascript relative to the screen size??

    H!. This this driving me nuts!. I am new to this, and I am trying to place a video in the main page of this website www.carolynryan.com using javascript. However, the video has a fixed x-y position, in pixels. If If the site is viewed with different resolutions or screen sizes, the video obviosly appears more to the right or left, instead of "moving" with the size of the page, inside the square area to the right.(centered). Does anybody know how to place the video in such a way so that the video is always centered there? I can't place it inside the page because it has no background, (spokesperson video) Maybe doing it with percentages or something like that?

    This is the code I am using for the javascript video..it's located at the bottom of the index page source in www.carolynryan.tv

    <SCRIPT LANGUAGE="JavaScript" type="text/JavaScript">
    v_flvbase='http://www.carolynryan.tv/videos/';
    v_theflv='carolynr1.flv';
    v_scaleflv='yes';
    v_mwidth='240';
    v_mheight='400';
    v_alignvideo='bottomright';
    v_padx='50';
    v_pady='90';
    v_thecontroller='http://code.javahd.com/container/controller2.swf';
    v_thecontrollerx='30';
    v_thecontrollery='300';
    v_freezeonend='yes';
    v_freezeonendwait='';
    v_playbuttononend='yes';
    v_bigplayx='20';
    v_bigplayy='250';
    </SCRIPT>
    <SCRIPT LANGUAGE="JavaScript" src="http://code.javahd.com/js/carolynr.js" type="text/JavaScript"></SCRIPT>

    Any help greatly appreciated.
    Last edited by cmd1705; 03-27-2009 at 12:55 PM. Reason: oops! forgot to add the code!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles