Search This Blog

Tuesday, March 2, 2010

thoughts on website design

Ok readers, this is a mini-post directed at Michael about website design, or more importantly one certain aspect. I was just wondering is there a way to randomize the pages shown on a site, when the readers access it? For example if I wanted to have a link on my site, which linked to 2 different pictures, but it was randomized so that different people could get a different picture when clicking on the link. Can you create an HTML random generator link? This is just an interesting question i thought to ask and hopefully some of you readers will get back to me. ols

1 comment:

  1. The short answer is yes, and you'd use JavaScript to do it clientside (in the user's browser) or the language of your choice (PHP, or ASP, for example) serverside. Google "random image link javascript" and you'll see a few implementations. JavaScript is kinda out of the scope of this uni but it's not hard to do stuff like this if you have some code-fu.

    ReplyDelete