超酷工具条,太长了分三次发(三)

luket 2002-03-31 07:54:18
function dockBarOnMouseDown() {
if(window.event.srcElement.id == "handle") {
ty = (window.event.clientY - toolbar.style.pixelTop);
tx = (window.event.clientX - toolbar.style.pixelLeft);

dragging = true;

window.event.returnValue = false;
window.event.cancelBubble = true;
}
else {
dragging = false;
}
}

function dockBarOnMouseUp() {
dragging = false;
}

function dockBarOnMouseMove() {
if(dragging) {
if((window.event.clientY) <= snapVertSize
&& toolbarPos != "left" && toolbarPos != "right") {
toolbarPos = "top";
fixSize();
}
else if (window.event.clientY >= document.body.clientHeight - snapVertSize
&& toolbarPos != "left" && toolbarPos != "right") {

toolbarPos="bottom";
fixSize();
}
else if (window.event.clientX <= snapHorizSize
&& toolbarPos != "top" && toolbarPos != "bottom") {

toolbarPos = "left";
fixSize();
}
else if (window.event.clientX >= document.body.clientWidth - snapHorizSize
&& toolbarPos != "top" && toolbarPos != "bottom") {

toolbarPos = "right";
fixSize();
}
else {
toolbar.style.left = window.event.clientX;
toolbar.style.top = window.event.clientY - ty;

toolbarPos = "float";
fixSize();
}

window.event.returnValue = false;
window.event.cancelBubble = true;
}
}

</SCRIPT>

<SCRIPT language=JavaScript>
<!--
function writelist(imgtxt,linktxt,titletxt)
{
var str1="";
var str2="";
var str3="";
str1="<SPAN class=coolButton onclick=\"window.location='Noname1.html'\" title=链接标题>"
document.write("<SPAN class=coolButton onclick=\"window.location='Noname1.html'\" title=链接标题>");
document.write("<IMG align=absMiddle src=\"addclass.gif\" >");
document.write("</SPAN>");
}
//-->
</SCRIPT>

<DIV onselectstart="return false" id=toolbar><SPAN id=handle
title="Drag to move the container"></SPAN>
<SCRIPT>
document.write("<SPAN class=coolButton onclick=\"window.location.href='http://bbs.aspsky.net/'\" title='添加'>");
document.write("<IMG align=absMiddle src='http://bbs.aspsky.net/pic/ifolder.gif'>");
document.write("</SPAN>");
</SCRIPT>

<SCRIPT>
document.write("<SPAN class=coolButton onclick=\"window.location.href='http://bbs.aspsky.net/'\" title='修改'>");
document.write("<IMG align=absMiddle src='http://bbs.aspsky.net/pic/ifolder.gif'>");
document.write("</SPAN>");
</SCRIPT>

<SCRIPT>
document.write("<SPAN class=coolButton onclick=\"window.location.href='http://bbs.aspsky.net/'\" title='删除'>");
document.write("<IMG align=absMiddle src='http://bbs.aspsky.net/pic/ifolder.gif'>");
document.write("</SPAN>");
</SCRIPT>

<SCRIPT>
document.write("<SPAN class=coolButton onclick=\"window.location.href='http://bbs.aspsky.net/'\" title='管理'>");
document.write("<IMG align=absMiddle src='http://bbs.aspsky.net/pic/ifolder.gif'>");
document.write("</SPAN>");
</SCRIPT>

<SCRIPT>
document.write("<SPAN class=coolButton onclick=\"window.location='http://bbs.aspsky.net/'\" title='转发邮件'>");
document.write("<IMG align=absMiddle src='http://bbs.aspsky.net/pic/ifolder.gif'>");
document.write("</SPAN>");
</SCRIPT>
</DIV>
<DIV id=contentDiv>
<P> </P>
<P> </P>
<P> </P>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD>
<DIV align=center><B><FONT color=#cc0033
size=+5>怎么样,看到你的浏览器多了一条超酷工具条吗?</FONT></B></DIV></TD></TR></TBODY></TABLE>
<P> </P></DIV></BODY></HTML>
...全文
25 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
emu 2002-06-14
  • 打赏
  • 举报
回复
没想通,要这么复杂吗?
luket 2002-04-06
  • 打赏
  • 举报
回复
再仔细看看
blues-star 2002-04-05
  • 打赏
  • 举报
回复
天啊,只需要用frame和CSS就可以实现的东西,你写了这么多的代码,我晕呼,最多200行

87,996

社区成员

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

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