易截截图软件、单文件、免安装、纯绿色、仅160KB

javascript高手进

JScript code:
<script language="javascript" type="text/javascript">
function $(e) {return document.getElementById(e);}
document.getElementsByClassName = function(cl) {
var retnode = [];
var myclass = new RegExp('\\b'+cl+'\\b');
var elem = this.getElementsByTagName('*');
for (var i = 0; i < elem.length; i++) {
var classes = elem[i].className;
if (myclass.test(classes)) retnode.push(elem[i]);
}
return retnode;
}
var MyMar;
var speed = 1; //速度,越大越慢
var spec = 1; //每次滚动的间距, 越大滚动越快
var ipath = 'images/home/'; //图片路径
var thumbs = document.getElementsByClassName('thumb_img');
for (var i=0; i<thumbs.length; i++) {
//thumbs[i].onmouseover = function () {$('main_img').src=this.rel; $('main_img').link=this.link;};
thumbs[i].onclick = function () {location = this.link}
}
//$('main_img').onclick = function () {location = this.link;}
$('gotop').onmouseover = function() {this.src = ipath + 'gotop.jpg'; MyMar=setInterval(gotop,speed);}
$('gotop').onmouseout = function() {this.src = ipath + 'gotop.jpg'; clearInterval(MyMar);}
$('gobottom').onmouseover = function() {this.src = ipath + 'gobottom.jpg'; MyMar=setInterval(gobottom,speed);}
$('gobottom').onmouseout = function() {this.src = ipath + 'gobottom.jpg'; clearInterval(MyMar);}
function gotop() {$('


相关问答:

ASP.NET 与javascript结合报缺少“;”

<script src=http://webchat.yesim.com.cn/kf/?u=text&ulit=> </script>

为什么把这句代码放在.aspx页面中运行时会报缺少“;”。

请各位高手指点指点

验证过。没错。

检 ......

vc html javaScript脚本语言打不开应用程序

我模仿“实现网络蚂蚁、JETCAR等软件之IE右键菜单的“用xxxxxx下载”例子,”在ie右击菜单弹出一个应用程序,在我的机子上运行能实现效果,但是我把运行好的程序打包到另一机子上(“HKEY_CURRENT_USER\Software\Mic ......

hookkeee老师,javascript如何控制xml

hookkeee老师,javascript如何控制xml
如何读取cookies

hookkee在web版
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.async = false;
xmlDoc.load("test"&q ......

在JavaScript里访问C#变量

.cs文件里代码:
string ss="12345";
protected void Page_Load(object sender, EventArgs e)
{
  ClientScript.RegisterStartupScript(this.GetType(), "", " <scrip ......

JavaScript 请教

ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(),this.ClientID, " <script language=\"javascript\" type=\"text/javascript\"> if(confirm('需要直接 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号