日期:2014-05-16 浏览次数:20662 次
<script> function check(obj){ $.ajax({ type:"POST", url:"?timestamp=" + new Date().getTime(), data:"showurl="+obj.value, success:function(){ $("#tip").html(" <font color=red>已更改...</font>").fadeOut(2000); } }); } </script>
<select name="showurl" onchange="return check(this);"> <option>...</option> </select>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js"></script> <div id="tip"></div> <input type="button" value="按我吧" id="t"/> <script language="javascript" type="text/javascript"> $("#t").click(function(){ $("#tip").html(" <font color=red>已更改...</font>").fadeIn().fadeOut(2000); }); </script>