# How to position my flash file on my frontpage using index .php

**URL:** https://forum.kirupa.com/t/how-to-position-my-flash-file-on-my-frontpage-using-index-php/301626
**Category:** Uncategorized
**Created:** [December 12, 2009, 3:08pm UTC](https://forum.kirupa.com/t/how-to-position-my-flash-file-on-my-frontpage-using-index-php/301626 "2009-12-12T15:08:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![faro](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@faro](https://forum.kirupa.com/u/faro)
#### Post date: [December 12, 2009, 3:08pm UTC](https://forum.kirupa.com/t/how-to-position-my-flash-file-on-my-frontpage-using-index-php/301626/1 "2009-12-12T15:08:02Z")

</div>

I have battling for weeks over how to put a flash file on my frontpage. I want to know where to put the flass file.

below is the script for the index.php of my page

\<?php  
/\*\*

- @copyright Copyright © 2005 - 2008 Open Source Matters. All rights reserved.
- @license GNU/GPL, see LICENSE.php
- Joomla! is free software. This version may have been modified pursuant
- to the GNU General Public License, and as distributed it includes or
- is derivative of works licensed under the GNU General Public License or
- other free or open source software licenses.
- See COPYRIGHT.php for copyright notices and details.  
\*/  
// no direct access  
defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );  
?\>  
\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)” xml:lang="\<?php echo $this-\>language; ?\>" lang="\<?php echo $this-\>language; ?\>" \>  
\<head\>  
\<jdoc:include type=“head” /\>  
\<link rel=“stylesheet” href="\<?php echo $this-\>baseurl ?\>/templates/system/css/system.css" type=“text/css” /\>  
\<link rel=“stylesheet” href="\<?php echo $this-\>baseurl ?\>/templates/system/css/general.css" type=“text/css” /\>  
\<link rel=“stylesheet” href="\<?php echo $this-\>baseurl ?\>/templates/rhuk\_milkyway/css/template.css" type=“text/css” /\>  
\<link rel=“stylesheet” href="\<?php echo $this-\>baseurl ?\>/templates/rhuk\_milkyway/css/\<?php echo $this-\>params-\>get(‘colorVariation’); ?\>.css" type=“text/css” /\>  
\<link rel=“stylesheet” href="\<?php echo $this-\>baseurl ?\>/templates/rhuk\_milkyway/css/\<?php echo $this-\>params-\>get(‘backgroundVariation’); ?\>bg.css" type=“text/css” /\>  
\<!–[if lte IE 6]\>  
\<link href="\<?php echo $this-\>baseurl ?\>/templates/\<?php echo $this-\>template ?\>/css/ieonly.css" rel=“stylesheet” type=“text/css” /\>  
\<![endif]–\>  
\<?php if($this-\>direction == ‘rtl’) : ?\>  
\<link href="\<?php echo $this-\>baseurl ?\>/templates/rhuk\_milkyway/css/template\_rtl.css" rel=“stylesheet” type=“text/css” /\>  
\<?php endif; ?\>  
\</head\>  
\<body id=“page\_bg” class="color\<?php echo $this-\>params-\>get(‘colorVariation’); ?\> bg_\<?php echo $this-\>params-\>get(‘backgroundVariation’); ?\> width\_\<?php echo $this-\>params-\>get(‘widthStyle’); ?\>"\>  
\<a name=“up” id=“up”\>\</a\>  
\<div class=“center” align=“center”\>  
\<div id=“wrapper”\>  
\<div id=“wrapper\_r”\>  
\<div id=“header”\>  
\<div id=“header\_l”\>  
\<div id=“header\_r”\>  
\<div id=“logo”\>\</div\>  
\<jdoc:include type=“modules” name=“top” /\>  
\</div\>  
\</div\>  
\</div\>  
\<div id=“tabarea”\>  
\<div id=“tabarea\_l”\>  
\<div id=“tabarea\_r”\>  
\<div id=“tabmenu”\>  
\<table cellpadding=“0” cellspacing=“0” class=“pill”\>  
\<tr\>  
\<td class=“pill\_l”\>&nbsp;\</td\>  
\<td class=“pill\_m”\>  
\<div id=“pillmenu”\>  
\<jdoc:include type=“modules” name=“user3” /\>  
\</div\>  
\</td\>  
\<td class=“pill\_r”\>&nbsp;\</td\>  
\</tr\>  
\</table\>  
\</div\>  
\</div\>  
\</div\>  
\</div\>  
\<div id=“search”\>  
\<jdoc:include type=“modules” name=“user4” /\>  
\</div\>  
\<div id=“pathway”\>  
\<jdoc:include type=“modules” name=“breadcrumb” /\>  
\</div\>  
\<div class=“clr”\>\</div\>  
\<div id=“whitebox”\>  
\<div id=“whitebox\_t”\>  
\<div id=“whitebox\_tl”\>  
\<div id=“whitebox\_tr”\>\</div\>  
\</div\>  
\</div\>  
\<div id=“whitebox\_m”\>  
\<div id=“area”\>  
\<jdoc:include type=“message” /\>  
\<div id=“leftcolumn”\>  
\<?php if($this-\>countModules(‘left’)) : ?\>  
\<jdoc:include type=“modules” name=“left” style=“rounded” /\>  
\<?php endif; ?\>  
\</div\>  
\<?php if($this-\>countModules(‘left’)) : ?\>  
\<div id=“maincolumn”\>  
\<?php else: ?\>  
\<div id=“maincolumn\_full”\>  
\<?php endif; ?\>  
\<?php if($this-\>countModules(‘user1 or user2’)) : ?\>  
\<table class=“nopad user1user2”\>  
\<tr valign=“top”\>  
\<?php if($this-\>countModules(‘user1’)) : ?\>  
\<td\>  
\<jdoc:include type=“modules” name=“user1” style=“xhtml” /\>  
\</td\>  
\<?php endif; ?\>  
\<?php if($this-\>countModules(‘user1 and user2’)) : ?\>  
\<td class=“greyline”\>&nbsp;\</td\>  
\<?php endif; ?\>  
\<?php if($this-\>countModules(‘user2’)) : ?\>  
\<td\>  
\<jdoc:include type=“modules” name=“user2” style=“xhtml” /\>  
\</td\>  
\<?php endif; ?\>  
\</tr\>  
\</table\>  
\<div id=“maindivider”\>\</div\>  
\<?php endif; ?\>  
\<table class=“nopad”\>  
\<tr valign=“top”\>  
\<td\>  
\<jdoc:include type=“component” /\>  
\<jdoc:include type=“modules” name=“footer” style=“xhtml”/\>  
\</td\>  
\<?php if($this-\>countModules(‘right’) and JRequest::getCmd(‘layout’) != ‘form’) : ?\>  
\<td class=“greyline”\>&nbsp;\</td\>  
\<td width=“170”\>  
\<jdoc:include type=“modules” name=“right” style=“xhtml”/\>  
\</td\>  
\<?php endif; ?\>  
\</tr\>  
\</table\>  
\</div\>  
\<div class=“clr”\>\</div\>  
\</div\>  
\<div class=“clr”\>\</div\>  
\</div\>  
\<div id=“whitebox\_b”\>  
\<div id=“whitebox\_bl”\>  
\<div id=“whitebox\_br”\>\</div\>  
\</div\>  
\</div\>  
\</div\>  
\<div id=“footerspacer”\>\</div\>  
\</div\>  
\<div id=“footer”\>  
\<div id=“footer\_l”\>  
\<div id=“footer\_r”\>  
\<p id=“syndicate”\>  
\<jdoc:include type=“modules” name=“syndicate” /\>  
\</p\>  
\<p id=“power\_by”\>  
\<?php echo JText::_(‘Powered by’) ?\> \<a href=“[http://www.hillspictures.org](http://www.hillspictures.org)”\>Niyi!\</a\>  
\<?php echo JText::_(’’) ?\> \<a href=“[http://validator.w3.org/check/referer](http://validator.w3.org/check/referer)”\>\</a\> \<?php echo JText::\_(’’) ?\> \<a href=“[http://jigsaw.w3.org/css-validator/check/referer](http://jigsaw.w3.org/css-validator/check/referer)”\>Copyright 2009\</a\>.  
\</p\>  
\</div\>  
\</div\>  
\</div\>  
\</div\>  
\</div\>  
\<jdoc:include type=“modules” name=“debug” /\>  
\</body\>  
\</html\>

and here is the flash script i want to include.

\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)” xml:lang=“en” lang=“en”\>  
\<head\>  
\<title\>video\_lara.swf\</title\>  
\</head\>  
\<body bgcolor="#ffffff"\>  
\<object classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“[http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0](http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0)” width=“100%” height=“100%” id=“video\_lara.swf” align=“middle”\>  
\<param name=“allowScriptAccess” value=“sameDomain” /\>  
\<param name=“movie” value=“video\_lara.swf” /\>  
\<param name=“quality” value=“high” /\>  
\<param name=“bgcolor” value="#ffffff" /\>  
\<embed src=“video\_lara.swf” quality=“high” bgcolor="#ffffff" width=“100%” height=“100%” name=“video\_lara.swf” align=“middle” allowScriptAccess=“sameDomain” type=“application/x-shockwave-flash” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” /\>  
\</object\>  
\</body\>  
\</html\>

i am a novice in programming, please can u help locate it where it is suppose to be?

Please anybody with solution?
