function xEllipse(e, xRadius, yRadius, radiusInc,
totalTime, startAngle, stopAngle)
Define your own values to pass to xEllipse(). The same arguments are passed to each of the demo elements. The 'Reset' button repositions the demo elements in the center of the page.
Each function call is in a for loop which calls xEllipse() for each demo element. a1 is a convenience variable I used. It is the start angle of each element (ele1=0, ele2=90, ele3=180, ele4=270).
xEllipse(ele[i], 200, 100, 0, 10000, a1, 2880+a1);
xEllipse(ele[i], 100, 200, 0, 10000, 2880+a1, a1);
xEllipse(ele[i], 200, 100, 0, 5000, 0, -360);
xEllipse(ele[i], 100, 200, 0, 5000, -360, 0);
xEllipse(ele[i], 400, 300, -1, 5000, 0, 720);
xEllipse(ele[i], 300, 400, -1, 5000, a1, 720+a1);
xEllipse(ele[i], 2, 2, 1, 10000, i * 360, 0);
xEllipse(ele[i], 2, 2, 1, 10000, 720+a1, a1);
xEllipse is part of the X Library as of v3.15.3.
By your use of X and/or CBE and/or any Javascript from this site you consent to the GNU LGPL - please read it. If you have any questions about the license, read the FAQ and/or come to the forums.
For email support please request a quote.
Forum support is available at the xLibrary Support Forums.
Cross-Browser.com is the home of X - a cross-browser Javascript library, and many demos, applications, articles and documentation.
The X core is designed for Opera 5+ (*), Mozilla, Firefox, Safari, WebKit, Internet Explorer 4+, Konqueror, Netscape 4.75+ (*) and browsers with similar object models. Object-detection instead of browser-detection is used exclusively. Currently, I'm testing with the following browsers. X has been tested by others on a wide variety of platforms.
WinXP: Opera 9.20, Firefox 2.0.0.3, Safari 3.0.2 and Internet Explorer 4, 5 and 7.
Win2K: Opera 7.51, FireFox 1.5.0.7 and Internet Explorer 6.
This site and all its javascript were developed with UltraEdit, a most excellent programmer's editor.