|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
A problem with randomising a link
Hi. I am trying to help my mate create a website for his art project. To try and explain he wants to make an online game...where there are many squares on the screen, you click on one and you go through to a real player clip (using a hyper link) there are two things I dont know how to do.
1) Is there a way to make a square change colour upon clicking it...random if possible. 2) To totally randomise the real player clips under each hyper link (it is a game after all) - This is the most important bit and I dont know what to do. Woul;d i have to try encorporate some programming into it? Any help or code would be greatly appreciated. Sco |
|
#2
|
||||
|
||||
|
Hmm, I think you can do this with JavaScript... Dunno for sure though...
Maybe Flash... I'm curious if you can find the solution. Sorry I can't help you with this... Cheers,
__________________
Work to live, don't live to work |
|
#3
|
||||
|
||||
|
This is quite simple to do with Javascript - check out the onClick and onMouseover events. These allow you to dynamically change anything (backgroundColor, className, etc...) about an HTML item, such as table cells, DIV's, SPAN's, etc...
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > A problem with randomising a link |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|