I am currently using the following code to call up images but the code works only in IE. Is there a way to code it so it works both in Netscape 6/7 and IE????
<img name="myImg" src="javascript:document.myImg.src='assets/' + variable + '/imagename.gif'">
Plex
I need to insert a JavaScript variable into an img src attribute, something like:
<img src="images/" + JavaScript variable + "/imagename.gif">
Can this be done?
Pleximus
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.