100分求助,一个浮动导航栏 用js的怎么样?固定在顶部的那种,和ie浏览器类似!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这是完整地浮动窗口利用层地浮动只要把里面地东东改为下拉菜单就可以了,一些参数自己重设一下<div id="KBStatic" style="position: absolute; left: 50; top: 0; width: 400; height: 45; z-index: 25"><embed src='Mp3/1207_2002920202.mp3' width=400 height=45 autostart=true loop=true> </div><script language=JavaScript>function KB_keepItInIE(theName,theWantTop,theWantLeft){theRealTop=parseInt(document.body.scrollTop)theTrueTop=theWantTop+theRealTopdocument.all[theName].style.top=theTrueToptheRealLeft=parseInt(document.body.scrollLeft)theTrueLeft=theWantLeft+theRealLeftdocument.all[theName].style.left=theTrueLeft}function KB_keepItInNN(theName,theWantX,theWantY){theRealLay=document.layers[theName]theBadX=self.pageYOffsettheBadY=self.pageXOffsettheRealX=theBadX+theWantXtheRealY=theBadY+theWantYtheRealLay.moveTo(theRealY,theRealX)}IE4=(document.all)?1:0NN4=(document.layers)?1:0if (IE4)setInterval('KB_keepItInIE("KBStatic",0,50)',1)if (NN4)setInterval('KB_keepItInNN("KBStatic",0,50)',1)</script> 这个里面是一个real播放器,我怎么实现关闭层的功能? 在层上加个按钮:激发一个事件,把层隐藏(就实现关闭功能啦)display:none 当然可以了...下面给出隐藏的.显示是同理可得只要把display显示方式改一下即可<div id="KBStatic" style="position: absolute; left: 50; top: 0; width: 400; height: 45; z-index: 25;"><embed src='Mp3/1207_2002920202.mp3' width=400 height=45 autostart=true loop=true> <a href="#" onclick="javascript:self.KBStatic.style.display='none'">关闭</a></div> 如何在js中删除img标签 请教高手!关于使用DOM改变文档颜色。 关于Ext.data.Store的小问题 RadioButtonList的JS问题 在servlet中写javaScript的alert语句不好使!!!急急急!!!!在线等待.... 应该算是蛮简单的问题,快来看看,50分 小鱼请教大虾一个问题 还请帮忙 如何实现F11的功能? confirm的语法忘了,请提示,谢谢 周末加班跪求答案 我有一个js做的菜单程序,点击后我想出现一个新窗口,大侠赐教!!源码如下。 菜鸟问题:这段代码是javascript吗?我写了language=javascript就不能运行!不是是什么?
利用层地浮动
只要把里面地东东改为下拉菜单就可以了,一些参数自己重设一下<div id="KBStatic" style="position: absolute; left: 50; top: 0; width: 400; height: 45; z-index: 25">
<embed src='Mp3/1207_2002920202.mp3' width=400 height=45 autostart=true loop=true> </div>
<script language=JavaScript>
function KB_keepItInIE(theName,theWantTop,theWantLeft)
{
theRealTop=parseInt(document.body.scrollTop)
theTrueTop=theWantTop+theRealTop
document.all[theName].style.top=theTrueTop
theRealLeft=parseInt(document.body.scrollLeft)
theTrueLeft=theWantLeft+theRealLeft
document.all[theName].style.left=theTrueLeft
}
function KB_keepItInNN(theName,theWantX,theWantY)
{
theRealLay=document.layers[theName]
theBadX=self.pageYOffset
theBadY=self.pageXOffset
theRealX=theBadX+theWantX
theRealY=theBadY+theWantY
theRealLay.moveTo(theRealY,theRealX)
}
IE4=(document.all)?1:0
NN4=(document.layers)?1:0
if (IE4)
setInterval('KB_keepItInIE("KBStatic",0,50)',1)
if (NN4)
setInterval('KB_keepItInNN("KBStatic",0,50)',1)
</script>
display:none
只要把display显示方式改一下即可
<div id="KBStatic" style="position: absolute; left: 50; top: 0; width: 400; height: 45; z-index: 25;">
<embed src='Mp3/1207_2002920202.mp3' width=400 height=45 autostart=true loop=true> <a href="#" onclick="javascript:self.KBStatic.style.display='none'">关闭</a></div>