Hi all!
When i have a function in an externall file:
function changeSource(){
var str='<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>';
str+='<TR><TD><IMG SRC="pp-3__01.jpg" WIDTH=102 HEIGHT=121 border="0"></TD>';
str+='<TD><IMG SRC="pp-3__02.jpg" WIDTH=102 HEIGHT=121 border="0"></TD></TR></TABLE>';
return str;}
and then i do smthng like objID.innerHTML=changeSource() what would happen to da pictures? (pp-3..jpg) would they be loadin just when this script loads (i mean by <script src='extrnl.js'></script>) or only when i call changeSourse() from this script?
What if i have a lot of such functions with a lot of pictures - would it slow down da page loadin?
When i have a function in an externall file:
function changeSource(){
var str='<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>';
str+='<TR><TD><IMG SRC="pp-3__01.jpg" WIDTH=102 HEIGHT=121 border="0"></TD>';
str+='<TD><IMG SRC="pp-3__02.jpg" WIDTH=102 HEIGHT=121 border="0"></TD></TR></TABLE>';
return str;}
and then i do smthng like objID.innerHTML=changeSource() what would happen to da pictures? (pp-3..jpg) would they be loadin just when this script loads (i mean by <script src='extrnl.js'></script>) or only when i call changeSourse() from this script?
What if i have a lot of such functions with a lot of pictures - would it slow down da page loadin?