Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

embed swf into content page


ya_dood

Recommended Posts

Posted

Hi,

 

I'm trying to add a standard swf to a php page for one of my new content pages (includes/languages/english) but when when i add it I get an error. it seems that it's taking the // from http:// as a comment and it isn't word wrapping the whole line for me http://download.macromedia.com/pub/shockwa...=7,0,19,0" width="500" height="425". Is it possible to put swfs into here? i've done it with my STS template but that was dealing with an HTML file, not a PHP file.

 

thanks, :blink:

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="425">

<param name="movie" value="swf/motion_C5_photogallery.swf" />

<param name="quality" value="high" />

<embed src="swf/motion_C5_photogallery.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="425"></embed>

</object>

Posted
Hi,

 

I'm trying to add a standard swf to a php page for one of my new content pages (includes/languages/english) but when when i add it I get an error. it seems that it's taking the // from http:// as a comment and it isn't word wrapping the whole line for me http://download.macromedia.com/pub/shockwa...=7,0,19,0" width="500" height="425". Is it possible to put swfs into here? i've done it with my STS template but that was dealing with an HTML file, not a PHP file.

 

thanks, :blink:

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="425">

<param name="movie" value="swf/motion_C5_photogallery.swf" />

<param name="quality" value="high" />

<embed src="swf/motion_C5_photogallery.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="425"></embed>

</object>

Hmm, unless that section is in a php section of the code, it shouldn't be interpreting it as a comment, as html comments are constructed with <!-- and -->... It might interpret it that way if it were within <script></script> tags, but otherwise it shouldn't... And even if it is within a php section, it still shouldn't interpret it that way, unless it's outside of a string delimiter, like an apostrophe or quotation mark... How do you actually have this embedded in the php file itself, can you copy and paste the whole chunk with say, 10 lines above and below it?

 

Richard.

Richard Lindsey

Posted

<div align="center">

 

 

<p class="bodytxt_home">

<script type="text/javascript">

AC_FL_RunContent( 'codebase','http:

 

(the error begins here-break is here --it makes it orange in dreamweaver so i believe it think it's a comment because of the '//' )

 

 

//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','500','height','425','title','Motion C5 Gallery','src','swf/motion_C5_photogallery','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','swf/motion_C5_photogallery' ); //end AC code

</script>

<noscript>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="425" title="Motion C5 Gallery">

<param name="movie" value="swf/motion_C5_photogallery.swf" />

<param name="quality" value="high" />

<embed src="swf/motion_C5_photogallery.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="425"></embed>

</object>

</noscript>

</p>

<p class="bodytxt_home">Click on the Thumbnails to View Images <br />

 

<br />

</p>

</div>

 

 

Thanks for the help :)

Posted

Ahhhhhhh I see what you're saying now... Well, Dreamweaver may mark it as a comment, but the page rendering engine itself may not, as it doesn't look to be within an actual php block... However, if this isn't all 1 continuous line, that would most likely be the problem with it, whether it's considered a comment or not, because it's breaking that http address up into sections... Can you not just backspace that //section a couple of lines until it's directly following the http with no line breaks?

 

Richard.

Richard Lindsey

Posted

I will post my embedded swf file in which I opened in Dreamweaver and copy/paste so you can see if you can find any differences. I include line numbers so that you can see the breaks in the code.

Here is my code from my header.php file:

 

Line 107 <!-- Begin Flash Movie --><object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="[url="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0[/url]" border="0" width="552" height="300" align="right" hspace="0">
Line 108  <param name="movie" value="images/banner-top.swf">
Line 109  <param name="quality" value="High">
Line 110  <embed src="images/banner-top.swf" pluginspage="[url="http://www.macromedia.com/go/getflashplayer"]http://www.macromedia.com/go/getflashplayer[/url]" type="application/x-shockwave-flash" name="obj1" width="552" height="300" quality="High"></object><!-- End Flash Movie --></td></tr>

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Posted
I will post my embedded swf file in which I opened in Dreamweaver and copy/paste so you can see if you can find any differences. I include line numbers so that you can see the breaks in the code.

Here is my code from my header.php file:

 

Line 107 <!-- Begin Flash Movie --><object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="[url="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0[/url]" border="0" width="552" height="300" align="right" hspace="0">
Line 108  <param name="movie" value="images/banner-top.swf">
Line 109  <param name="quality" value="High">
Line 110  <embed src="images/banner-top.swf" pluginspage="[url="http://www.macromedia.com/go/getflashplayer"]http://www.macromedia.com/go/getflashplayer[/url]" type="application/x-shockwave-flash" name="obj1" width="552" height="300" quality="High"></object><!-- End Flash Movie --></td></tr>

Hmmmmmmm, and yet when this page renders in the browser, it's breaking that http line?

 

Richard.

Richard Lindsey

Posted
Hmmmmmmm, and yet when this page renders in the browser, it's breaking that http line?

 

Richard.

No, Richard...I was posting an example of what DOES work so that the original poster could use as a guide. :lol: Sorry if I confused the matter but it looks like the original poster was able to use my code and get it working. :-

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Posted
No, Richard...I was posting an example of what DOES work so that the original poster could use as a guide. :lol: Sorry if I confused the matter but it looks like the original poster was able to use my code and get it working. :-

Yeah I caught that after I saw him say it worked, I was like "huh whaaa?" and then looked back to the top and realized I'd gotten the original poster confused and had assumed you were him when I saw your post :D

 

Richard.

Richard Lindsey

Posted
Yeah I caught that after I saw him say it worked, I was like "huh whaaa?" and then looked back to the top and realized I'd gotten the original poster confused and had assumed you were him when I saw your post :D

 

Richard.

Yeah...I got a chuckle out of it. :lol: :lol: Have a great day...it's good to laugh every once in a while. :rolleyes:

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...