<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sitesnippet SYSTEM "sitesnippet.dtd">
<!--Adobe GoLive snippet file-->
<snippet version="1.0" title="图像互换" type="HTML" author="Transmit Media for Adobe Systems, Inc." description="基本图像互换代码。">
	<markupsource>
		<![CDATA[
		//Pass image name and source values by calling the function elsewhere
		//Example: swapImage(myImageName, images/myimage.gif)
		function swapImage(imageName, imageSrc) 
		{
  			if (document.images)
  			{
    			if (imageSrc != "none")
    			{
      				document.images[imageName].src = imageSrc;
    			}
  			}
		}
		]]>
	</markupsource>
</snippet>