Page 1 of 1

Is anyone good with HTML website coding? i need your help!!

Posted: Wed Mar 17, 2010 4:37 pm
by Sickbunny
Hey everyone,
i am currently refreshing my website (www.sickbunnyphotos.com)
What i am looking to do is to have both the main images set up to show a random image from a set i have got saved in a folder on my server.

The images i am looking to randomize are the big image on the right hand side and also the newest images section.

If anyone can help me with this i would greatly appreciate it.

Thanks
Grant :)

Posted: Wed Mar 17, 2010 4:49 pm
by draevon
Hey Mate,

Just Google "display a random image" ... you'll get a bunch of javascript options. Just pick the best one to suit your needs. (The first search option would probably work a treat).

Tim

Posted: Wed Mar 17, 2010 5:30 pm
by Sickbunny
Ive been trying to get this to work without any luck:

http://rdv.lorikeet.id.au/123randomimage.html

has anyone got other suggestions at all?

the file im looking to edit is my index page www.sickbunnyphotos.com/index.php

Posted: Wed Mar 17, 2010 6:14 pm
by Sickbunny
i think ive got it working now :)
i used another javascript style one for now.

Posted: Wed Mar 17, 2010 7:02 pm
by Sickbunny
ok i HATE html...


ive got it working for one image.

problem is i now also need to make the right hand image random also using the same style script from a different set of images.

hows anyone know how to do that ?



the script im using is:

Image


and to call up the image im using:

Image



i need to find a way for it to call up a seperate group of images for the right hand side...

Posted: Wed Mar 17, 2010 9:23 pm
by draevon
Try just adding an 'x' (or whatever) to the end of every variable and functionname() in the second place you use the function.

Posted: Wed Mar 17, 2010 9:55 pm
by Sickbunny
Matt,

i realised the image on the right hand side is controlled by the style.css file..

so im not sure how to randomise that?

Posted: Wed Mar 17, 2010 10:38 pm
by Sickbunny
Thanks for that Matt,

Unfortunately there isnt anywhere that is listed as pic-boxright.

the image on the right is controlled by a seperate style.css file which references the image.

ill do some searching on how to add a random string into css at another time :)

Thanks for your help i appreciate it.