Jump to content

Is There a Library/Function For Locating The X,Y Coordinates of Links on an Page


SecureMind

Recommended Posts

I'm trying to parse an html page an output it into a list of links with there x,y corrdinates. I'm already using getLinks as described here: http://www.phpro.org/examples/Get-Links-With-DOM.html ... it works wonders, I trim the list and only return the Text Description of the link.

 

Does anyone know how I could go about this to grabe the X,Y's coordinates of these links? Any help would be appreciated, btw: I'm trying to keep this server side, I have a not so pretty client side alternative.

 

Thanks in advance for any help.

I would imagine this wouldn't be possible without using javascript. That and the X,Y's of the links will change from user to user as their screen resolution will be different. The ONLY thing I could suggest would be to grab the HTML and CSS using PHP and do some calculations based off of the two to figure out approx. where the links are.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.