MatthewAnders
08-04-2009, 03:58 PM
Hi all,
Im trying to get my navigation and header bars to get written by PHP.
Basically its this.
the header file and the navbar are flash, and i am trying to get it so that when i make successive pages I can just include('pagetop.php') inside the pagetop.php would be code that writes the header(flash), navbar(flash), and the top of the content section(standard CSS/Image background).
The problem I am having is when i try to encapsulate the Flash Links given to me by Flash 8.
I am probably going about this the wrong way, but as a test I tried making navbar.php.<?php print <<<HERE<!-- total width of this is going to be varied --><!--urls used in the movie-->
<a href="http://www.mattanders.com/index.php"></a>
<a href="http://www.mattanders.com/gallery.php"></a>
<a href="http://www.mattanders.com/about_me.php"></a>
<a href="http://www.mattanders.com/contact.php"></a>
<a href="http://www.mattanders.com/port_res.php"></a>
<a href="http://www.mattanders.com/games.php"></a>
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="60" id="navbar" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="navbar.swf" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="assets/flash/navbar.swf" loop="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="900" height="60" name="navbar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!--For flash impared, this will be a horizontal nav bar, using images and state changes
<ul class="nav_list">
<li class="hnav"></li>
<li class="hnav"></li>
<li class="hnav"></li>
<li class="hnav"></li>
<li class="hnav"></li>
</ul>-->HERE;?>
What i'm thinking is wrong here is that i have to escape all the quotation marks and get rid of as much of the extraneous as possible. Am i thinking correctly?
Thanks,
Matty
Im trying to get my navigation and header bars to get written by PHP.
Basically its this.
the header file and the navbar are flash, and i am trying to get it so that when i make successive pages I can just include('pagetop.php') inside the pagetop.php would be code that writes the header(flash), navbar(flash), and the top of the content section(standard CSS/Image background).
The problem I am having is when i try to encapsulate the Flash Links given to me by Flash 8.
I am probably going about this the wrong way, but as a test I tried making navbar.php.<?php print <<<HERE<!-- total width of this is going to be varied --><!--urls used in the movie-->
<a href="http://www.mattanders.com/index.php"></a>
<a href="http://www.mattanders.com/gallery.php"></a>
<a href="http://www.mattanders.com/about_me.php"></a>
<a href="http://www.mattanders.com/contact.php"></a>
<a href="http://www.mattanders.com/port_res.php"></a>
<a href="http://www.mattanders.com/games.php"></a>
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="60" id="navbar" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="navbar.swf" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="assets/flash/navbar.swf" loop="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="900" height="60" name="navbar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!--For flash impared, this will be a horizontal nav bar, using images and state changes
<ul class="nav_list">
<li class="hnav"></li>
<li class="hnav"></li>
<li class="hnav"></li>
<li class="hnav"></li>
<li class="hnav"></li>
</ul>-->HERE;?>
What i'm thinking is wrong here is that i have to escape all the quotation marks and get rid of as much of the extraneous as possible. Am i thinking correctly?
Thanks,
Matty