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() {$('
Ïà¹ØÎÊ´ð£º
Çë´ó¼Ò×¢Òâ¿´Çå³þÎÊÌâ,²»ÊÇÒ»°ãÍøÉÏÌÖÂÛµÄÎÊÌâ:
ÔÚindex.phpÖÐÒýÓÃjsÎļþ
<script src='index.js'> </script>
¶øÔÚindex.jsÖÐÊÇÔõÑùÒýÓÃindex.phpÖÐphpµÄ±äÁ¿µÄÖµµÄÄØ?
ÏÖÔÚÎÒ ......
Çë½Ì....
°ÑJavaScriptÖ±½ÓдÔÚjspÒ³ÃæÖØµ÷ÓñȽϺÃÄØ »¹ÊǰÑJavaScriptд³É.jsÎļþ È»ºóÔÚjspÒ³ÃæÖе÷Óà ºÃÄØ
ÎªÊ²Ã´ÄØ
¸öÈ˾õµÃµ÷ÓñȽϺᣡ£¡£
°ÑJavaScriptд³É.jsÎļþ ÕâÑù±È½ÏºÃ~ ......
ÇëÎÊÔÚ¶Ô»°¿òÀïÄÚǶä¯ÀÀÆ÷¿Ø¼þ£¬´ïµ½¸úÍøÒ³½»»¥
Ïëͨ¹ýJavaScriptµ÷ÓÃC++º¯Êý ÐèÒªÍê³É Äö²½Ö裿
Çë°´²½Öè˵Ã÷¡£
C++½«º¯Êý·Åµ½ÄÄÀï ¹© JavaScript ²éѯ²¢µ÷ÓÃÄØ£¿
ËäÈ»Óд ......
hookkeeeÀÏʦ£¬javascriptÈçºÎ¿ØÖÆxml
ÈçºÎ¶ÁÈ¡cookies
hookkeeÔÚweb°æ
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.async = false;
xmlDoc.load("test"&q ......