My image is embedded in a table cell. I need to know how far it is from edge of window.
offsetLeft does not work for this. Neither does style.left.
hilRunr
0
Newbie Poster
Recommended Answers
Jump to PostHere is a simple example... seems to work. show your relevant code..maybe you have some other issue.
<!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script> $(document).ready(function(){ var i = $( "#img1" …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.