home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Changing background randomly in sync with image

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2730
Discussions: 200,999, Posts: 2,380,018, Members: 246,369
Old March 26th, 2007, 06:22 PM   Digg it!   #1 (permalink)
Ultimate Member
 
J1mmy's Avatar
 
Join Date: Apr 2005
Location: UK, England
Posts: 2,572
Blog Entries: 1
Changing background randomly in sync with image

I would like to create a page where certain areas with backgrounds would randomly change as the page is refreshed.

I know this is possible with images, but Im not sure about the background, as this would be CSS?

However, I would like this change to be in sync with the image too.

For example. The page background is orange, the image should also be orange. The page is refreshed, the background is now blue, the image should now be blue. See what I mean?

Is this possible?
__________________
Vista Ultimate x64, Core 2 Quad 2.4GHz Q6600, 4GB DDR2 Crucial, 500GB Hitachi SATAII, nVidia GeForce 8800 GTX, Asus P5N32-E SLI PLUS, 650W Sweex PSU
J1mmy is online now   Reply With Quote
Old March 26th, 2007, 06:43 PM     #2 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,984
Blog Entries: 1
Send a message via MSN to EXreaction
I am pretty sure it could be done with CSS...but I am not experienced enough in it to know for sure. :P

You could use either Javascript, or PHP. Either should be able to do it quite easily.
__________________
My photography: Flickr

Lithium Studios - phpBB3, PHP, and Web Development
EXreaction is online now   Reply With Quote
Old March 26th, 2007, 06:53 PM     #3 (permalink)
Member
 
ruleofnike69's Avatar
 
Join Date: Mar 2007
Location: Bowling Green Ky.
Posts: 442
Send a message via ICQ to ruleofnike69 Send a message via AIM to ruleofnike69 Send a message via Yahoo to ruleofnike69 Send a message via Skype™ to ruleofnike69
I'm thinking pinacle would do the job but I'm not really sure.......It might be worth looking at.
__________________
No man is an island
ruleofnike69 is offline   Reply With Quote
Old March 26th, 2007, 06:55 PM     #4 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,984
Blog Entries: 1
Send a message via MSN to EXreaction
Pinnacle?

What are you talking about?
EXreaction is online now   Reply With Quote
Old March 26th, 2007, 07:04 PM     #5 (permalink)
Super Stealthy Moderator
 
RicheemxX's Avatar
 
Join Date: Jan 2003
Location: Outside the box
Posts: 5,560
Blog Entries: 4
Send a message via Yahoo to RicheemxX
J1mmy here's a decent tutorial {scroll down to "Randomness, my favorite"} on using php and css you wouldn't get them to sync properly using that method and I'm not sure you could anyways as you would be using two different random variables but that will give you an idea

here's another tut

one using dhtml this might be what you are looking for!

one for java with mouse over effects

all these in a quick google
__________________
“Every question involves someone having to work for an answer, isn't it about time you did your share”
"Non-technical questions sometimes don't have an answer at all."
Linus Torvalds

Last edited by RicheemxX : March 26th, 2007 at 08:07 PM.
RicheemxX is offline   Reply With Quote
Old March 26th, 2007, 07:07 PM     #6 (permalink)
Member
 
ruleofnike69's Avatar
 
Join Date: Mar 2007
Location: Bowling Green Ky.
Posts: 442
Send a message via ICQ to ruleofnike69 Send a message via AIM to ruleofnike69 Send a message via Yahoo to ruleofnike69 Send a message via Skype™ to ruleofnike69
Ya know what Ex.........I'm probably am out of school on this one.
I work a lot with pinacle studios stuff......Hollywood FX.
something about your discription sounded familiar to a progect I worked on in that program.
Sorry about that........you guys figure it out on your own.........sorry to have interfeered.
Good luck.
ruleofnike69 is offline   Reply With Quote
Old March 26th, 2007, 07:43 PM     #7 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,984
Blog Entries: 1
Send a message via MSN to EXreaction
The kind of programs you are talking about are for video editing (unless they do make apps that do stuff other than that).

