Guest Posted April 13, 2011 Share Posted April 13, 2011 does anyone know what i am doing wrong here? here is my web page: www.getmaxxed.com i have installed my .swf and swfobject.js files to the includes folder to avoid any path issues. but it still isnt loading my flash. and my browser has the updated flash versions beyond this requirement. <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ if ($messageStack->size('header') > 0) { echo '<div class="grid_24">' . $messageStack->output('header') . '</div>'; } ?> <div id="header" class="grid_24"> <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> <!-- Adobe recommends that developers use SWFObject2 for Flash Player detection. --> <!-- For more information see the SWFObject page at Google code (http://code.google.com/p/swfobject/). --> <!-- Information is also available on the Adobe Developer Connection Under "Detecting Flash Player versions and embedding SWF files with SWFObject 2" --> <!-- Set to minimum required Flash Player version or 0 for no version detection --> var swfVersionStr = "10.1.52"; <!-- xiSwfUrlStr can be used to define an express installer SWF. --> var xiSwfUrlStr = ""; var flashvars = {}; var params = {}; params.quality = "high"; params.bgcolor = "#000000"; params.play = "true"; params.loop = "false"; params.wmode = "window"; params.scale = "showall"; params.menu = "true"; params.devicefont = "false"; params.salign = ""; params.allowscriptaccess = "sameDomain"; var attributes = {}; attributes.id = "mn_header"; attributes.name = "mn_header"; attributes.align = "middle"; swfobject.createCSS("html", "height:100%; background-color: #000000;"); swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;"); swfobject.embedSWF( "mn_header.swf", "flashContent", "535", "240", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes); </script> </head> <body> <!-- SWFObject's dynamic embed method replaces this alternative HTML content for Flash content when enough JavaScript and Flash plug-in support is available. --> <div id="flashContent"> <a href="http://www.adobe.com/go/getflash"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a> <p>This page requires Flash Player version 10.1.52 or higher.</p> </div> <div id="headerShortcuts"> <?php echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link(FILENAME_SHOPPING_CART)) . tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); if (tep_session_is_registered('customer_id')) { echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL')); } ?> </div> <script type="text/javascript"> $("#headerShortcuts").buttonset(); </script> </div> <div class="grid_24 ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading"><?php echo ' ' . $breadcrumb->trail(' » '); ?></div> </div> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> </tr> </table> <?php } ?> Link to comment Share on other sites More sharing options...
Guest Posted April 14, 2011 Share Posted April 14, 2011 I decided to go around the php embedding and place the adobe generated html and swf files in the same directory on my site... still doesnt work. these files work locally on the same folder so they should on the site as well. i contacted hostmonster and went round and round with them. they say it is nothing on their end... i have checked, rechecked paths and security so many times im gonna throw this pc through the wall! does anyone have any ideas before destruction begins? Link to comment Share on other sites More sharing options...
Guest Posted May 10, 2011 Share Posted May 10, 2011 Does anyone use flash in their headers? if so can I see your code? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.