Jump to content



Latest News: (loading..)

- - - - -

How to insert Flash .swf in index.php?


This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1   silver2008

silver2008
  • Members
  • 34 posts

Posted 16 July 2008 - 05:14 PM

Flash photo can't appear in web page,  What's wrong?  anyone can help me with that?  Many thanks!


(1) I already uplaod all photoes and flash file test.swf      to the location ====>  public.html/osc/include/language/english
                                                                                   to the location ====>  public.html/osc


(2) add the <img alt="test.swf" src="test.swf" width="300" height="222">  to the index.php ===> public.html/osc/include/language/english/index.php


define('TEXT_MAIN', '<img alt="test.swf" src="test.swf" width="300" height="222">');


============================================================



<?php
/*
  $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright © 2003 osCommerce

  Released under the GNU General Public License
*/

define('TEXT_MAIN', '<img alt="test.swf" src="test.swf" width="300" height="222">');
define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
  define('HEADING_TITLE', 'Let\'s See What We Have Here');
  define('TABLE_HEADING_IMAGE', '');
  define('TABLE_HEADING_MODEL', 'Model');
  define('TABLE_HEADING_PRODUCTS', 'Product Name');
  define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
  define('TABLE_HEADING_QUANTITY', 'Quantity');
  define('TABLE_HEADING_PRICE', 'Price');
  define('TABLE_HEADING_WEIGHT', 'Weight');
  define('TABLE_HEADING_BUY_NOW', 'Buy Now');
  define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
  define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
  define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
  define('TEXT_SHOW', '<b>Show:</b>');
  define('TEXT_BUY', 'Buy 1 \'');
  define('TEXT_NOW', '\' now');
  define('TEXT_ALL_CATEGORIES', 'All Categories');
  define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
  define('HEADING_TITLE', 'What's new here?);
} elseif ($category_depth == 'nested') {
  define('HEADING_TITLE', 'Categories');
}
?>

#2   DataMouse

DataMouse
  • Members
  • 417 posts

Posted 16 July 2008 - 06:09 PM

I'm not understanding the question.
You want to add a Flash file to show on the index/home page in the main body?

Just edit the code in the index.php file to include your Flash file. Something like (putting in a table):

<table width="1024" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><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="1024" height="450">
        <param name="movie" value="http://yourdomain.com/locationofflashfile.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <embed src="http://yourdomain.com/locationofflashfile.swf" width="1024" height="450" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
      </object></td>
    </tr>
  </table>

#3   silver2008

silver2008
  • Members
  • 34 posts

Posted 17 July 2008 - 12:59 AM

I can add the flash file, Many many many many thanks!