Forums / Templates, Stylesheets, Page Layout / how to make it to show up on Home page only.

how to make it to show up on Home page only.

Locked

Started by bumergroup on 25 Aug 2008, 12:33 PM · Views: 1,373

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Aug 2008, 12:33 PM
#1
bumergroup avatar

bumergroup

New Zenner

Join Date:
Nov 2005
Posts:
19
Plugin Contributions:
0

how to make it to show up on Home page only.

I have a Flash applet installed in the tpl_main_page.php

Hou do I make it show up only on the home page?

Same for the banners. Here the link https://www.remonstore.com

<!--bof-FLASH--> <script type="text/javascript" src="includes/templates/barebones/jscript/swfobject.js"></script> <div id="flashcontent"> <center> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=6,0,0,0" id="carousel" width="650" height="300"> <param name="movie" value="carousel.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#FFFFFF"> <embed name="carousel.swf" src="carousel" quality="high" bgcolor="#FFCCCC" width="650" height="300" scale= "noborder" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash"> </embed> </object> </center> </div> <script type="text/javascript"> var so = new SWFObject("carousel.swf", "carousel", "650", "300", "7", "#FFFFFF"); so.write("flashcontent"); </script>

Best regards,
Michael.

Best regards,
Mike

25 Aug 2008, 12:41 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: how to make it to show up on Home page only.

Put it between

<?php if ($this_is_home_page) { ?>
```and```php
<?php } ?>

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

25 Aug 2008, 11:42 PM
#3
bumergroup avatar

bumergroup

New Zenner

Join Date:
Nov 2005
Posts:
19
Plugin Contributions:
0

Re: how to make it to show up on Home page only.

kuroi:

Put it between

<?php if ($this_is_home_page) { ?>

andphp

<?php } ?>


thank you very mach.

worked like a charm

Best regards,
Mike