Graphics Not Displayed

Boogeyman

New Member
I am simply trying to create some simple vector graphics using the Javascript Library Raphael. There should be a square object and a curved object, but nothing is being displayed. Can anyone help me. Thank you.\[code\]<html><head><script src="http://stackoverflow.com/questions/11529750/raphael.js"></script><script src="http://stackoverflow.com/questions/11529750/jquery-1.7.2.js"></script><script type="text/javascript"> //all your javascript goes here var paper = Raphael("sample-2", 200, 100);var rectPath = paper.path("M10,10L10,90L90,90L90,10Z");var curvePath = paper.path("M110,10s55,25 40,80Z");rectPath.attr({fill:"green"});curvePath.attr({fill:"blue"});</script></head><body><div id="sample-2" style="width:500px; height:500px;"></div></body></html>\[/code\]
 
Back
Top