POSITIONING FLASH INTO HTML!

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default POSITIONING FLASH INTO HTML!

    Help! I Have A Flash Movie (.swf) I Need Positioned In A VERY Specific Place In
    My HTML Template. All Tags i have seen so far are just for, Top Left, Top
    Right, Bottom Left, Bottom Right etc...Those Will Not Work. I Need To Place My
    Flash In A Very Specific Place. Help!

    black gabriel Guest

  2. Similar Questions and Discussions

    1. Flash vs HTML
      I've always wondered about this: How much animation do you think should be on a site before you choose to do the whole site in Flash apposed to...
    2. Flash .html Plays on Server but NOT on html page
      Sorry for being so green. Running IIS Microsoft Server 1. Installed FMS 2. Installed Player 8 and 9 Uploaded .flv and .swf files to server....
    3. Flash in HTML
      Hi guys, I need some help in creating a site. I have my flash it's best made for 1024/768 screen resolution, and I wan't the site to be with no...
    4. industry positioning for flash MX using dynamic content
      hello there have your say or any great links would be great santhi
    5. Do you need the flash player to see a flash animation in a html document
      ?? because everyone is using flash in their html documents now days thanks kevin
  3. #2

    Default Re: POSITIONING FLASH INTO HTML!

    This might help... I used to do alot of basic html pages in the past and have
    wanted to bridge control over html and flash possitioning for a long time until
    I cooled off and thought about it. I am assuming you know a bit of html. This
    will help when you look at the following code:

    <HTML>
    <HEAD>
    <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
    <TITLE>EVEN THE ODD</TITLE>
    </HEAD>
    <BODY bgcolor="#666666">
    <!-- URL's used in the movie-->
    <!-- text used in the movie-->
    <!-- image map -->
    <table width="538" height="85%" cellpadding="0" cellspacing="0" border="0"
    align="center">
    <tr align="center" valign="top">
    <td height="5"><IMG SRC="images/spacer.gif" WIDTH=538 HEIGHT=5 BORDER=0></td>
    </TR>
    <tr align="center" valign="middle" bgcolor="#666666">
    <td height="465">
    <MAP NAME="etopre">
    </MAP>
    <SCRIPT LANGUAGE=JavaScript1.1>
    <!--
    var MM_contentVersion = 6;
    var plugin = (navigator.mimeTypes &&
    navigator.mimeTypes["application/x-shockwave-flash"]) ?
    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
    if ( plugin ) {
    var words = navigator.plugins["Shockwave Flash"].description.split(" ");
    for (var i = 0; i < words.length; ++i)
    {
    if (isNaN(parseInt(words)))
    continue;
    var MM_PluginVersion = words;
    }
    var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
    }
    else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
    && (navigator.appVersion.indexOf("Win") != -1)) {
    document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from
    IE4.5 Mac by splitting the tag
    document.write('on error resume next \n');
    document.write('MM_FlashCanPlay = (
    IsObject(CreateObject("ShockwaveFlash.ShockwaveFla sh." &
    MM_contentVersion)))\n');
    document.write('</SCR' + 'IPT\> \n');
    }
    if ( MM_FlashCanPlay ) {
    document.write('<OBJECT
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
    document.write('
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    rsion=6,0,0,0" ');
    document.write(' ID="etopre" WIDTH="538" HEIGHT="465" ALIGN="">');
    document.write(' <PARAM NAME=movie VALUE="etopre.swf"> <PARAM NAME=quality
    VALUE=high> <PARAM NAME=scale VALUE=exactfit> <PARAM NAME=wmode VALUE=opaque>
    <PARAM NAME=bgcolor VALUE=#000000> ');
    document.write(' <EMBED src="etopre.swf" quality=high scale=exactfit
    wmode=opaque bgcolor=#000000 ');
    document.write(' swLiveConnect=FALSE WIDTH="538" HEIGHT="465" NAME="etopre"
    ALIGN=""');
    document.write(' TYPE="application/x-shockwave-flash"
    PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
    document.write(' </EMBED>');
    document.write(' </OBJECT>');
    } else{
    document.write('<IMG SRC="etopre.gif" WIDTH="538" HEIGHT="465"
    usemap="#etopre" BORDER=0>');
    }
    //-->
    </SCRIPT><NOSCRIPT><IMG SRC="etopre.gif" WIDTH="538" HEIGHT="465"
    usemap="#etopre" BORDER=0></NOSCRIPT>
    </tr>
    <tr align="center" valign="top">
    <td height="5"><IMG SRC="images/spacer.gif" WIDTH=538 HEIGHT=5 BORDER=0></td>
    </TR>
    </table>

    </BODY>
    </HTML>

    This is a combination of an html template I used for splash home-pages and the
    html document that is generated when you publish your flash movie. Don't be
    afraid to get your paws dirty and mess around in html to get what you want. I
    needed a template that centered the .swf when the corner of the browser window
    was dragged out by the viewer. A frameset works best for me because I can see
    the Flash object in a <TD> easily and I can pad the rest of the rows and colums
    around it with percentages and image spacers. Please feel free to copy this
    code and test it out for yourself.

    wbahan Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139