Support Forums

Adding Flash to webpages

This is a discussion on Adding Flash to webpages within the Technical Support forums, part of the Technical Support Forums category; What version of 68 Classifieds are you running? Example: V4.11.10 Developer What template are you using? Default template Please describe ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

Reply
 
Thread Tools Display Modes
Old 06-30-2010, 12:21 PM   #1
jw4
Junior Member
 
Join Date: Jun 2010
Posts: 19
Rep Power: 7
jw4 is on a distinguished road
Default Adding Flash to webpages

What version of 68 Classifieds are you running?
Example: V4.11.10 Developer

What template are you using? Default template


Please describe in detail the issue you are having:

I want to include a swf file in a 68classifieds web page (home_page_banner.swf)

It works fine in a Dreamweaver created page but not when I include the code in the home.tpl page.

As well as the .swf file (put in the images folder) I have copied the flash scripts used to run the movie into a new Scripts folder within the Defaut template folder. (/swfobject_modified.js and /expressInstall.swf

I have put {literal} {/literal} around the inserted code.

Please can anybody help?

Here is the code:
<script src="Scripts/swfobject_modified.js" type="text/javascript"> </script>
<object id="FlashID" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="625" height="60">
<param name="movie" value="images/home_page_header.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt.
<param name="expressinstall" value="Scripts/expressInstall.swf" /> -->
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="images/home_page_header.swf" width="625" height="60">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>

Last edited by jw4; 06-30-2010 at 12:47 PM.
jw4 is offline   Reply With Quote
Old 06-30-2010, 01:00 PM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Usually problems with embeded code from other places is due to incorrect paths to the data. For example you have...

script src="Scripts/swfobject_modified.js"

is that the correct path to where the file is??
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 06-30-2010, 01:05 PM   #3
Developer & Moderator
 
Mike-N-Tosh's Avatar
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,427
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I assume you mean that you are running v4.1.10. LOL

It looks like the issue is most likely that you don't have the full path to your script. You're using a relative link instead. In addition, any script link should be in the head element of the html page. With that in mind, I would recommend doing it like this.

In your layout.tpl file between the <head> and </head> elements:
(recommend right after the last script call that is already there)
<script src="{$smarty.const.URL}/templates/templates/{$smarty.const.MAIN_TEMPLATE}/Scripts/swfobject_modified.js" type="text/javascript"> </script>
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 07-01-2010, 05:15 AM   #4
jw4
Junior Member
 
Join Date: Jun 2010
Posts: 19
Rep Power: 7
jw4 is on a distinguished road
Default

thank you both so much for your comments - it was indeed the path name, now corrected and running fine in IE, Firefox and Google.

thanks again, your help very much appreciated.
jw4 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
flash banner not loading business Technical Support 6 07-25-2009 07:05 AM
Flash banner on the right side of the logo metroem Templates, HTML, CSS, and Design Help 1 01-25-2009 08:27 AM
Flash Banner in Header ok_dir Templates, HTML, CSS, and Design Help 1 11-13-2008 02:58 PM


All times are GMT -4. The time now is 12:09 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0