Hi.. I was looking at the Pretty RJ site once again.. and was watching the little banner you have created at the top of the page.. with the changing pictures which so happen to be screen shots off the server.. i was just wondering how one might create somthing like that.. What code would need to be enter where the images would need to be placed etc... Im not a pro.. but i know all the basics of Html so.. i think i can understand the explainations given if anyone is willing to give one.. thx.. alot... cya guys on server soon
Anyone care to elaberate just a tad?
Very loosely translated, I think it means that you first have to be running a PHP site (like this one). Create a directory for the various images you want to use, place your images there and then use the code he's provided to call them randomly on the PHP-driven page. (Programmers. )
If you don't have PHP, there are also many javascript snippets and CGI programs that will allow you to rotate images on a page. They're just not nearly as clean or efficient.
I never see those banners at RJ myself, as they are being gobbled up by an ad blocker. I'll have to remember to turn that off one day and take a gander.
One other way to do it... in a PHP page or not (you have to use a 'dynamic' web page language though) is this:
- Name your screenshot all like this
topbanner1.jpg
topbanner2.jpg
topbanner3.jpg
topbanner4.jpg
etc...
- Then with a 'random' function create a number that is between 0 and the last screenshot you have
- Make the filename with the random number (for example: topbanner56.jpg)
- And use a simple IMG HTML tag with the filename as a variable.
Pro
- Faster than Liz's function (I think)
Cons
- You have to change the code everytime you add new screenshots
- Beast
i understand a lil of what ur saying but i dont know what function to use in the style sheet.. i dont wanna take up anymore of u guys time asking questions.. cuz i know someones probably annoyed that i havnt figured it out yet.. i suppose its not meant to be.. Thanks for having patience with me.. and.. offering ur help much appreciated..
well HMM, i suppose the first question we should ask you is do you have PHP on your site? You can test by making a file called somethingstupid.php and inside typing this
no no php..
well then you will have to try to get php, use perl (if you have it) or use javascript, the last two options i have little to no experiance with. sorry
Hey, Sykes. Here's a little JS you can try. Pretty clean; works well. This one actually rotates the images w/o a refresh of the page. Not sure if that's what you want. But, if you want to give it a try, put the following in the header of your page:
Thank you ... So kind.. Hopfully another one of you angels can solve the problem i posted on the jedi help desk..
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (WDYL-WTN Release)