On Wed, 19 Jun 2002 08:37:40 +0000 (UTC), "Jesper " <jesper@jspr.dk>
wrote:
>Jeg har problemer med at få lagt et javascript ind på det rigtige sted i
>min HTML-kode.
>Jeg har en side med nogle tables, hvori der ligger et billede
>(saj_link02.gif). Her skal min .swf placeres, så den ved hjælp af
>scriptet skiftes ud med saj_link02.gif
>Måske skal .swf'en og den .gif som skal erstatte den ligge i layers -
>jeg kan bare ikke få det til at spille.
koden for at få vist en flash film (swf) i html er sådan:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="600" height="400">
<param name=movie value="din.swf">
<param name=quality value=high>
<embed src="din.swf" quality=high
pluginspage="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="600" height="400">
</embed>
</object>
højde og bredde kan du jo bare ændre!
Jan Larsen
>
>billedet er saj_link02.gif, som ligger på
>
http://www.jspr.dk/saj/saj.html
>koden her er:
><html>
> <head>
> <meta http-equiv="content-type"
>content="text/html;charset=iso-8859-1">
> <meta name="description" content="Stig Asger Jensen - Rådgivende
>Ingeniører">
> <meta name="keywords" content="">
> <meta name="author" content="JSPR 2002">
> <title> : saj : </title>
> <script language="JavaScript">
> function openNewWindow(URLtoOpen, windowName, windowFeatures) {
>newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
> </script>
> </head>
> <body bgcolor="#ffffff" leftmargin="0" marginwidth="0" topmargin="0"
>marginheight="0">
> <table border="0" cellpadding="0" cellspacing="0" width="100%"
>height="100%">
> <tr height="180">
> <td height="180" width="40%" nowrap valign="top"
>align="center"><img src="saj_line.gif" width="100%" height="180"
>border="0"></td>
> <td valign="top" width="560" height="180" nowrap
>align="center"><img src="saj_logo.gif" width="560" height="180"
>border="0"></td>
> <td width="40%" height="180" nowrap valign="top"
>align="center"><img src="saj_line.gif" width="100%" height="180"
>border="0"></td>
> </tr>
> <tr height="59">
> <td height="59" width="40%" nowrap valign="top"
>align="center"></td>
> <td valign="top" width="560" height="59" nowrap
>align="center"><a href="saj01.html" target="_self"><img
>src="saj_link01.gif" width="560" height="70" border="0"></a></td>
> <td width="40%" height="59" nowrap valign="top"
>align="center"></td>
> </tr>
> <tr height="55">
> <td height="55" width="40%" nowrap valign="top"
>align="center"></td>
> <td valign="top" width="560" height="55" nowrap
>align="center"><a
>href="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
>target="_blank"><img src="saj_link02.gif" width="560" height="70"
>border="0"></a></td>
> <td width="40%" height="55" nowrap valign="top"
>align="center"></td>
> </tr>
> <tr height="33%">
> <td height="33%" width="40%" nowrap valign="top"
>align="center"></td>
> <td valign="top" width="560" height="33%" nowrap
>align="center"></td>
> <td width="40%" height="33%" nowrap valign="top"
>align="center"></td>
> </tr>
> <tr height="43">
> <td height="43" width="40%" nowrap valign="top"
>align="center"><img src="saj_line02.gif" width="100%" height="43"
>border="0"></td>
> <td valign="top" width="560" height="43" nowrap
>align="center"><img src="saj_navn01.gif" width="560" height="43"
>border="0"></td>
> <td width="40%" height="43" nowrap valign="top"
>align="center"><img src="saj_line02.gif" width="100%" height="43"
>border="0"></td>
> </tr>
> </table>
> <p></p>
> </body>
></html>
>---
>Jeg skal så have lagt koden (scriptet) fra det fgl. dokument med flashen
>ind på det rigtige sted.
>:
><HTML>
><HEAD>
><meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
><TITLE>saj_link02</TITLE>
></HEAD>
><BODY bgcolor="#FFFFFF">
><!-- URL's used in the movie-->
><!-- text used in the movie-->
><!--SAJ-ING.DK ANVENDER FLASH 5HVIS DU IKKE SER EN ANIMATION HER TIL
>VENSTRE:KLIK HER FOR AT HENTE DET NÿDVENDIGE PLUG-IN.DET TAGER CA. 1
>MINUT MED ET 56 K MODEM.--><!-- image map -->
><MAP NAME="saj_link02">
></MAP>
><SCRIPT LANGUAGE=JavaScript1.1>
><!--
>var MM_contentVersion = 5;
>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[i])))
> continue;
> var MM_PluginVersion = words[i];
> }
> 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.ShockwaveFlash." &
>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#version=6,0,0,0"
>');
> document.write(' ID="saj_link02" WIDTH="560" HEIGHT="70"
>ALIGN="">');
> document.write(' <PARAM NAME=movie VALUE="saj_link02.swf"> <PARAM
>NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> ');
> document.write(' <EMBED src="saj_link02.swf" quality=high
>bgcolor=#FFFFFF ');
> document.write(' swLiveConnect=FALSE WIDTH="560" HEIGHT="70"
>NAME="saj_link02" 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="saj_link02.gif" WIDTH="560" HEIGHT="70"
>usemap="#saj_link02" BORDER=0>');
>}
>//-->
></SCRIPT><NOSCRIPT><IMG SRC="saj_link02.gif" WIDTH="560" HEIGHT="70"
>usemap="#saj_link02" BORDER=0></NOSCRIPT>
></BODY>
></HTML>
>
>/Jesper