Log in

View Full Version : Random Image or Text



erobey
08-22-2008, 08:48 PM
Hello,
what I am trying to do is have chosen text and/or images fade into a specific DIV only. position of fade-in coordinates randomized within the DIV, text/images displayed in random order, interval of 5 secs. Is this possible? :confused:
thanks in advance
erobey

Nile
08-22-2008, 09:38 PM
Check out jQuery (http://jquery.com/). Its made to make javascript a lot easier. You'd have to use the $("#div").fadeIn() and $("#div").fadeOut(). If you can't find out a way to do this with jquery, after using the Math.ceil, and Math.random functions. Post in this thread, and I'll try to help you. :) No guarantee that it will turn out how you wanted. But I'll try.