The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

random image script for the banner

3 posters

Go down

random image script for the banner Empty random image script for the banner

Post by Jalokim September 29th 2007, 8:59 pm

can it be done????
If so can you please post the script...

i wan to have a random image everytime a member refreshes the page
thx
Jalokim
Jalokim
Energetic

Male Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland

Back to top Go down

random image script for the banner Empty Re: random image script for the banner

Post by Jalokim September 30th 2007, 11:30 am

sorry for double posting but

Code:
<br><script language="JavaScript"><!--

//Javascript Created by Jalokim http://anime7.org

//store the quotations in arrays

images = new Array(5);

images[0] = "<a href = 'your site address'><img src='1 banner image'></a>";

images[1] = "<a href = 'your site address'><img src='2nd banner image'></a>";

images[2] = "<a href = 'your site address'><img src='3 banner image'></a>";

images[3] = "<a href = 'your site address'><img src='4 banner image'></a>";

images[4] = "<a href = 'your site address'><img src='5 banner image'></a>";

index = Math.floor(Math.random() * images.length);

document.write(images[index]);

//done

// --></script><br>



Now where must i put it??? to replace the banner and get a random script???
CSS or where... i have even tried other meta tags but i don't know how to change it to change the banner script
please help
Jalokim
Jalokim
Energetic

Male Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland

Back to top Go down

random image script for the banner Empty Re: random image script for the banner

Post by Guest September 30th 2007, 12:35 pm

You will have to put it in the site description, but you have to use the script generator found in the Scripts and Tips forum as the code is too long
avatar
Guest
Guest


Back to top Go down

random image script for the banner Empty Re: random image script for the banner

Post by Jalokim September 30th 2007, 7:26 pm

thx
odd i thought admins where to answer problems... i try now and report with a full tutorial

i don't know why but it doesn't work... i paste the javascript into the generator under the freefield bar ... it generates soe one lined code that does not work. maybe because i bought the domain name???

help please
Jalokim
Jalokim
Energetic

Male Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland

Back to top Go down

random image script for the banner Empty Re: random image script for the banner

Post by Caihlem September 30th 2007, 8:40 pm

Jalokim wrote:odd i thought admins where to answer problems...


Please void comments like this, if yu really want to, my P.M box is open >.>
Caihlem
Caihlem
Energetic

Male Posts : 8969
Reputation : 342
Language : English, French & Female
Location : You can't fly like the phenix

Back to top Go down

random image script for the banner Empty Re: random image script for the banner

Post by CBP October 1st 2007, 1:46 am

Hey Jalokim, you saying members can't help out other members? Wink

I too would like to know how this is done, it's on the top of my list for updates I'd like to be able to give my members. I tried the generator and entered it in the description, didn't work. I even tried the homepage metatags and entered the direct .JS where the original picture field is supposed to be.
CBP
CBP
Forumember

Male Posts : 129
Reputation : 0
Language : English
Location : Las Vegas, Nevada, USA.

Back to top Go down

random image script for the banner Empty Re: random image script for the banner

Post by Jalokim October 1st 2007, 9:01 pm

Caihlem wrote:
Jalokim wrote:odd i thought admins where to answer problems...


Please void comments like this, if yu really want to, my P.M box is open >.>

ok i usually avoid comments like this but
a) last time i PMed an admin i got brutally sweeped away. Not calling names ,but this admin really pushed me of like a .... fill in the dots
b) secondly I have asked for a couple of things on this site , and i know it is hard to do everything and there are hundreds of request per day, but at least someone could reply to my posts and at least say that they are on it, or that it can't be done.

@CBP I'm not saying members can't post their help, but seeing as this is a help forum ,i believe an admins work should be, as is more reliable.

I hope this random image script can come out soon... it really adds a professional feel and my members have been begging for it since the start of my site.
I apologise for being rude , but thats how i react when someone is rude to me first
Jalokim
Jalokim
Energetic

Male Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland

Back to top Go down

random image script for the banner Empty Re: random image script for the banner

Post by Caihlem December 14th 2007, 8:57 pm

Jalokim: I login at least twice a day, each time I have on average 6 PM's to answer, I've got staff issues to tae care of, a forum to run as a whole

Sosrry if I've appointed Helpers and Moderators to help me out ok Wink

P.S: I even have a personal life, amazing no? >.>
Caihlem
Caihlem
Energetic

Male Posts : 8969
Reputation : 342
Language : English, French & Female
Location : You can't fly like the phenix

Back to top Go down

random image script for the banner Empty Re: random image script for the banner

Post by Guest April 21st 2008, 8:38 pm

I only saw one poll you made for this and it was locked. =( And that was after reading through the first 8 pages of the suggestion section. Had to do a search for it.

Anyway, if this were a poll, I would definitely vote 'yes' to having the ability to either add js for random banner images, or to at least be able to upload approx. 5 banner images and just have the code embedded into the main database by Forumotion. I've been searching everywhere for a way to do this. It's not difficult for a member to utilize randomsig.net to create random sigs and avatars, but their size limit is too small for the banners most forums use.

If anyone knows how to do this, please post it up.
avatar
Guest
Guest


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum