LINUX.ORG.RU

SVG Demos var svgDoc; function init(event) { try { svgDoc = window.document; //event.getTarget().getOwnerDocument(); DisplayTime(); setInterval("DisplayTime()",1000); } catch(e) {} } function over(event) { event.target.setAttribute("class","over center"); return; } function out(event) { event.target.setAttribute('class','ref center'); return; } //******************************************************* // Function called once per second to display the time //******************************************************* function DisplayTime() { var svgElement; var CurTime = new Date(); var strTime; /////////////// Format Date & Time //////////////// temp = CurTime.getMonth()+1; strTime=""; if(!(temp>9)) strTime="0"; strTime += CurTime.getMonth()+1; strTime += "/" temp = CurTime.getDate(); if(!(temp>9)) strTime+="0"; strTime += CurTime.getDate()+"/"+CurTime.getFullYear().toString().substr(2,4)+&qu ot; "; temp = CurTime.getHours(); if(!(temp>9)) strTime+="0"; strTime += CurTime.getHours()+":"; temp = CurTime.getMinutes(); if(!(temp>9)) strTime+="0"; strTime += CurTime.getMinutes()+":"; temp = CurTime.getSeconds(); if(!(temp>9)) strTime+="0"; strTime += CurTime.getSeconds(); // Display Date & Time try { svgElement = svgDoc.getElementById("CurrentTime"); svgElement.firstChild.nodeValue = strTime; } catch(e) {}; } .Center {text-anchor:middle} .LJ {text-anchor:start} .RJ {text-anchor:end} .F8 {font-size:8px;} .F10 {font-size:10px;} .F14 {font-size:14px;} .F16 {font-size:16px;} .F18 {font-size:18px;} .Time {fill:navy;font-size:18px;pointer-events:none;} .title {fill:navy;stroke:none;font-size:40px;font-family:serif;} .subtitle {fill:blue;stroke:none;font-size:18px;font-family:serif;} .ColumnTitle {fill:yellow;font-size:16px;font-family:MS Comic,sans-serif;} .ref {fill:blue;stroke:none;font-size:12px;} .over {fill:red;stroke:none;font-size:12px;} .center {text-anchor:middle;} .intro {fill:navy;stroke:none;font-size:10px;} Scalable Vector Graphics An Open Solution for Real-Time Graphics Control Systems Real-Time Metering Miscellaneous Power Plant One Line Diagram Combustion Turbine Generator Co-Generation Facility Landfill Generation PID Loop Controller UWGB Solar Installation HVAC Air Handling Unit Web Enabling Process Control Capstone Microturbines SVG Presentation Grid Friendly Dryer Panel Meters Temperature Meter Real-Time Graph Strip Chart Recorders Office Building Load Electric Distribution and Metering eMiner Quad4 Meter Data 24 Hour Graph PA LMP Map NY LBMP Map Wisconsin LMP Map Michigan LMP Map Learn SVG - a "try it" tutorial Songs in SVG Graphing Calculator Graphing Calculator Toolbar Calculator - SVG-20K Calculator - SVG-16K Childrens Picture Book Timezone Clocks Mobile SVG Picture Cube Howto: Generate SVG using XSL Applying web technology using XML Applying web technology - Slide 26



Версия 3.5.2 полет нормальный. Со скриптом проблемы...

gh0stwizard ★★★★★
()

Есть такое. версия 3.4.2

Envel ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.