Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# CSS Java HTML XHTML Flash
Hi every one, i am currently working on a youtube player in C# and found the easiest to make work is to make a html homepage and put it into a C# webbrowser, and call the javascript with invokescript. everything works fine but the youtube video/swfObject have a "border" witch really isn't a border but the home page it self and i wanna have the swfObject/video moved all the way up to the corner i've paste some code here below:
        <script type="text/javascript" src="scripts/swfobject.js">
    <BODY bgcolor="Black">
        <FORM NAME="youtubeForm">
            <div id="ytplayer">
                <a href="javascript:void(0);" onclick="changePluginState();">Flash player 8+</a> and JavaScript enabled to view this video.
                <script type="text/javascript">
                    var params = { allowScriptAccess: "always" };
                    var atts = { id: "ytplayer" };
                    swfobject.embedSWF(";video_id=u1zgFlCw8Aw&amp;enablejsapi=1&amp;playerapiid=ytplayer", "ytplayer", "400", "300", "8", null, null, params, atts);
i dont wanna add a css file if i can avoid it, and i've tried to add style margin to both the javascript/swfObject and the div and the form nothing works... so does any one have any idea? the swfObject.js is picked up at google api homepage and the header mainly just have scripts to control the youtube player so that isn't importen for the design. please help to make the design look perfectly.
Thanks - Jackie
EDIT: i found some code as shown below but i cant make it work any how...
<style type="text/css" media="screen">
     { display:block; }
Posted 3-Nov-11 12:26pm
Edited 3-Nov-11 13:14pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

found the solution by doing this:
<BODY bgcolor="Black" style="margin-left: 0px; margin-top: 0px; margin-bottom: 0px">
everything works great now Smile | :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 645
1 Maciej Los 225
2 Richard Deeming 160
3 Suvendu Shekhar Giri 159
4 Abhinav S 151
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 9,135
2 Peter Leow 5,042
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,581

Advertise | Privacy | Mobile
Web02 | 2.8.150327.1 | Last Updated 3 Nov 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100