Forum Moderators: open
You can change just about anything on your page dynamically with JavaScript.
There are lots of free JavaScript graphs available, search Google for them and have a look at how they work to get ideas for your own.
<script type="text/javascript">
var x = 160
var y = 140
while (x>0) {
document.write("<style type='text/css'> div { position: absolute; top:"+y+"px; left:"+x+"px; }</style>")
document.write("<div>.</div>")
x=x-1
}
</script>
Try making it write an in-line style for each div, so that each gets it's own position:
while (x>0) {
document.write("<div style='position: absolute; top:"+y+"px; left:"+x+"px;'>.</div>")
}