View Single Post
  #1 (permalink)  
Old Oct 25th, 2006, 00:29
Martin McPherson Martin McPherson is offline
Junior Member
Join Date: Sep 2006
Location: London
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Help with Javascript in php

Hi everyone here has been very hepful in the past I was wondering if anyone could take a look at this code for me I am findiong php very difficult. I have created a flash menu with some software and I am trying to input this into my header script. This is the code I have

<?php $thisfile = "header.php";if(SHOWFILENAMES == "on"){echo "<p class=\"filename\">This file is: " . $thisfile . "</p>";}?>
<!-- start of header.php -->
<script type="text/javascript" src="flashobject.js"></script>
<table bgcolor="white">


<tr>
<img src="<?php echo INSTALLPATH;?>images/header.jpg" width="780" height="175" border=0 alt="<?php echo IMPLEMENTATION_NAME;?>">

</td>
</tr>


<tr>
<td>
<!-- table for icons - start -->
<div id="color_id" >123 Flash Menu Placeholder.</div>
<script type="text/javascript">
var fo = new FlashObject("/images/menu.swf", "color", "780", "244", "6", "#FFFFFF");
fo.addParam("menu","false");
fo.addParam("quality","best");
fo.addParam("salign","LT");
fo.addParam("scale","noscale");
fo.addParam("wmode", "transparent");
fo.write("color_id");
</script>
<!-- table for icons - end -->
</td>
</tr>
</table>
<!-- end of header.php -->

The softwre I have used has created a .swf file and a JScript Script File I have placed the swf in my images folder but I am unsure where to put the jscript file. If anybody could help me resolve this it would be fantastic.
Please don't be to harsh if it is a very stupid mistake I am still a noob.

Cheers
Reply With Quote