Jump to content
xisto Community
Sign in to follow this  
sxyloverboy

Random Images On Eacht Pageload And Refresh. best in plain htlm or javascript

Recommended Posts

Im looking for somethin that puts a diffrent image for each pageload/refresh. And it should be something that dosent need any super server technolgys like php and mysql and all that stuff. something that is enough just on the page and finished.

Share this post


Link to post
Share on other sites

Here you go, with a small amount of searching in google i found this:

<script language="JavaScript"><!--/*Random Image Link ScriptBy Website Abstraction (http://http://www.javascriptkit.com/ Java-scripts.net (http://http://www.java-scripts.net/ random_imglink(){  var myimages=new Array()  //specify random images below. You can have as many as you wish  myimages[1]="1.png"  myimages[2]="2.png"  myimages[3]="3.png"  var ry=Math.floor(Math.random()*myimages.length)  if (ry==0)     ry=1     document.write('<img src="'+myimages[ry]+'" border=0>')}  random_imglink()//--></script>
Source: http://forums.xisto.com/no_longer_exists/

It uses Javascript so it can be used on every single webpage imaginable, as long as the user has Javascript Enabled :(.

Share this post


Link to post
Share on other sites

But you can do exact thing in PGP, why not? I must say Im really not very good at PHP, but implementing an PHP script is simple as installing an aplication on your PC.

Share this post


Link to post
Share on other sites

But you can do exact thing in PGP, why not? I must say Im really not very good at PHP, but implementing an PHP script is simple as installing an aplication on your PC.

<{POST_SNAPBACK}>


yeah i know that it would have been easyer to impliment an php script but the server i was using at the time didnt support php so that was out. but greatfully i now got hosted by Xisto and can use php. hahaha. :lol:

Share this post


Link to post
Share on other sites

but how to make it launch in a popup window...?

Random Images On Eacht Pageload And Refresh.

 

With window dimensions, toolbar, statusbar, and other settings specified in the random image generator script? I'm not having any luck on my end.

 

Thanks in advance for any help.

 

-question by anne

Share this post


Link to post
Share on other sites
what code to I need to inser/replace Random Images On Eacht Pageload And Refresh.

With what word do I need to replace 'randomimage' with if I want just a straight slide show with the images in numerical order?

Thanks for any help!

christian-question by Christian Harkness

Share this post


Link to post
Share on other sites
How to display the text content on random image?Random Images On Eacht Pageload And Refresh.

Ramdom image displaying is good... Here I need to display some amount of text on these image...

These image should come center of the browser...

If possible anybody let me know... Advance thanks..

-question by Coolboy

Share this post


Link to post
Share on other sites

Please help me out how to put a different image for each pageload/refresh using php




Im looking for somethin that puts a diffrent image for each pageload/refresh. And it should be something that dosent need any super server technolgys like php and mysql and all that stuff. something that is enough just on the page and finished.

Share this post


Link to post
Share on other sites
about random imageRandom Images On Eacht Pageload And Refresh.

I want to know how to create random image.I want to create 1 line that have 7 row. Now 1 row is workHow can I do?

-reply by Vey Noue

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.