Help - Search - Members - Calendar
Full Version: Daily image.
Movable Type Community Forum > Additional Resources > Tips and Tricks
Kartoffel
Alright, I know I already bother you guys once tonight, but there is just one other thing I'd like to able to do. I'm certain you can do it, I just don't know how. After this I'm sure I won't be a bother anymore.

I have an image across the top of blog. How could I go about making it so that image changes daily?

Thanks.
kadyellebee
How will you be saving this image? If you save a image based on the date, then you could use a date tag. Or will these images be new images in a separate MT blog?

Kristine
Khris
I would be interested in something like this as well but perhaps rather then changing the image on a daily basis, have the image be randomly chosen whenever the page is loaded. Have a folder setup on your server containing all the images that you would like to appear that have been properly resized etc, and have one randomly chosen upon loading the page. Anyone have experience with something like this already?
LisaJill
random image
Khris
Thank you ever so much! biggrin.gif

My only problem now is that I can't seem to get the text in the banner to wrap to the right of the image that I've inserted. If I use an (align="left") code for the image, it completely screws the formatting of the rest of the page.

Anyone?

Here is what I've got now which displays the image, and the text immediately underneath.

CODE
<div id="banner">
<img src="/images/rotate.php" />
<h1><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName$></a></h1>
<span class="description"><$MTBlogDescription$></span>
</div>
Kartoffel
QUOTE (kadyellebee @ Feb 16 2004, 04:59 AM)
How will you be saving this image?  If you save a image based on the date, then you could use a date tag.  Or will these images be new images in a separate MT blog? 

Kristine

I'm going to save them using the date, I figured that's how I would go about it, but wasn't sure.

Thanks.
Khris
Solved my problem by adding a table to the banner.

Anyone have any other suggestions or is what I've done essentially the best way to do what I wanted?

CODE
<div id="banner">
<table border="0" width="100%" id="header_table">
 <tr>
   <td>
     <img src="/images/rotate/rotate.php" />
   </td>
   <td>
     <h1><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName$></a></h1>
     <span class="description"><$MTBlogDescription$></span>
   </td>
 </tr>
</table>
</div>
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.