F
Fjodor Klondyke
hello,
i have a function in javascript. when someone clicks on a link the text in a
layer changes.
i want breaks in the text, in html you would use '<br><br>'.
i tried this in the variable that contains the text but it does not work.
so my question is: how do i get these breaks in the text, so that the text
looks
good in the layer?.
here is my code:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function toonSpelregels(spel){
if(spel == 'zappen'){
document.getElementById('spelregels').style.visibility =
'visible';
verkort = document.getElementById('spelregels').childNodes[0];
uitleg="blabla........" + "<br><br>" + " blabla....";
verkort.nodeValue=uitleg;
}
.............
.............
}
<div id="spelregels">
</div>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
thanks,
fjodor
i have a function in javascript. when someone clicks on a link the text in a
layer changes.
i want breaks in the text, in html you would use '<br><br>'.
i tried this in the variable that contains the text but it does not work.
so my question is: how do i get these breaks in the text, so that the text
looks
good in the layer?.
here is my code:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function toonSpelregels(spel){
if(spel == 'zappen'){
document.getElementById('spelregels').style.visibility =
'visible';
verkort = document.getElementById('spelregels').childNodes[0];
uitleg="blabla........" + "<br><br>" + " blabla....";
verkort.nodeValue=uitleg;
}
.............
.............
}
<div id="spelregels">
</div>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
thanks,
fjodor