<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript" src="js/jquery.blockUI.js"></script> <script> $(document).ready(function(){ $("#test").click(function(){ $("#bbb").parent().block({ message: null }); }); }); </script> </head> <body> <input type="button" name="test" id="test" value="按鈕" /> <div id="aaa"><img src="3.jpg" name="bbb" id="bbb" /></div> </body> </html>點了按鈕之後 div id為aaa的會block起來
歡迎光臨 jsGears.com 技術論壇 - AJAX, JavaScript, jQuery, 網站開發, 前端效能優化 (http://jsgears.com/) |