James
is the SVG embedded in an HTML page somehow or is it windowed on its own? If
it's embedded, then should be easy to calculate retrieving the svg tag
width/height attributes directly then resizing
var mySVG-document.getAttributeById('mySVGtag');
var myW = mySVG.getAttributeNS(null,'width');
var myH = mySVG.getAttributeNS(null,'height');
var myScaleFactor=0.5;
mySVG.setAttributeNS(null,'width',myW*myScaleFactor);
mySVG.setAttributeNS(null,'height',myH*myScaleFactor);
Alan
--- In [email protected], "jamesd" <jcdeering1@...> wrote:
>
> I am building a ecommerce site and have a problem with resizing an image. I
> have a link to expand a print image to full size screen. I would like to have
> a button link to resize the image to the print mat size so customers can then
> select the mat color, something like a 50% reduction.
>
> I have searched all of the online javascripts and none seem to work with SVG.
> There are many CSS methods, but I don't use CSS, I use SVG.
>
> Does anyone know of a simple SVG javascript that will resize the image
> proportionally?
>
> Thanks;
>
> James
>
------------------------------------
-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/