Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thank you for the answer! That probably should be one of the reasons! But, I've just tried to do this and unfortunately when when using class instead of id script won't work at all. Maybe solution is somewhere in Javascript itself? Commented Apr 24, 2011 at 21:43
  • yes, you need to change the script as it is still using getElementById. I sugest you look into jQuery where you could replace the whole crappy macromedia MM_findObj with simply $('.random') Commented Apr 24, 2011 at 22:38