***** ALERT - Nominations for your new ClubCJ Committee can be made here *****

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

Start a Topic! Have Your Say & Talk About Anything.

Moderators: Moderators, Senior Moderators

Sickbunny
Lancer VRX/GTS
Lancer VRX/GTS
Posts: 391
Joined: Sun Oct 04, 2009 11:29 am

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

Postby Sickbunny » Wed Mar 17, 2010 4:37 pm

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 :)

User avatar
draevon
Lancer Ralliart
Lancer Ralliart
Posts: 689
Joined: Fri Oct 23, 2009 9:09 am
Location: Brisbane
Contact:

Postby draevon » Wed Mar 17, 2010 4:49 pm

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
.
Image
GReddy Spectrum Elite Exhaust - TEIN S.Tech Springs - Injen CAI- 3D Eyelids - Carbon Fiber Interior - Pivot Shift Light - Smoked LED Taillights - Carbonout & Debadge.

Sickbunny
Lancer VRX/GTS
Lancer VRX/GTS
Posts: 391
Joined: Sun Oct 04, 2009 11:29 am

Postby Sickbunny » Wed Mar 17, 2010 5:30 pm

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

Sickbunny
Lancer VRX/GTS
Lancer VRX/GTS
Posts: 391
Joined: Sun Oct 04, 2009 11:29 am

Postby Sickbunny » Wed Mar 17, 2010 6:14 pm

i think ive got it working now :)
i used another javascript style one for now.

Sickbunny
Lancer VRX/GTS
Lancer VRX/GTS
Posts: 391
Joined: Sun Oct 04, 2009 11:29 am

Postby Sickbunny » Wed Mar 17, 2010 7:02 pm

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...

User avatar
draevon
Lancer Ralliart
Lancer Ralliart
Posts: 689
Joined: Fri Oct 23, 2009 9:09 am
Location: Brisbane
Contact:

Postby draevon » Wed Mar 17, 2010 9:23 pm

Try just adding an 'x' (or whatever) to the end of every variable and functionname() in the second place you use the function.
.

Image

GReddy Spectrum Elite Exhaust - TEIN S.Tech Springs - Injen CAI- 3D Eyelids - Carbon Fiber Interior - Pivot Shift Light - Smoked LED Taillights - Carbonout & Debadge.

Sickbunny
Lancer VRX/GTS
Lancer VRX/GTS
Posts: 391
Joined: Sun Oct 04, 2009 11:29 am

Postby Sickbunny » Wed Mar 17, 2010 9:55 pm

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?

Sickbunny
Lancer VRX/GTS
Lancer VRX/GTS
Posts: 391
Joined: Sun Oct 04, 2009 11:29 am

Postby Sickbunny » Wed Mar 17, 2010 10:38 pm

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.


Return to “General Talk”

Who is online

Users browsing this forum: No registered users and 71 guests