怎样把onmouseover的东西直接显示出来啊?在线等,马上结帖。 onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"上面是PHP网页里的一段代码。换句话说,onmouseover这个鼠标事件,可不可以取消,让菜单直接显示出来?谢谢各位高手! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 .........你的onmouseover干了件什么事情啊???就是单独的一个显示菜单的效果吗、?代码贴出来撒 站内信 不多说 <!--{if !$_GET['archiveid']}--> <a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" {if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')" {else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}"> <img src="{IMGDIR}/pn_post.png" alt="{lang send_posts}" /></a><!--{/if}-->这是完整的一段代码。实际上是discuz论坛的一个发帖按钮的代码鼠标滑过会有发帖下拉菜单。我现在想让它直接显示。不知道怎么弄,谢谢了! 你说的是什么意思。是不是显示onmouseover中的代码,还是说要直接把onmouseover的效果不要鼠标移上去就显示出来。 那你把在onmouseover里调用的东西在页面加载完了时调用 去掉<a>标签里面的onmouseover事件$(document).ready(function(){ $('newspecial').id = 'newspecialtmp'; $("#newspecial").attr('id', 'newspecial'); showMenu({'ctrlid':this.id});}); <!--{if !$_GET['archiveid']}--><a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}"><img src="{IMGDIR}/pn_post.png" alt="{lang send_posts}" /></a><!--{/if}-->改成下面这样吗?对JS一窍不通啊<!--{if !$_GET['archiveid']}--><a href="javascript:;" id="newspecial" $(document).ready(function(){ $('newspecial').id = 'newspecialtmp'; $("#newspecial").attr('id', 'newspecial'); showMenu({'ctrlid':this.id});});{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}"><img src="{IMGDIR}/pn_post.png" alt="{lang send_posts}" /></a><!--{/if}--> 去掉<a>标签里面的onmouseover事件在</html>标签下面加上<script type='text/javascript'> $(document).ready(function(){ $('newspecial').id = 'newspecialtmp'; $("#newspecial").attr('id', 'newspecial'); showMenu({'ctrlid':this.id}); });</script> 一个简单的javascript事件处理问题 如何使用JS 向Iframe的文本框中写入一个字符 jquery 加载框架 IE打印时,怎样才能让不弹出打印对话框 公司没有任务 很无聊只能自己学习点东西 无聊中散分!!!!!!! 为什么没抓到linkbutton的值 为什么ie状态栏一直显示正在下载图片XXXX amcharts+jsf,IE8加载问题 继续求救!!!在线等待高手看过来!!!(谢谢) 梅花雨 和 walkingpoison (walkingpoison)以及用过他们的“梅花雨日历控件”请进 extjs表格单击后传链接的值的问题,有网址看图. JS新手 求教各位大神!!!
<a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"
{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"
{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}">
<img src="{IMGDIR}/pn_post.png" alt="{lang send_posts}" /></a><!--{/if}-->这是完整的一段代码。实际上是discuz论坛的一个发帖按钮的代码
鼠标滑过会有发帖下拉菜单。我现在想让它直接显示。不知道怎么弄,谢谢了!
$(document).ready(function(){
$('newspecial').id = 'newspecialtmp';
$("#newspecial").attr('id', 'newspecial');
showMenu({'ctrlid':this.id});
});
<a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"
{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"
{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}">
<img src="{IMGDIR}/pn_post.png" alt="{lang send_posts}" /></a><!--{/if}-->改成下面这样吗?对JS一窍不通啊<!--{if !$_GET['archiveid']}-->
<a href="javascript:;" id="newspecial" $(document).ready(function(){
$('newspecial').id = 'newspecialtmp';
$("#newspecial").attr('id', 'newspecial');
showMenu({'ctrlid':this.id});
});
{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"
{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}">
<img src="{IMGDIR}/pn_post.png" alt="{lang send_posts}" /></a><!--{/if}-->
在</html>标签下面加上
<script type='text/javascript'>
$(document).ready(function(){
$('newspecial').id = 'newspecialtmp';
$("#newspecial").attr('id', 'newspecial');
showMenu({'ctrlid':this.id});
});
</script>