我的项目中有两行这样的代码
<script type="text/javascript" src="JS/iutil.js"></script>
<script type="text/javascript" src="JS/JSForNav.js"></script>
请问当中的iutil.js和JSForNav.js分别是什么js框架js
<script type="text/javascript" src="JS/iutil.js"></script>
<script type="text/javascript" src="JS/JSForNav.js"></script>
请问当中的iutil.js和JSForNav.js分别是什么js框架js
解决方案 »
- ids for this class must be manually assigned before calling save(): po.Project
- 如何使用JSP调用matlab函数
- 问题有关下载的简单问题!
- 信息管理系统软件健康报告怎么写?
- struts标签问题
- 关于输入输出方法的一个小问题
- Java调用VB后台程序(如何实现)
- 同样的内容,提交给另外一个JSP页面是正确的中文信息,如果提交给SERVLET就编程乱码
- 在线等待freechart问题:请高手帮忙看一下
- 100分啊,在jbuilder中建立javabean后用beaninsight检查系统老是说找不到类?哭泣中...
- 怎么监听一个定时器有没有挂掉
- apusic应用服务器部署web项目报错
iutil.js是通用的JS方法
JSForNav.js是用于 导航/页面 跳转的方法
/**
* Interface Elements for jQuery
* utility function
*
* http://interface.eyecon.ro
*
* Copyright (c) 2006 Stefan Petre
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
*
*/jQuery.iUtil = {
getPos : function (e, s)
{
var l = 0;
var t = 0;
var sl = 0;
var st = 0;
var w = jQuery.css(e,'width');
var h = jQuery.css(e,'height');
var wb = e.offsetWidth;
var hb = e.offsetHeight;
while (e.offsetParent){
l += e.offsetLeft + (e.currentStyle?parseInt(e.currentStyle.borderLeftWidth)||0:0);
t += e.offsetTop + (e.currentStyle?parseInt(e.currentStyle.borderTopWidth)||0:0);
if (s) {
sl += e.parentNode.scrollLeft||0;
st += e.parentNode.scrollTop||0;
}
e = e.offsetParent;
}
l += e.offsetLeft + (e.currentStyle?parseInt(e.currentStyle.borderLeftWidth)||0:0);
t += e.offsetTop + (e.currentStyle?parseInt(e.currentStyle.borderTopWidth)||0:0);
st = t - st;
sl = l - sl;
return {x:l, y:t, sx:sl, sy:st, w:w, h:h, wb:wb, hb:hb};
},
getPosition : function(e)
{
var x = 0;
var y = 0;
var restoreStyle = false;
es = e.style;
if (jQuery(e).css('display') == 'none') {
oldVisibility = es.visibility;
oldPosition = es.position;
es.visibility = 'hidden';
es.display = 'block';
es.position = 'absolute';
restoreStyle = true;
}
el = e;
while (el){
x += el.offsetLeft + (el.currentStyle && !jQuery.browser.opera ?parseInt(el.currentStyle.borderLeftWidth)||0:0);
y += el.offsetTop + (el.currentStyle && !jQuery.browser.opera ?parseInt(el.currentStyle.borderTopWidth)||0:0);
el = el.offsetParent;
}
el = e;
while (el && el.tagName.toLowerCase() != 'body')
{
x -= el.scrollLeft||0;
y -= el.scrollTop||0;
el = el.parentNode;
}
if (restoreStyle) {
es.display = 'none';
es.position = oldPosition;
es.visibility = oldVisibility;
}
return {x:x, y:y};
},
getSize : function(e)
{
var w = jQuery.css(e,'width');
var h = jQuery.css(e,'height');
var wb = 0;
var hb = 0;
es = e.style;
if (jQuery(e).css('display') != 'none') {
wb = e.offsetWidth;
hb = e.offsetHeight;
} else {
oldVisibility = es.visibility;
oldPosition = es.position;
es.visibility = 'hidden';
es.display = 'block';
es.position = 'absolute';
wb = e.offsetWidth;
hb = e.offsetHeight;
es.display = 'none';
es.position = oldPosition;
es.visibility = oldVisibility;
}
return {w:w, h:h, wb:wb, hb:hb};
},
getClient : function(e)
{
if (e) {
w = e.clientWidth;
h = e.clientHeight;
} else {
de = document.documentElement;
w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
}
return {w:w,h:h};
},
getScroll : function (e)
{
if (e) {
t = e.scrollTop;
l = e.scrollLeft;
w = e.scrollWidth;
h = e.scrollHeight;
iw = 0;
ih = 0;
} else {
if (document.documentElement && document.documentElement.scrollTop) {
t = document.documentElement.scrollTop;
l = document.documentElement.scrollLeft;
w = document.documentElement.scrollWidth;
h = document.documentElement.scrollHeight;
} else if (document.body) {
t = document.body.scrollTop;
l = document.body.scrollLeft;
w = document.body.scrollWidth;
h = document.body.scrollHeight;
}
iw = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;
ih = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0;
}
return { t: t, l: l, w: w, h: h, iw: iw, ih: ih };
},
getMargins : function(e, toInteger)
{
el = jQuery(e);
t = el.css('marginTop') || '';
r = el.css('marginRight') || '';
b = el.css('marginBottom') || '';
l = el.css('marginLeft') || '';
if (toInteger)
return {
t: parseInt(t)||0,
r: parseInt(r)||0,
b: parseInt(b)||0,
l: parseInt(l)
};
else
return {t: t, r: r, b: b, l: l};
},
getPadding : function(e, toInteger)
{
el = jQuery(e);
t = el.css('paddingTop') || '';
r = el.css('paddingRight') || '';
b = el.css('paddingBottom') || '';
l = el.css('paddingLeft') || '';
if (toInteger)
return {
t: parseInt(t)||0,
r: parseInt(r)||0,
b: parseInt(b)||0,
l: parseInt(l)
};
else
return {t: t, r: r, b: b, l: l};
},
getBorder : function(e, toInteger)
{
el = jQuery(e);
t = el.css('borderTopWidth') || '';
r = el.css('borderRightWidth') || '';
b = el.css('borderBottomWidth') || '';
l = el.css('borderLeftWidth') || '';
if (toInteger)
return {
t: parseInt(t)||0,
r: parseInt(r)||0,
b: parseInt(b)||0,
l: parseInt(l)||0
};
else
return {t: t, r: r, b: b, l: l};
},
getPointer : function(event)
{
x = event.pageX || (event.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft)) || 0;
y = event.pageY || (event.clientY + (document.documentElement.scrollTop || document.body.scrollTop)) || 0;
return {x:x, y:y};
}
};
// JScript 文件
//Jquery based
function ChangeView(obj)
{
var MyUl = $(obj).next("li");
if(MyUl.css("display")=="none")
{
MyUl.slideDown("fast");
}
else
{
MyUl.slideUp("fast");
}
}
JSForNav.js:是一个调整视图用的工具
这两个都不是什么框架吧!!