Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
black gabriel #1
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
-
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... -
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.... -
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... -
industry positioning for flash MX using dynamic content
hello there have your say or any great links would be great santhi -
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 -
wbahan #2
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



Reply With Quote

