Log in

View Full Version : Possible to have a diff header/banner upon each page rerfresh?


B_Pages
04-11-2008, 02:07 PM
I wanted to have 3-4 different graphics for my forums header and have it interchange upon page refresh.

Is this possible on vb 3.6.8 and beta 3.7.4 ?

Reeve of shinra
04-11-2008, 02:29 PM
Yeah you can use javascript to load a random image. You can find a dozen of the scripts at http://javascript.internet.com. Here is the one I used: http://javascript.internet.com/image-effects/random-image-script.html

Edit your header template and replace the image variable (I forget off hand what it is) with the body portion of the javascript from above and the paths to your images.

In the Header Includes template (I believe thats it) you can add the "header" stuff.

enjoy

B_Pages
04-11-2008, 02:32 PM
thanks will try....

--------------- Added 1207928660 at 1207928660 ---------------

Do you need to change the template so have header been the default header1 the next etc ?
so instead of a interchangeable image you have interchangeable headers
otherwise u will have 1 large image for every header.

so instead of a interchangeable image you have interchangeable headers.

--------------- Added 1207928862 at 1207928862 ---------------

thanks again ...
please advise as I edited my post