Is there a command to draw a circle in javascript or I have to use only a circle picture?
Also is there a way to arrange many circles randomly in a browser page ,using html/javascript?

You will need to use SVG to do this which is not widely supported yet. So basically you will need to use images.

Hi,

Use a transparent background circle image in gif or png format and create many image instance with javascript assigned to the smae source. You can even arrange their radius with using a single image given it has the resolution of the largest circle to avoid aliasing and pixelation effects.

Loren Soth

you can use Open-jACOB Draw2D

seen on

greetings

FreeGroup

Why not use Javascript's rounded corners capabilities?

Create a square with css then round the corners to the point that it eventually becomes a circle. This way is all made with code and it's more widely supported than trying to use a png.

Is there a command to draw a circle in javascript or I have to use only a circle picture?

There are a number of good - and free - javascript plot/graph packages.

Also is there a way to arrange many circles randomly in a browser page ,using html/javascript?

Once you have the circles (whether plots or images), yes. They can even be animated.
http://www.dynamicdrive.com/dynamicindex3/bubble.htm

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.