Adding Kubrick Rotating Header Image php
-
Hi there,
I’m setting up a website at https://www.yrfriendmatthew.com and wanted a rotating header image. I downloaded the following php:
AUTOMATIC IMAGE ROTATOR
Version 2.2 – December 4, 2003
Copyright (c) 2002-2003 Dan P. Benjamin, Automatic, Ltd.
All Rights Reserved.and created a folder called ‘rotator’ in my image folder containing two sample headers and the ‘rotate.php’. I’m running into a problem implementing it. I’ve tried the following:
-putting
img src="/images/rotator/rotate.php"/
under #header and #headerimg in the style.css-putting a link as above next to ‘$img=’ under the header-img.php (since deleted in an attempt to see if it was overriding anything; please let me know if perhaps I should put it back)
-Putting a link to the above under the header.php, changing
`#page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbg-<?php bloginfo(‘text_direction’); ?>.jpg”) repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; }
<?php } ?>`to
`#page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/rotator/rotate-<?php bloginfo(‘text_direction’); ?>.php”) repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/rotator/rotate.php”) repeat-y top; border: none; }
<?php } ?>`Editing code isn’t a strength of mine but I can troubleshoot fairly easily and follow more technical information. Any help would be greatly appreciated.
- The topic ‘Adding Kubrick Rotating Header Image php’ is closed to new replies.