• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

how to click on onmouseover in website using vba

jagu143

New Member
hi,

how to click on onmouseover in web page and selct list.

the html coding is
To click on app
<span onmouseover="javascript:if (typeof ShowActions == 'function') { ShowActions(event, '5081754','1878805','3,8,9,12,17,30,52,81,88,89,91,92,96,104','2','0271060766'); }" onmouseout="javascript:if (typeof ActionMenuPopup == 'object') { ActionMenuPopup.style.visibility='hidden'; window.status = ''; }">


<img src="/Public/Images/iconApp.gif" complete="complete"/>

To click on acces document
<a id="ctlPipelineGrid_ctlPipelineActionMenu_pipelineAction96" style="text-decoration: none;" onmouseover="this.style.fontWeight="bold";" onmouseout="this.style.fontWeight="normal";" href="javascript:__doPostBack('ctlPipelineGrid$ctlPipelineActionMenu'

regards,
jagu143
 
hi SirJB7

the websit having image (iconApp.gif) and when we keep mouse in that it showsthe list.
eg: APP(iconApp.gif)- options list

i need to selct option from list(
<a id="ctlPipelineGrid_ctlPipelineActionMenu_pipelineAction96" style="text-decoration: none;" onmouseover="this.style.fontWeight="bold";" onmouseout="this.style.fontWeight="normal";" href="javascript:__doPostBack('ctlPipelineGrid$ctlPipelineActionMenu','96')">
)

regards,

jagu143
 
Hi, jagu143!
Maybe I didn't make myself as clear as intended.
a) Browsed URL?
b) Selected options and clicks done to get to the object which would handle hovering.
Regards!
 
hi SirJB7 thank you for your response :)

i am new VBA and javascript. and the browsed URL is confidential.

B. the websit is having a img called APP(iconApp.gif)
* when we take the mouse pointer to that . it shows nearly 8 list options.
* i need to selcet on of the option in that. using vba.
* the source code is below for the image
<span onmouseover="javascript:if (typeof ShowActions == 'function') { ShowActions(event, '5081754','1878805','3,8,9,12,17,30,52,81,88,89,91,92,96,104','2','0271060766'); }" onmouseout="javascript:if (typeof ActionMenuPopup == 'object') { ActionMenuPopup.style.visibility='hidden'; window.status = ''; }">
<img src="/Public/Images/iconApp.gif" complete="complete"/>

*the source code for the option is
<a id="ctlPipelineGrid_ctlPipelineActionMenu_pipelineAction96" style="text-decoration: none;" onmouseover="this.style.fontWeight="bold";" onmouseout="this.style.fontWeight="normal";" href="javascript:__doPostBack('ctlPipelineGrid$ctlPipelineActionMenu'

regards,
jagu143
 
Hi, jagu143!
I understand the confidentiality of the URL but without an exact case to replicate and test I'm afraid I'm not able of further help.
But IMHO if you're new to VBA and JavaScript you'd better forget about this, piloting IE or object browser it's yet a task for people with certain skills, and if you add running or interacting with JS then the threshold is raised even more.
Regards!
 
hi sirjb7

i found the code for the above but have some issue.

For Each lnk In ie.document.frames("Content").document.getelementsbytagname("a")
If lnk.innertext = "Access Documents" Then
lnk.Click
Exit For
End If
Next

the code will give result only when i place the courser on the img.

else it gives an error
 
Back
Top