Last updated August 26, 2009. Created by mr.baileys on August 24, 2005.
Edited by bekasu, Little_John, sepeck. Log in to edit this page.
This is made possible by a script found at www.alistapart.com called rotate.php.
Procedure:
- Create a directory under the web server's document root. I placed it under my theme's directory.
- Populate that directory with images.
- Download script and put it in a nice resting place.
- Edit script so it can find your image directory. To avoid editing you can just place the script in the same directory as the images.
- Under your theme's config, for custom logo, instead of a path to an image use the path to the script.
- You're done.
Comments
Added swfs and called from theme code
I love this code, thank you. It worked quickly & easily. I also added this line to the php to enable rotating swfs:
$extList['swf'] = 'application/x-shockwave-flash';
I called it from my theme page.tpl.php as follows:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="263" height="150" align="top" title="fluidit solutions videos">
<param name="movie" value="<?php print $front_page . $directory; ?>/videos/rotate.php">
<param name="quality" value="high"><param name="LOOP" value="false">
<embed src="<?php print $front_page . $directory; ?>/videos/rotate.php" width="263" height="150" loop="false" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
is not enough to add the line in rotate.php?
i tried to doing like this but it didnt work..
I am not an expert with the code, so do you think your code could work for me? of course changiung some paths...
doesnt work
Do I have to enable something else?
I put images and script in same folder, but no images show up.
Just found the answer
http://drupal.org/node/641914
www.bongobeat.dk
www.puj.dk
answer
paste code to your page.tpl i sure your problem has solved
<?phpprint $head_title
?>
<?phpprint $head
?>
<?phpprint $styles
?>
@import "
<?phpprint base_path() . path_to_theme()
?>
@import "
<?phpprint base_path() . path_to_theme()
?>
<?phpprint $scripts
?>
<?php/* Needed to avoid Flash of Unstyle Content in IE */
?>
<?php/images/bg2.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/bg2.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/primary.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/search_box.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/top_bar.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/footer_wood.jpg" alt="" />print base_path() . path_to_theme()
?>
<?phpif (isset($secondary_links)) :
?>
<?phpprint theme('links', $secondary_links, array('class' => 'links secondary-links'))
?>
<?phpendif;
?>
<?php" rel="nofollow">print theme_get_setting('admire_grunge_feed_url');
?>
<?php/images/rss.png" alt="Rss Feed" title="Subscribe to updates via RSS" />print base_path() . path_to_theme()
?>
<?phpif (!($user->uid)) { print login_register_links(); } else { echo admire_grunge_welcome_user(); }
?>
<?phpif ($logo) {
?>
<?php" title="print $base_path
?>
<?phpprint t('Home')
?>
<?php" alt="print $logo
?>
<?phpprint t('Home')
?>
<?php}
?>
<?phpif($site_name || $site_slogan) {
?>
<?phpif ($site_name) {
?>
<?php" title="print $base_path
?>
<?phpprint t('Home')
?>
<?phpprint $site_name
?>
<?php}
?>
<?phpif ($site_slogan) {
?>
<?phpprint $site_slogan
?>
<?php}
?>
<?php}
?>
<?phpif ($search_box){
?>
<?phpprint $search_box;
?>
<?php}
?>
<?phpif (isset($primary_links)) :
?>
<?phpprint menu_tree($menu_name = variable_get('menu_primary_links_source', 'primary-links'));
?>
<?phpendif;
?>
<?phpif($main_banner){
?>
<?phpprint $main_banner;
?>
<?php}
?>
<?phpif($sidebar_first) {
?>
<?php/images/left_top.jpg" alt="" />print base_path() . path_to_theme()
?>
<?phpprint $sidebar_first ;
?>
<?php/images/left_bottom.png" alt="" />print base_path() . path_to_theme()
?>
<?php}
?>
<?phpif($above_content_ad){
?>
<?phpprint $above_content_ad;
?>
<?php}
?>
<?phpif($content_top) {
?>
<?phpprint $content_top;
?>
<?php}
?>
<?phpif ($mission): print '<div id="mission">'. $mission .'</div>'; endif;
?>
<?phpif($breadcrumb){
?>
<?phpprint $breadcrumb
?>
<?php}
?>
<?phpif($title){
?>
<?phpprint $title
?>
<?php}
?>
<?phpif($tabs){
?>
<?phpprint $tabs
?>
<?php}
?>
<?phpif ($show_messages) { print $messages; }
?>
<?phpif($help){
?>
<?phpprint $help
?>
<?php}
?>
<?phpprint $content;
?>
<?phpprint $feed_icons
?>
<?phpif($content_bottom) {
?>
<?phpprint $content_bottom;
?>
<?php}
?>
<?phpif($right_dark || $sidebar_last) {
?>
<?phpif($right_dark){
?>
<?phpprint $right_dark ;
?>
<?php}
?>
<?phpif($right_ad){
?>
<?phpprint $right_ad;
?>
<?php}
?>
<?phpif($sidebar_last){
?>
<?phpprint $sidebar_last ;
?>
<?php}
?>
<?php}
?>
<?phpprint $footer_message
?>
All Rights reserved Logimindz Technologies, Disclaimer.
<?phpprint $footer
?>
<?php/images/comment_form_mat.gif" alt="" />print base_path() . path_to_theme()
?>
<?php/images/comment_hanger.gif" alt="" />print base_path() . path_to_theme()
?>
<?php/images/comment_paper.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/comment_paper_bottom.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/comment_paper_top.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/content_block_bg.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/content_block_top.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/left.jpg" alt="" />print base_path() . path_to_theme()
?>
<?php/images/right_top.jpg" alt="" />print base_path() . path_to_theme()
?>
<?phpprint $closure
?>