Wrox Home  
Search P2P Archive for: Go

  Return to Index  

interdev_programming thread: onmouseover event and hyperlinks


Message #1 by "Hiro Shiratori" <hiro-shiratori@m...> on Tue, 22 Jan 2002 09:42:43 -0800
Hello, people!

In the following codes, I've placed the onmouseover events and 
hyperlinks,
but the hyperlinks don't work.
The onmouseover events work if I remove the hyperlinks.
The hyperlinks work if I remove the onmouseover events.
However, if I put them together, the hyperlinks don't work.
Does anyone know how to resolve this problem?

Best regards,
Hiro
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<p align=3D"center">&nbsp;</p>

<table border=3D"1" width=3D"100%"> 
  <tr> 
    <td width=3D"33%" align=3D"center">

      <font color=3D"#0000FF" face=3D"Arial"><a 
href=3D"/OperatingCompaniesJapan.htm">
      <P NAME=3DOperationsinJapan ID=3DOperationsinJapan>Operations in 
Japan
      </p>
    
      </a></font>
    
    <td width=3D"33%" align=3D"center">
  <font color=3D"#0000FF" face=3D"Arial"><a 
href=3D"/OperatingCompaniesUSA.htm">
  <P NAME=3DOperationsintheUSA ID=3DOperationsintheUSA>Operations in the 
U.S.A.
  </P>

    <td width=3D"33%" align=3D"center">
     <font color=3D"#0000FF" face=3D"Arial"><a 
href=3D"/OperatingCompaniesPhilippines.htm">
  <P NAME=3DOperationsinPhilippines 
ID=3DOperationsinPhilippines>Operations in Philippines
  </P>
  </tr>      
</table>      

<SCRIPT LANGUAGE=3DVBScript>
<!--

Dim strHeader
Dim strDetail

Sub OperationsinJapan_onmouseover
   '
   strHeader=3D"<B>Operations in Japan</B><BR>"
   strDetail=3D"<I>This site is in Japanese.</I>"
   '
   window.OperationsinJapan.innerHTML=3DstrHeader & strDetail
   window.event.cancelBubble=3Dtrue
   '
End Sub

Sub OperationsintheUSA_onmouseover
   '
   strHeader=3D"<B>Operations in the U.S.A.</B><BR>"
   strDetail=3D"<I>This site is in English.</I>"
   '
   window.OperationsintheUSA.innerHTML=3DstrHeader & strDetail
   window.event.cancelBubble=3Dtrue
   '
End Sub

Sub OperationsinPhilippines_onmouseover
   '
   strHeader=3D"<B>Operations in Philippines</B><BR>"
   strDetail=3D"<I>This site is in English.</I>"
   '
   window.OperationsinPhilippines.innerHTML=3DstrHeader & strDetail
   window.event.cancelBubble=3Dtrue
   '
End Sub

Sub document_onmouseover
   '
   if window.event.srcElement.id<>"OperationsinJapan" then
      window.OperationsinJapan.innerHTML=3D"Operations in Japan"
   end if   
   '
   if window.event.srcElement.id<>"OperationsintheUSA" then
      window.OperationsintheUSA.innerHTML=3D"Operations in the U.S.A."
   end if   
   '
   if window.event.srcElement.id<>"OperationsinPhilippines" then
      window.OperationsinPhilippines.innerHTML=3D"Operations in 
Philippines"
   end if   
   '
End Sub
-->
</SCRIPT>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



  Return to Index