473,750 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

anyone has idea on how to run SWFObject from within PHP in Mambo

1 New Member
Hello peeps

I am trying to run a banner with SWFObject from within PHP/Mambo.
I have two others SWF in the same page, so I know it works.
Also checked the Developer tool in Chrome and saw that the .js file was loaded.
Clicked the link of the SWF I want to see displayed and it runs in another window.
Also if I call it via localhost ..../x.swf it works.
It just DOESN'T work when called from within PHP.
Here is the code I am using. If any og you guys could give me a hand on this I would really appreciate.
If I change the name of the file and put one other SWF it works.

Regs

Expand|Select|Wrap|Line Numbers
  1. <script language='JavaScript' src='templates/waterandstone_greenandblack/swfobject.js' type='text/javascript'></script>
  2.  
  3. <!--<div id="flashcontent"> You need to upgrade your Flash Player</div>
  4. <script type="text/javascript">
  5.         var so = new SWFObject("templates/waterandstone_greenandblack/preview.swf", "flash", "100%", "100%", "8", "#b5b5b5");
  6.         so.write("flashcontent");
  7.  
  8.         </script>
  9. -->
  10. <param name="movie" value="/templates/waterandstone_greenandblack/preview.swf">
  11. <param name="quality" value="high">
  12. <embed src=" <?php echo $mosConfig_live_site; ?> /templates/waterandstone_greenandblack/preview.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj2" width="425" height="100" alt="header image"></embed>
Sep 24 '09 #1
0 1697

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2762
by: Khan | last post by:
Hello, What do you think about Mambo and XOOPS CMS . I'm thinking of using one of those two. I know that XOOPS is programed using Object oriented programing, which is a benefit. I'm not interested in speed or HTML coding standard. I just need good, full of features (modules) administration part. Which of these two CMS's has bigger community, which one is coded better and which one has better future.
1
2724
by: dragze | last post by:
Hi, On one of the pages of my site i use two javascripts, one makes transparency of png's work in IE, and the other embeds a flash player. Now use one of the scripts it works fine, use both and the transparency script stops working. So for example, use just the png transparency script and it displays the png's correctly in IE, as soon as i add the SWFobject (flash embedding) script the transparency script stops working!!?? :S Any help...
3
1613
by: K. | last post by:
Hello! I have a problem with javascript script called: SWFObject. I have a web page which displays on IE 7.0. i Firefox in a good way. All flash objects are displayed on a web page. The problem is on IE 6.0. I have i.e. 9 flash swf objects, but only 6 of them are displayed. I don`t know why. I think it is not my fault as a code programmer.
1
1552
by: Kasper Eulert | last post by:
Hi I am trying to install mambo 4.6.1 on a server with safemode ON (www.one.com) I have installed the server succesfully and tried copying the safemode patcg 4.5.1 on to it. But then the universal installer doesnt work any more (I just get an almost blank site as if something is missing). Is it because the patch doesnt work with the 4.6.1 server? Where can I download a 4.5.1 server that actually works, think Ive been through
28
1868
by: timhaynes1985 | last post by:
Hi, I am very new to PHP so please go easy on me. I have a page with 2 divs next to each other, a menu in the left and content in the right. Now what I want to know, is it possible to chenge the file being included in the content div when I click on different links in the menu div? So basically, when I click on the 'News' link it includes the file 'news.php' in the content div and so on for the rest of the menu items.
49
5964
anfetienne
by: anfetienne | last post by:
is it possible to add php array to vars in the swfobject code?
3
3144
by: yogarajan | last post by:
hi friend this is my code <script type="text/javascript"> // <!]> </script> it is working fine for (open file) file:///D:/WebSite4/swfobject/swfobject1-5/fullpage.html
0
1930
by: jeddiki | last post by:
I am reading up on this swfobject which uses javascript to embed the swf files. They say that I need to have adobe flash player 9.0 Well I was going to use Flowplayer. Does this mean that if I use swfobject then I can not use Flowplayer? Or am I getting mixed up ?
0
9000
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9339
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6804
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4713
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.