2012-09-14, 01:21 PM
Hello.
I added my own mycode that replaces the regular expression \[item\](.*?)\[/Item\] to the following code:
This script will display correctly only in Firefox browser:
while in others it looks like this:
Does anyone know what might be causing this behavior?
I added my own mycode that replaces the regular expression \[item\](.*?)\[/Item\] to the following code:
<script type="text/javascript">
var message="$1";
var items=message.split(",");
for (var i = 0, item; item = items[i]; i++) {
document.write("<img src=http://matrixpna.pl/images/mycode/items/"+item+".png height=32px> ");
}
</script>
This script will display correctly only in Firefox browser:
while in others it looks like this:
Does anyone know what might be causing this behavior?