In the gap of two sprints, I have sometime to review the basic knowledge. Here we go.
#1 Image
<img name="news" src="xxx">
js: document.images.news.src = xxxx;
you can also do this way,
newsOff = new Image();
newsOff.src = "xxx";
#2 Eval()
The eval() method handles nicely if you want to dynamically create JavaScript code.
e.g. eval(“document.images.news.src = xxxx;”
#1 Image
<img name="news" src="xxx">
js: document.images.news.src = xxxx;
you can also do this way,
newsOff = new Image();
newsOff.src = "xxx";
#2 Eval()
The eval() method handles nicely if you want to dynamically create JavaScript code.
e.g. eval(“document.images.news.src = xxxx;”
Comments
Post a Comment