--- nfo/php/libs/com.newsblob.phphtmllib/examples/example7.php 2003/02/22 21:07:21 1.2 +++ nfo/php/libs/com.newsblob.phphtmllib/examples/example7.php 2003/09/20 00:20:55 1.3 @@ -6,7 +6,7 @@ * that phpHtmlLib provides. * * - * $Id: example7.php,v 1.2 2003/02/22 21:07:21 jonen Exp $ + * $Id: example7.php,v 1.3 2003/09/20 00:20:55 jonen Exp $ * * @author Walter A. Boring IV * @package phpHtmlLib @@ -19,7 +19,7 @@ * Include the phphtmllib libraries */ include_once("includes.inc"); -include_once($phphtmllib."/widgets/SVGDocumentClass.inc"); +include_once($phphtmllib."/widgets/svg/SVGDocumentClass.inc"); //build the SVG Document object and set the //width=400, height=200 attributes on the 'svg' root @@ -42,15 +42,16 @@ $circle = svg_circle(0,0,50,"blue", "black", 2); //add a neat mouseover to the circle -$circle->set_tag_attribute("onmouseover=\"evt.target.setAttribute('style', 'stroke:red; stroke-width:2');\""); -$circle->set_tag_attribute("onmouseout=\"evt.target.setAttribute('style', '');\""); +$circle->set_tag_attribute("onmouseover", "evt.target.setAttribute('style', 'stroke:red; stroke-width:2');"); +$circle->set_tag_attribute("onmouseout", "evt.target.setAttribute('style', '');"); $g->add( $circle ); //add it to the image $svgdoc->add( $g ); -$g2 = svg_g("", "translate(100 80)"); +$g2 = svg_g("stroke:black", "translate(100 80)"); $text = svg_text(0,80,NULL,NULL, "SVG built by"); $text->set_style("font-size:20;"); +$text->set_collapse(); $linktext = svg_text(114,80,NULL,"mylink","phpHtmlLib"); //$linktext->set_style("font-size:20;color:#FF0000;text-decoration:underline;");