Jimmy is looking for help designing a website.
EXreaction is online now   Reply With Quote
Old March 26th, 2007, 08:33 PM     #8 (permalink)
Member
 
ruleofnike69's Avatar
 
Join Date: Mar 2007
Location: Bowling Green Ky.
Posts: 442
Send a message via ICQ to ruleofnike69 Send a message via AIM to ruleofnike69 Send a message via Yahoo to ruleofnike69 Send a message via Skype™ to ruleofnike69
I know ex......that is why I bowed out.
My recollection of FX is that there were backround capabilities as well as color variations..... and you can work frame by frame. But it has been so long now since I got to play in that area ......I would look stupid suggesting someone take their time investigating...........so I apologize for taking yalls time.
carry on and good luck.
And it is definatly not a web page development program.

Last edited by ruleofnike69 : March 26th, 2007 at 08:45 PM.
ruleofnike69 is offline   Reply With Quote
Old March 26th, 2007, 11:57 PM     #9 (permalink)
Ultimate Member
 
kenboyles72's Avatar
 
Join Date: Aug 2004
Location: Gladewater, TX
Posts: 1,189
Send a message via MSN to kenboyles72
Changing one or the other is quite easy, but to sync it would be pretty hard. Here's a tutorial using javascript to randomly change pics on refresh.
kenboyles72 is offline   Reply With Quote
Old March 27th, 2007, 08:40 AM     #10 (permalink)
Ultimate Member
 
J1mmy's Avatar
 
Join Date: Apr 2005
Location: UK, England
Posts: 2,572
Blog Entries: 1
Thanks for the links.

Im thoroughly familiar with randomly changing backgrounds/images with a single target. Its just doing doing two at the same time in sync, thats the problem

RicheemxX, your 3rd link was pretty close. However, I don't think they sync together, check out the example. They have two targets each with indivdual random scripts.

I think, if I get get one random script and set two targets and two source folders, there just has to be some instructions saying, 'pick the same numnber from the other folder' and then they should create the same coloured images.

Okay, there are two targets, and the script has to select a number between 1 and 5 from two folders. From the primary folder it for the background it pick 3, then there needs to be an 'IF' function that say, 'If you pick this number, pick the same from this folder' then it should apply it two the two different targets.

Get what Im trying to say?

It may work, but I don't know how to write it
J1mmy is online now   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fading image into background jutah Graphic Design and Digital Photography 9 August 27th, 2006 04:42 PM
Repeating Background Image in a Table soma104 Webmastering and Programming 3 December 1st, 2005 05:00 PM
css linking background image? ClubMed Webmastering and Programming 4 January 7th, 2005 10:05 AM
Background Image Missing in IE Ruler2112 Webmastering and Programming 1 September 28th, 2002 03:00 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3116)
‘Rogue’ or ‘Rouge’? (10)
Charges against non-tippers dropped.. (22)
Foxconn Blackops x48 MoBo (5)
Nvidia GTX 260 problem (14)
Delete an OS (18)
Laptop with wireless problem. (13)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
[F@H SPAM 11/16/09] ! 1/2 months to.. (42)
windows vista security holes (19)
windows 7 problem (7)
Recent Discussions
Looking for new motherboard (2)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (42)
add ram to existing (4)
Computer shutting down on its own (6)
EVGA 9800 gtx help with finding a goo.. (13)
"Documents and Settings" fo.. (7)
Delete an OS (18)
Outputing 1080p from my PC to my 720p.. (0)
panasonic dmr ez48veb recorder (0)
Need help getting speakers to work (2)
Nvidia GTX 260 problem (14)
Laptop with wireless problem. (13)
Point and Shoot Camera Suggestions. (9)
Is the PSU I received dead? (16)
FreeAgent drive software not x64 comp.. (1)
Intel 5100 AGN issues fixed yet? (28)
Foxconn Blackops x48 MoBo (5)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Size after cutting 700Mb file is 2.5 .. (0)
windows vista security holes (19)


All times are GMT -4. The time now is 03:24 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28