Fork me on GitHub

Random banner at the top of the page?  Bottom

  • Is it at all possible to have a script to randomly choose which banner to display as the logo at the top of the PN site out of a possible, for example, 3 jpgs?

    Also, is it possible to turn off the feature that makes the banner wrap and repeat itself if the page width exceeds the width of the banner?

    I'm a total noob :p
  • You might try a search of the forum, I think InvalidResponse had offered a script for this very thing. Or maybe it was AlarConcepts... one of the two. Either way, you can't go wrong -- both of these guys are class acts.

    I personally have done something similar to what you want to do. I used the banner module to setup multiple images that I wanted to randomly rotate each time a page within the PN site was visited. It works quite well, but you have to modify your theme to get the images where you want them.
  • It's probably easier than that. Just assign the same "custom banner ID" aka "banner type" to different banners on the banner admin panel, and they will rotate in whatever block or template call is assigned that ID/type. If you install a banner block where you want the banners, there is no need to modify the templates.

    Quote

    Also, is it possible to turn off the feature that makes the banner wrap and repeat itself if the page width exceeds the width of the banner?


    This might be a situation where a banner is called as a background image -- if that's the case, a "background-repeat:no-repeat" style element in the appropriate class or whatever should fix it.

This list is based on users active over the last 60 minutes.