Help - Search - Members - Calendar
Full Version: Rotating the banner color and gif
Movable Type Community Forum > Additional Resources > Tips and Tricks
edb
Here's one I'm sure the old timers have seen before. I'd like to rotate the look of my banner. Since I'm no HTML wiz, I take advantage of the white background and use a white gif (with black lettering) in a table, and it seems to come out okay. But now I have ambitions to automatically rotate the color of that banner, along with the logo gif. Is there an easy way to do this?

The banner code I currently use is:
CODE
<body>
<a name="Top">

<div id="banner">
<table width="94%" border="0" cellpadding="0" cellspacing="0">
 <tr>
   <td width="1" height="1" valign="top"><img src="http://www.broadscapeventures.com/mt-static/images/dfme spacer.gif" width="1" height="1"></td>
   <td width="75%" height="65" valign="top" align="right"><IMG Src="http://www.broadscapeventures.com/mt-static/images/dfme banner 45h.jpg"></td>

 </tr>
</table>
</div>


Fyi, I currently use javascript to rotate a picture on the index page, and am concerned that another script will gum up the works. Many many thanks to all!
Jai
You certainly can't do that with straight HTML, unfortunately. You'd need to use PHP, ASP, Javascript, or something of the like. The best choice would probably be PHP, since Movable Type users seem to have a ton of hacks and scripts written in it. I could help with ASP, but you need to:

1) Make sure your server suports it
2) change your file extentions to ASP

Then I could help you out pretty easily, but straight HTML will not do anything dynamicly.

Check out the Dynamic Banners version of my site to see an ASP script [like the one you desicribed] in action. You'll have to refresh a few times to get the idea.

(I'd be leery of javascript in the first place. Try to learn at least a little bit about server page scripting such as ASP/PHP/Perl/.NET/CGI... there's a good amount of info on the net about these things)
edb
V-helpful. Thanks so much Jai. I checked w/ my host. I've got a linux installation w/o PHP or ASP however, I can upgrade to that if I'd like to a less expensive dead w/ PHP which I'm going to do (extra for Windows ASP however.) Can I check back w/ you when I've got my ducks in a row?
Jai
Sure, so long as they're not Canadian Geese. I hate those things... *shudders*
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.