Random Image

Doverembrigal

BANNED
Joined
Apr 19, 2014
Messages
21
Reaction score
1
Hello there.

I'd like to create a website looking as the following (see attachment).

I already found out that you can put a link on a picture like this:

<a href="link.html"><img src="picture.jpg" alt="my picture" /></a>

But I don't know how to implement the rest.

If it is too difficult for a beginner, maybe someone could write the script for me?

Looking forward for help.

Regards.
 

Attachments

  • model.png
    model.png
    24.5 KB · Views: 239
In what platform you will be implementing this thing?

You probably need a combination of PHP and jquery, but it will depend whether you are using a CMS, plain HTML or Custom PHP website
 
If I open my public_html folder then I can open a HTML Editor.

But there are also possibilities to use PHP I think.

Is it doable, if yes, how?
 
Here it is, with a simple json list (:
check jsfiddle with the URL below, can't post full link
/fR7yU/4/
 
Last edited:
I would suggest Javascript because you can load the images on page means without refresh the site.
Practically you import the images and the corresponding links from a database or file into a JS array. Tuple or json format recommended.
You write a little function with picks a random image/link and inserts it into the HTML tags.

Thats it. I've google it and get tons of already finished scripts which do exactly what you try to do.
 
Back
Top