Hello,
I use SVG inisde my xhtml file. I can not get access to the text with id="Wert". What is wrong, I want to change the color form blue to red.
Untitled Page
<script type="text/javascript">
function OnLoad() {
setTimeout("timer()", 1000);
}
function timer() {
var randomnumber = Math.floor(Math.random() * 101); // Zahlen von 0..100
var svgdocument = document.svgid.getSVGDocument( 'svgid');
svgtext = svgdocument.getElement.ById('Wert');
svgtext.setattribute('style','fill:red');
setTimeout("timer()", 1000);
}
</script>
40