<?xml version="1.0" encoding="utf-8"?>

<snippet name = "切换图像" description = "简单的图像交换例程。" preview="html" type="block">

<insertText location="beforeSelection">

<![CDATA[function switchImage(imgName, imgSrc) 

{

  if (document.images)

  {

    if (imgSrc != "none")

    {

      document.images[imgName].src = imgSrc;

    }

  }

}

]]>

</insertText>

<insertText location="afterSelection"><![CDATA[]]>

</insertText>

</snippet>

