Changing background randomly in sync with image  | | |
March 26th, 2007, 06:22 PM
|
#1 (permalink)
| | Ultimate Member
Join Date: Apr 2005 Location: UK, England
Posts: 2,572
| 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
|
| |
March 26th, 2007, 06:43 PM
|
#2 (permalink)
| | SoMuchAnime-SoLittleTime
Join Date: Aug 2003 Location: Plymouth, WI
Posts: 14,984
|
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. |
| |
March 26th, 2007, 06:53 PM
|
#3 (permalink)
| | Member
Join Date: Mar 2007 Location: Bowling Green Ky.
Posts: 442
|
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
|
| |
March 26th, 2007, 06:55 PM
|
#4 (permalink)
| | SoMuchAnime-SoLittleTime
Join Date: Aug 2003 Location: Plymouth, WI
Posts: 14,984
|
Pinnacle?
What are you talking about? |
| |
March 26th, 2007, 07:04 PM
|
#5 (permalink)
| | Super Stealthy Moderator
Join Date: Jan 2003 Location: Outside the box
Posts: 5,560
|
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.
|
| |
March 26th, 2007, 07:07 PM
|
#6 (permalink)
| | Member
Join Date: Mar 2007 Location: Bowling Green Ky.
Posts: 442
|
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. |
| |
March 26th, 2007, 07:43 PM
|
#7 (permalink)
| | SoMuchAnime-SoLittleTime
Join Date: Aug 2003 Location: Plymouth, WI
Posts: 14,984
|
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.  |
| |
March 26th, 2007, 08:33 PM
|
#8 (permalink)
| | Member
Join Date: Mar 2007 Location: Bowling Green Ky.
Posts: 442
|
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.
|
| |
March 26th, 2007, 11:57 PM
|
#9 (permalink)
| | Ultimate Member
Join Date: Aug 2004 Location: Gladewater, TX
Posts: 1,189
|
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. |
| |
March 27th, 2007, 08:40 AM
|
#10 (permalink)
| | Ultimate Member
Join Date: Apr 2005 Location: UK, England
Posts: 2,572
|
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  |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |