Jump to content

How to $oElement.fireEvent("onmouseover") on tool tip elements in IE


Go to solution Solved by Herb191,

Recommended Posts

This website has an image on it that displays different info in a tool tip depending on where you mouse.

I want to get all the tool tip data for all the areas of the the image.

This tag has the tool tip info I want in it after it has moused over an area of the image but not all the data.

<div class="viewportPopup"

I believe that that I can use $oElement.fireEvent("onmouseover") on each element that will display a tool tip and then get the data from the above tag.

My problem is I don't know how to get the right elements to use the .fireEvent("onmouseover") on.

Any help in the right direction would be appreciated.

Link to comment
Share on other sites

Danp2 where did you find this url ?   :o

;#cs
$sTxt = BinaryToString(InetRead("http://www.espnfc.com/gamepackage10/data/gamecast?gameId=367471&langId=0&snap=0"))

$aItems = StringRegExp($sTxt, 'videoId=.*?<result>([^]]+)', 3)
$res = ""
For $i = 0 to UBound($aItems)-1
   $res &= StringRegExpReplace($aItems[$i], '<.*?>', " ") & @crlf
Next
Msgbox(0,"", $res)
;#ce

#cs
$sTxt = BinaryToString(InetRead("http://www.espnfc.com/gamepackage10/data/timeline?gameId=367471&langId=0&snap=0"))

$aItems = StringRegExp($sTxt, '<result>([^]]+)', 3)
$res = ""
For $i = 0 to UBound($aItems)-1
   $res &= StringRegExpReplace($aItems[$i], '<.*?>', " ") & @crlf
Next
Msgbox(0,"", $res)
#ce

:)

Edit

found it in browser cache...

Edited by mikell
Link to comment
Share on other sites

  • Solution

Looks like the easiest thing would be to pull the raw data from here and the extract the desired information from the XML data.

Thank you. Like Danp2 I could not find this.

Danp2 where did you find this url ?   :o

;#cs
$sTxt = BinaryToString(InetRead("http://www.espnfc.com/gamepackage10/data/gamecast?gameId=367471&langId=0&snap=0"))

$aItems = StringRegExp($sTxt, 'videoId=.*?<result>([^]]+)', 3)
$res = ""
For $i = 0 to UBound($aItems)-1
   $res &= StringRegExpReplace($aItems[$i], '<.*?>', " ") & @crlf
Next
Msgbox(0,"", $res)
;#ce

#cs
$sTxt = BinaryToString(InetRead("http://www.espnfc.com/gamepackage10/data/timeline?gameId=367471&langId=0&snap=0"))

$aItems = StringRegExp($sTxt, '<result>([^]]+)', 3)
$res = ""
For $i = 0 to UBound($aItems)-1
   $res &= StringRegExpReplace($aItems[$i], '<.*?>', " ") & @crlf
Next
Msgbox(0,"", $res)
#ce

:)

Edit

found it in browser cache...

Thank you just what I needed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...