一段javascript代码的意思

来源:百度知道 编辑:UC知道 时间:2024/05/17 06:36:06
这是在百度主页里的一段源代码,请问里面的几个函数的意思,越详细越好,谢谢!!!
<script language="javascript">
<!--
function h(obj,url){
obj.style.behavior='url(#default#homepage)';
obj.setHomePage(url);
}
if (top.location != self.location) {
top.location=self.location;
}
if (window.name == 'nw') { window.name = '';}
function ga(o,e){if (document.getElementById){a=o.id.substring(1); p = "";r = "";g = e.target;if (g)
{ t = g.id;f = g.parentNode;if (f) {p = f.id;h = f.parentNode;if (h) r = h.id;}} else{h = e.srcElement;f = h.parentNode;if (f) p = f.id;t = h.id;}if (t==a || p==a || r==a) return true;window.open(document.getElementById(a).href,'_blank')}}
if (top.location !== self.location) {
top.location=self.location;
}
function showPost() {
if (typeof(t)!= 'undefined') {
if (!t || t.length < 1) return;
document.getElementById('DivPost').innerH

function h(obj,url){
obj.style.behavior='url(#default#homepage)';
obj.setHomePage(url);
}
把url设为首页

if (top.location != self.location) {
top.location=self.location;
}
如果当前页面被放在某个frame里面,则脱去frame。

呵呵 楼上的~ 他的意思我明白了
他是想让别人给他讲整个代码的意思
哈哈 这谁能讲的起啊
找家教吧~~~~~

问哪几个?说清楚啊!