Rotating Banner: Difference between revisions

From HAA Best Practices Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 5: Line 5:
..\templates\lavinya6\index.php (starting at the root of your web site)
..\templates\lavinya6\index.php (starting at the root of your web site)


You can find the right section to edit by searching for "echo rand".  The search will land you in the middle of a line that has been commented out (<!-- ...  -->).  This line includes the code:
You can find the right section to edit by searching for "echo rand".  The search will land you in the middle of a line that has been commented out (\<!-- ...  --\>).  This line includes the code:


<?php echo rand(1,2) ?>.jpg)
<?php echo rand(1,2) ?>.jpg)

Revision as of 16:13, 16 January 2009

WARNING: This page assumes at least some familiarity with PHP and html.

You can create a rotating page-top banner by editing the file:

..\templates\lavinya6\index.php (starting at the root of your web site)

You can find the right section to edit by searching for "echo rand". The search will land you in the middle of a line that has been commented out (\