xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernardo Buffa Colomé <kreimerkrei...@yahoo.es>
Subject Q: To modify an CSS property from JavaScript
Date Wed, 03 Sep 2003 07:53:35 GMT
Hi. Given a doc like this:

<?xml version="1.0" standalone="no"?>
<svg:svg
  width="200mm" height="200mm"
  viewBox="0 0 1000 500" preserveAspectRatio="xMinYMin
meet"
  xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
  <style type="text/css"><![CDATA[
    .teufel
    {
      fill:red;
      stroke:blue;
      stroke-width:.1;
      visibility:visible;
    }
  ]]></style>

  <script type="text/ecmascript"><![CDATA[
  ]]></script>



  <svg:rect
    x="100" y="100"
    width="300" height="100"
    id="teufel01"
    class="teufel"
  />
  <svg:rect
    x="300" y="-100"
    width="300" height="100"
    id="teufel02"
    class="teufel"
  />

</svg:svg>




my question is: It is possible to modify from
ECMAScript, the property 'visibility' of an arbitrary
CSS class (eg 'teufel') and to expect the document
update the elements properly. If yes, somebody can
tell me how?

Thanks in advance. And congratulations for the great
human effort behind Batik!

Bernardo




___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message