View Single Post
  #2 (permalink)  
Old Oct 25th, 2006, 10:38
ukgeoff ukgeoff is offline
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with Javascript in php

Quote:
Originally Posted by Martin McPherson View Post
<?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 -->
This looks very confused code. Is this meant to be a file in its own right or included as part of another/other files?

Note the bit of code I have highlighted above. This closing tag has no matching opening tag.
Reply With Quote