delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

                <PARAM NAME=movie VALUE="/templates/images/powerETPro.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF>
                 <EMBED src="/templates/images/powerETPro.swf" quality=high bgcolor=#FFFFFF swLiveConnect=FALSE WIDTH="65" HEIGHT="305" NAME="pedigree_home" TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">
                 </EMBED>
                 </OBJECT>

Not sure why they do that, you see any the benifts of doing it that way?, other then that  page size be little smaller as JS function comes from sourced JS file


Hi,
To display flash,
I see someone doing
Code:
  1. function showDemo1()
  2. {
  3.                 document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ID="Home-Middle" WIDTH="65" HEIGHT="305" ALIGN="">');
  4.                 document.write('<PARAM NAME=movie VALUE="/templates/images/powerETPro.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF>  ');
  5.                 document.write(' <EMBED src="/templates/images/powerETPro.swf" quality=high bgcolor=#FFFFFF swLiveConnect=FALSE WIDTH="65" HEIGHT="305" NAME="pedigree_home" TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">');
  6.                 document.write(' </EMBED>');
  7.                 document.write(' </OBJECT>');
  8. }
Copy Code
and the  calling in html
Code:
  1. showDemo1()
Copy Code
instead of doing  put the code straight in HTML
Code:
  1. <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ID="Home-Middle" WIDTH="65" HEIGHT="305" ALIGN="">
  2.                 <PARAM NAME=movie VALUE="/templates/images/powerETPro.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF>
  3.                  <EMBED src="/templates/images/powerETPro.swf" quality=high bgcolor=#FFFFFF swLiveConnect=FALSE WIDTH="65" HEIGHT="305" NAME="pedigree_home" TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">
  4.                  </EMBED>
  5.                  </OBJECT>
Copy Code
Not sure why they do that, you see any the benifts of doing it that way?, other then that  page size be little smaller as JS function comes from sourced JS file

TOP

Ignore that code, they are using bad coding practices, I don't recommend using the write method in general.

TOP

1) That is invalid markup
2) Horrible coding practice, they are using Javascript to call a flash element which can be disabled
I personally think they are just using Javascript just to show they can use it, or it is a demo of some sort.



                <PARAM NAME=movie VALUE="/templates/images/powerETPro.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF>
                 <EMBED src="/templates/images/powerETPro.swf" quality=high bgcolor=#FFFFFF swLiveConnect=FALSE WIDTH="65" HEIGHT="305" NAME="pedigree_home" TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">
                 </EMBED>
                 </OBJECT>

Not sure why they do that, you see any the benifts of doing it that way?, other then that  page size be little smaller as JS function comes from sourced JS file

TOP

Back Forum