ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¶}±Ò web link ,¥Î OnMouseDown ©Î¨ä¥L¤èªk

[µo°Ý] ¶}±Ò web link ,¥Î OnMouseDown ©Î¨ä¥L¤èªk

½Ð¦U¦ì°ª¤â¤j¤jÀ°¦£¦p¤U:

¥Î VBA¶}±Ò¤@ºô­¶«áµM«á­nÂIÀ»¨ä ¤¤¤@­Ólink¡A¥ý§Q¥Îgetelementsbytagname("a")¨ú±o©Ò­nªº¦ì¸m«á¡A¥Î. click¶}±Ò«o¨S¦³°Ê§@(¥¿±`ªº¸Ü³£·|¶}±Ò)¡AÀˬdHTML codeµo²{¨ä<a> ªº href code¸ò¥¿±`ªº¤£¤Ó¤@¼Ë¦p¤U¡A¤]¦h¤@­Ó onmousedown ªºevent:

<a onmousedown="this.href=linkTo('/e/«á­±¤£¤è«K¦C¥X')" href="about:" target="_blank">          ---©êºp¤£¤è«K¶K¥X­ì©lcode

google¤@¤U¡A¦³µo²{Ãþ¦ü°ÝÃD»P¸Ñªk:
-------------------------------------------------------------------
°ÝÃD:
HTML Code:
<table id="table2" onmousedown="PressIt(&quot;Section2&quot;)" class="contextarea" border="0" cellspacing="0" cellpadding="0" style="height: 95px; width: 100%">

At first I thought this might be handled by using InvokeMember("click"), but that has no effect. If I try InvokeMember("onmousedown") I receive a javascript error on the page. Can anyone tell me if/how one invokes the onmousedown property of an object inside of the WebBrowser control?

As an FYI: I'm designing in 2008 and targeting .Net 2.0

¸Ñªk:
WebBrowser1.Document.All("table2").RaiseEvent("OnMouseDown")
--------------------------------------------------------------------------------

¦ü¥G¬O§Q¥ÎIJ°Ê " OnMouseDown" event¨Ó¶}±Ò¡C

¤£¤Ó²M·¡RaiseEvent»yªk¸Ó«ç»ò¼g¡A¸Õ¤F¥H¤Ucode³£¨S¥Î

      Set wall = ifm.getElementsByTagName("a")      
      For Each w In wall     
        w.RaiseEvent("OnMouseDown")    ---¨S°Ê§@
       'w.OnMouseDown                            ---¨S°Ê§@
       'w.OnMouseDown                            ---¨S°Ê§@
      Next

½Ð°Ý¥ÎVBA¸Ó¦p¦óIJ°ÊOnMouseDown event ©Î¦³¨ä¥L¤è¦¡¥i¥H¶}±Ò¥H¤Ulink
<a onmousedown="this.href=linkTo('/e/«á­±¤£¤è«K¦C¥X')" href="about:" target="_blank">          ---©êºp¤£¤è«K¶K¥X­ì©lcode

°Ç°Çªø¡A·PÁÂÀ°¦£~~

¦Û¤w±À¤@¤U...
¬O¤£¬O¦³¼gªº¤£²M·¡ªº¦a¤è¡A»Ý­n¦A»¡©úªº...
¦A½Ð¦U¦ì°ª¤â¤j¤jÀ°¦£¤@¤U~~

TOP

        ÀR«ä¦Û¦b : ¨Ã«D¦³¿ú¾{¬O§Ö¼Ö¡A°Ý¤ßµL·\¤ß³Ì¦w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD