请教大家!!!!!!!!

无病呻吟2 2004-11-21 11:44:44
function showPopupText(){
var o=event.srcElement;
MouseX=event.x;
MouseY=event.y;
if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};//////////o.alt是什么意思呀??????
if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};o.dypop什么意思呀??
if(o.dypop!=sPop) {
sPop=o.dypop;
clearTimeout(curShow);
clearTimeout(tFadeOut);
clearTimeout(tFadeIn);
clearTimeout(tFadeWaiting);
if(sPop==null || sPop=="") {
dypopLayer.innerHTML="";
dypopLayer.style.filter="Alpha()";
dypopLayer.filters.Alpha.opacity=0;
}
else {
if(o.dyclass!=null) popStyle=o.dyclass
else popStyle="cPopText";
curShow=setTimeout("showIt()",tPopWait);
}

}
}

function showIt(){
dypopLayer.className=popStyle;
dypopLayer.innerHTML=sPop;
popWidth=dypopLayer.clientWidth;
popHeight=dypopLayer.clientHeight;
if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
else popLeftAdjust=0;
if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
else popTopAdjust=0;
dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
dypopLayer.style.filter="Alpha(Opacity=0)";
fadeOut();
}

function fadeOut(){
if(dypopLayer.filters.Alpha.opacity<popOpacity) {
dypopLayer.filters.Alpha.opacity+=showPopStep;
tFadeOut=setTimeout("fadeOut()",1);
}
else {
dypopLayer.filters.Alpha.opacity=popOpacity;
tFadeWaiting=setTimeout("fadeIn()",tPopShow);
}
}

function fadeIn(){
if(dypopLayer.filters.Alpha.opacity>0) {
dypopLayer.filters.Alpha.opacity-=1;
tFadeIn=setTimeout("fadeIn()",1);
}
}
document.onmouseover=showPopupText;

function CheckAll(form) {
for (var i=0;i<form.elements.length;i++) {
var e = form.elements[i];
if (e.name != 'chkall') e.checked = form.chkall.checked;
}
}
上面的一些两个问好解释以下哈 谢谢
还有里面的好多东西都不知道什么含义,如dypopLayer.filters.Alpha.opacity,o.title等等
我是新人 ,这些东西 我在学习看JAVACRIPT的有关资料时候怎么都没有见到呢?
要怎么样才能得到这方面的知识呢?请大家帮我推荐以下资料.
我发现新人的可用分确实是不够,应该我有很多问题要问的呀,有没有朋友给点可用分呀???
...全文
92 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
无病呻吟2 2004-11-23
  • 打赏
  • 举报
回复
我的可用分不够,有没有人可以提供点呀
怎么快速增加可用分呢?
littleboys 2004-11-22
  • 打赏
  • 举报
回复
<BODY>
<A HREF="test.html" title="test" alt="55555555">testall</A>
</BODY>
</HTML>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showPopupText(){
var o=event.srcElement;
MouseX=event.x;
MouseY=event.y;
if(o.alt!=null && o.alt!=""){o.dypop2=o.alt;o.alt=""};//////////o.alt是什么意思呀??????
if(o.title!=null && o.title!=""){o.dypop2=o.title;o.title=""};//o.dypop什么意思呀??
}
document.onmouseover=showPopupText;

//-->
</SCRIPT>


o.alt o.title 相当于a 里面的 alt ttitle
o.dypop 应该是自定义的属性 你可以更改别的名字

dypopLayer.filters.Alpha.opacity
dypopLayer 应该是一个对象, 参考OBJECT 对象的属性
ufrshchenw 2004-11-22
  • 打赏
  • 举报
回复
up
梅雪香 2004-11-21
  • 打赏
  • 举报
回复
alt的功能相当于title,就是鼠标指向图片的时候显示的信息
dypop应该是一个自定义的属性吧
filters是CSS中的滤镜,查一下CSS文档就知道了
opacity Attribute | Opacity Property Internet Development Index

--------------------------------------------------------------------------------

Sets or retrieves the opacity level at the beginning of the gradient applied with the Alpha filter.

Syntax

HTML { filter:progid:DXImageTransform.Microsoft.Alpha(
opacity = iOpacity ... ) ... }
Scripting object.filters.item(
"DXImageTransform.Microsoft.Alpha").Opacity [ = iOpacity ]

Possible Values

iOpacity Integer that specifies or receives the opacity level. The value can range from 0 (fully transparent) to 100 (fully opaque). 0 Default. Transparent.
100 Opaque.


The property is read/write. The property has a default value of 0.

87,901

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