Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[疑难] 谁能修改下这段代码。。。右上悬浮代码

[复制链接]
lovekisser 发表于 2009-8-4 11:14:20 | 显示全部楼层 |阅读模式
<script>
var menuskin=1
var display_url=0
function showmenuie5(){
var rightedge=document.body.clientWidth-event.clientX
var bottomedge=document.body.clientHeight-event.clientY
if (rightedge<ie5menu.offsetWidth)
ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth
else
ie5menu.style.left=document.body.scrollLeft+event.clientX
if (bottomedge<ie5menu.offsetHeight)
ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight
else
ie5menu.style.top=document.body.scrollTop+event.clientY

ie5menu.style.visibility="visible"
return false
}

function hidemenuie5(){
ie5menu.style.visibility="hidden"
}

function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="#EFE7DE" //鼠标移动条
event.srcElement.style.color="#737054" //鼠标移动字体
if (display_url==1)
window.status=event.srcElement.url
}
}

function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="black"
window.status=''
}
}

function jumptoie5(){
if (event.srcElement.className=="menuitems"){
if (event.srcElement.getAttribute("target")!=null)
window.open(event.srcElement.url,event.srcElement.getAttribute("target"))
else
window.location=event.srcElement.url
}
}
</script>


这个代码是让文字显示在网页右上方,但是有动态效果,我想把这个代码改成右侧的一个导航菜单!
位置不变,永远在右上角,这个怎样实现,随来帮我改下
回复

使用道具 举报

 楼主| lovekisser 发表于 2009-8-4 11:15:18 | 显示全部楼层
哦,补充一下,一定要这个代码改,其他的实现方式不要
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-15 00:35 , Processed in 0.083065 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表