English 中文(简体)
湿度和超链接
原标题:onmouseover and hyperlink hover

我有一小 links,在你接手后,就强调这一点。 我添加了<代码>onmouseover。 对四级和现在的超文本链接进行的联席活动在我接手时不再强调,而不管我对<代码>onmouseover的活动采取了什么行动。

CODE 职能:

function addPlus(elementId)
{
 if(typeof addPlus.backup ==  undefined )
  addPlus.backup = document.getElementById(elementId).innerHTML;
 if(full)
 {
  document.getElementById(elementId).innerHTML = plusCode + addPlus.backup;
  return backup;
 }
 else
  return snippet;
}

div 代码:

<div class="nav_bar" id="navbar1" onmouseover="addPlus( navbar1 )" onmouseout="removePlus( navbar1 )">

www.un.org/Depts/DGACM/index_spanish.htm I ve Trial return real;return Boolean (true);, and return new Boolean (true);, in an efforts to “return real” as Chad recommended. 他们都没有工作。 索里,我确实不了解需要做什么;我对贾瓦特说了。

http://www.ohchr.org。 简言之,我刚刚认识到,乍得意味着我回到了tag头。 因此,现在我有以下几类:<div category=“nav_bar” id=“navbar1” onmouseover=“add Plus( navbar1 );return real” onmouseout=“remove Plus( navbar1 )”>,但不幸的是,它仍然从事t工作。

最佳回答

如果你不希望打碎机,那么,在停用时,应当停止活动推进。 Try Plus onmouseover eventhandler for each supralink with Return false - <a onmouseover=“return false” ... - that should help.

问题回答

宣传你的活动需要从您的转手中恢复。

  1. This won t occur if you use CSS to underline your links instead of JavaScript
  2. You presumably have some rotten code that is explicitly setting an onmouseover handler in HTML or JavaScript to handle the link underline (instead of properly using addEventListener), and then you are overwriting this handler. It s hard to guess what might be wrong without more information. Supply a code example for more help.




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签