Skip to Content
Menu
This question has been flagged

This is my code but it is not working

screen.js

        onload: function () {
            if (this.src == '123.jpg'){
            this.src = 'mypic.jpg';
            }
        },
pos.xml

<div style='text-align:center'>
                    <img id='myPic' src='123.jpg' style=" width:100%;height:50%;"/>
                </div>

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 19
5403
2
Feb 22
9964
0
Nov 22
2631
1
Oct 22
5372
2
Jul 22
19626