Tuesday, November 10th, 2009
<!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" />
<title>提示信息框pop up</title>
<script language="javascript" src="include/scriptaculous/prototype.js" ></script>
<script language="javascript" src="include/js/general.js" ></script>
<!-- <script language="javascript" src="include/js/asterisk_test.js" ></script> -->
<script language="javascript" src="include/js/notificationPopup_test.js" ></script>
<style type="text/css">
.lvtCol {
border-top:1px solid #fff;
border-left:1px solid #ddd;
border-right:0px solid #fff;
border-bottom:0px solid #fff;
background: #FFFFFF url(images/level2Bg.gif) repeat-x scroll center bottom;
...
Posted in 电脑技术 | No Comments »
Tuesday, May 20th, 2008
JavaScript Google IG Drag Demo
Author: 饿郎
Last Modify: 2008-01-21 22:20
这是一个关于 JavaScript 仿 google 个性化主页拖拽效果的简单的 Demo,在 IE 6 , FireFox 1.5 , Opera 9 下测试通过。
文章链接: http://www.jrgz2008.com/blog/post/code/drag-google.html
下载
Posted in Javascript | No Comments »
Thursday, April 24th, 2008
suggestion例子:
<script type="text/javascript" src="../libs/jquery.pack.js"></script>
<script type="text/javascript">
function lookup(inputString) {
// 计算div左上角的位置
var x = (document.body.clientWidth-100)/2;
$('#suggestions').css("left",x+"px");
if(inputString.length == 0) {
// Hide the suggestion box.
$('#suggestions').hide();
} else {
$.post("../include/rpc.php", {queryString: ""+inputString+"",ct:"<?=$city?>"}, function(data){
if(data.length >0) {
$('#suggestions').show();
//alert(data);
$('#autoSuggestionsList').html(data);
}
});
}
} // lookup
function fill(thisValue) {
$('#q').val(thisValue);
setTimeout("$('#suggestions').hide();", 200);
}
</script>
<INPUT size="60" name="q" id="q" autocomplete = "off" onkeyup="lookup(this.value);" onblur="fill();" ><br>
<div class="suggestionsBox" id="suggestions" style="display: none;">
<img src="../upArrow.png" style="position:relative;top: -12px; left: 20px;" ...
Posted in Javascript, Web开发 | No Comments »