Jump to content

Slideshow won't display in content window


crmamx

Recommended Posts

Slideshow programs created with Slideshow Maker.

 

The html version works but opens in a new window. I want it to open in the content window same as all other programs.

 

menu2.php (partial)

<li>
        <a href="#">Slideshows</a>        
        <ul>
            <li>
                <a href="index.php?page=slideshow_shed">Shed construction</a>
            </li>
            <li>
                <a href="content/pages/slideshow_shed.html">Shed Construction</a>
            </li>
        </ul>
    

slideshow_shed.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Shed Pictures</title>
</head>
<body bgcolor="#FFFFFF">
<p> <p>
<style type="text/css">
<!--
.style1 {
color: #006633;
font-weight: bold;
}
-->
</style>
<!-- saved from url=(0013)about:internet -->
<table align="center" border="0" cellpadding=0 cellspacing=0>
   <tr>
      <td align="center">Shed Pictures</td>
   </tr>
   <tr><td align="center"><br /></td></tr>
   <tr>
     <td align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="768" height="576" id="tech" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie" value="slideshow_shed.swf" />
	<param name="quality" value="high" />
	<embed src="slideshow_shed.swf" quality="high" width="768" height="576" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
     </td>
   </tr>
         <tr>
      <td align="center" ><br />
        Created by <a href="http://www.flash-slideshow-maker.com/index.php?srcid=glc" target="_blank">Flash Slideshow Maker</a>
      </td>
   </tr>
   <tr>
     <td align="center" valign="middle" bgcolor="#FFCC99"><br />
<a href="http://www.flash-slideshow-maker.com/buynow.php?srcid=glc" target="_blank"><strong>Order the full version now to remove the software logo at the end of slideshow</strong></a>     </td>
   </tr>
</table>
</body>
</html>

slideshow_shed.php

<?php

?>
<style type="text/css">
<!--
.style1 {
color: #006633;
font-weight: bold;
}
-->
</style>

<table align="center" border="0" cellpadding=0 cellspacing=0>
   <tr>
      <td align="center">Shed Pictures</td>
   </tr>
   <tr><td align="center"><br /></td></tr>
   <tr>
     <td align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="768" height="576" id="tech" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie" value="slideshow_shed.swf" />
	<param name="quality" value="high" />
	<embed src="slideshow_shed.swf" quality="high" width="768" height="576" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
     </td>
   </tr>
         <tr>
      <td align="center" ><br />
        Created by <a href="http://www.flash-slideshow-maker.com/index.php?srcid=glc" target="_blank">Flash Slideshow Maker</a>
      </td>
   </tr>
   <tr>
     <td align="center" valign="middle" bgcolor="#FFCC99"><br />
<a href="http://www.flash-slideshow-maker.com/buynow.php?srcid=glc" target="_blank"><strong>Order the full version now to remove the software logo at the end of slideshow</strong></a>     </td>
   </tr>
</table>

 

I don't get any errors, just the title "Shed Pictures" displays.

 

your path is wrong:

 

your code expect the file to sit in the same folder ("slideshow_shed.swf") as the index.php but infact it's positioned in a different folder ("content/pages/slideshow_shed.swf").

this should be the code: I also recommend to adjust the width to your website.

 

object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="tech" align="middle" height="576" width="768">
        <param name="allowScriptAccess" value="sameDomain">
        <param name="movie" value="content/pages/slideshow_shed.swf">
        <param name="quality" value="high">
        <embed src="content/pages/slideshow_shed.swf" quality="high" name="tech" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="576" width="768">
    </object>

 

Everytime you refer to a file you need to use the path from that file, so if it's your index.php you use the path from that index.php, Are you using an external javascript file that for instnace includes/ uses an image you refer to that image from the position of the javascript file.

The same is for refering from an external stylesheet.

 

So to make it more clear:

 

for instance a  filesystem:

 

index.php
[images]
  - my-image.png
[css]
  - custom.css
[javascript]
  - my-javascript.js

 

referring to my-image.png from the different locations. (notice i used [ ] say it's a folder )

from index.php:  src="images/my-image.png"

from custom.css:  url(../images/my-image.png)

from my-javascript.js: src="../images/myimage.png"

 

Notice these are all client side files. so don't confuse them with the relative path in php. Sticky this thread for yourself and every time some file or image doesn't show up, read this again and again until you get it

 

cheers!

 

p.s.  hmm,  i have a deja vu ::)

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.