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:
![[Image: 1.png]](https://camo.mybb.com/c9563d64c55765e22344a238bb6417d10549204b/687474703a2f2f6d6174726978706e612e706c2f312e706e67)
while in others it looks like this:
![[Image: 2.png]](https://camo.mybb.com/bb59055871a9c0a00da3b9a753f5fa6c6ce5915d/687474703a2f2f6d6174726978706e612e706c2f322e706e67)
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?