画一个抛物线
随意发挥,只有半边的,无实际意义,仅为消遣!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>xy2</title> <script type="text/javascript" src="jquery-1.4.4.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ for(var i=0;i<50;i=i+0.1){ var y=25*i; var x=2*i*i+3*i+10; $('body').append('<div style="left:'+y+'px;top:'+x+'px"></div>'); } }); </script> <style type="text/css"> div{ width:2px; height:2px; background-color:#F00; position:absolute;} </style> </head> <body> </body> </html>