用event.shiftKey
onClick=test()function test()
{
if(event.shiftKey)
  {
     ..
  } 
}shiftKey Property--------------------------------------------------------------------------------Retrieves the state of the SHIFT key. SyntaxHTML N/A 
Scripting [ bKey = ] event.shiftKey Possible ValuesbKey Boolean that specifies one of the following values: false SHIFT key is not pressed. 
true SHIFT key is pressed. 
 The property is read-only with no default value.