images

+3 william appiah-dankwah · February 15, 2015
i want to place an image in javascript how do you do that? does anyone know? 

Post a Reply

Replies

- page 3
Oldest  Newest  Rating
0 william appiah-dankwah · April 14, 2015
worked the append child out need to re-read how do you use pop(); to remove image thats what i am working on right now
0 william appiah-dankwah · April 15, 2015
does anyone know why the loop is not working for the code that i have posted?
0 william appiah-dankwah · November 29, 2016
<head>
<script type="text/javascript">
face= new Image(120,120);
face.src="photo-1.JPG";
head= new Image(120,120);
head.src="photo-2.JPG";
</script>
</head>
<body>
<a href="#"onmouseover="javascript:document.face.src='photo-1.JPG'"
onmouseout="javascript:document.head.src='photo-2.JPG'">
<img src="photo-2.JPG" name="head" border="1"></a>
</body>


this code is meant to turn into another picture when the mouse hovers over it but does not work for me does anyone know why?

Javascript

107,085 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators