Computing.Net > Forums > Web Development > random a picture form (?)

random a picture form (?)

Reply to Message Icon

Original Message
Name: zasdfg
Date: October 15, 2006 at 13:50:52 Pacific
Subject: random a picture form (?)
OS: win
CPU/Ram: win
Model/Manufacturer: win
Comment:

hello,
just checking if this is possible..
let´s consider a site with one picture, and every time i open the site i see that picture, i want to see if i can make the picture , on load, lets say , one in maybe 30 , 40 times that we load the site to be displayed with a different size.. to give the impression it was an error,
possible?
thanks.



Report Offensive Message For Removal

Response Number 1
Name: Michael J (by mjdamato)
Date: October 15, 2006 at 15:30:58 Pacific
Subject: random a picture form (?)
Reply: (edit)

Well, your question is confusing. You first start out talking about a picture, then you ask if you can load the site to be displayed in a different size. Not sure what you mean by loading it in a different size.

But, if you are asking if you can load the picture in a different size or load a different picture, then the answer is yes.

There are different ways you can do it. If your server supports a server-side scripting, that would be the best choice, otherwise you could do it through client-side javascript.

The best way that I can think of would be to get the current time. Take the seconds from that. If the seconds was 1 or 2, then show the alternate page - for seconds 3-59 show the standard page. Using that approach you would get the alternate page 1 out of 30 attempts on average.

Michael J


Report Offensive Follow Up For Removal

Response Number 2
Name: zasdfg
Date: October 16, 2006 at 02:12:24 Pacific
Subject: random a picture form (?)
Reply: (edit)

"But, if you are asking if you can load the picture in a different size"

yes , it this what i tried to mean,
loaded in a diferent size , (one time in many attempts, just like an error))


Report Offensive Follow Up For Removal

Response Number 3
Name: Michael J (by mjdamato)
Date: October 16, 2006 at 12:26:41 Pacific
Subject: random a picture form (?)
Reply: (edit)

Then I have already posted the answer. It is just a matter wether you do it server side or client side.

Michael J


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: random a picture form (?)

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software