Search found 2 matches
- Wed May 16, 2012 12:57 am
- Forum: SVG / XML Code
- Topic: Current time/date in SVG
- Replies: 3
- Views: 4466
Re: Current time/date in SVG
Maybe something like this. <text id="datetime" x="0" y="15" fill="red"></text> <script type="text/javascript"> <![CDATA[ var currentTime = new Date(); var month = currentTime.getMonth() + 1; var day = currentTime.getDate(); var year = currentTime.ge...
- Tue May 15, 2012 1:15 am
- Forum: SVG / XML Code
- Topic: Current time/date in SVG
- Replies: 3
- Views: 4466
Current time/date in SVG
Hi, I am trying to add current time to the svg file I have using Ecmascript. following is the code I have. Unfortunately its not working . can someone help me fix it? Thank you <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD...