2011-01-06 71 views

回答

0

使用jQuery添加一些點擊事件

例如:。

$('img').click(function() 
{ 
    //do something nice like getting the names in the list 
    //or add a class to it 
}); 

PHP是不走這裏的路,因爲你需要做的事情在瀏覽器中,而不是在服務器上。 從jQuery檢查網站,看到一些不錯的功能我在API上做一些很酷的事情。