Lee scribed:
>Ed Jay said:
>>
>>VK scribed:
>>
>>>
>>>Ed Jay wrote:
>>>> Why doesn't the following swap images?
>>>>
>>>> <head>
>>>> <javascript type="text/javascript">
>>>> function swapImage() {document.images.image1.src=/images/1stimage.gif;}
>>>> function swapBack() {document.images.image1.src=/images/2ndimage.gif;}
>>>> </script>
>>>> </head><body>
>>>
>>>because you did not enclose the URI string in quotes:
>>>
>>>document.images.image1.src="/images/1stimage.gif";
>>
>>Sorry, but I didn't include the quotes. Actual code is as you've shown,
>>i.e.,
>>
>>function swapImage() {document.images.image1.src="/images/1stimage.gif";}
>>function swapBack() {document.images.image1.src="/images/2ndimage.gif";}
>
>You see how you waste resources when you don't copy and paste the
>actual code? The pathnames to your images are probably wrong.
>Open each image directly in your browser and copy the full URL
>into your code.
Thanks, Lee. Image path was the problem.
--
Ed Jay (remove 'M' to respond by email)
Received on Mon May 1 05:26:11 2006