by bmbmjmdm September 20th 2014, 6:03 pm
Sorry for being so dull, but I'm not sure exactly what you mean
. How do I relate my function to existing bbcode? All I need it to do is extract a variable and then replace that variable with a block of text (in the example above, that block would simply be the result of an algorithm). I saw on another site that one way to do this is with tag IDs, as shown below;
- Code:
function mult2() {
var num = document.getElementById('NUM').innerHTML;
var det = "" + num*2;
document.getElementById('NUM').innerHTML = det;
}
And then in the post to do something like this:
- Code:
<html>
<body>
<p id='NUM'>5</p>
</body>
</html>
But the question still remains how to make the actual function run.
Also I'm not sure how this relates to CSS either. Again, I apologize, I'm not very familiar with webware ><