Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q35

irt.org | About | Feedback | 4664 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q35

Sent by
gianluca on Monday June 04, 2007 at 00:28:57

Worth:
Very worth reading

Length:
Too short

Technical:

Comments:
It's a good start for building a page that passes image coordinates (in pixels) to some ASP page linked to it.
In facts the page linked to image should be prepared to receive two parameters (x,y).
To make this sample work just turn the provided javascript code into a function and then call it with onClick event when the user presses the mopuse button on the image, like in the code bekow here:
<script language="JavaScript">
function getxy() {
str = location.search;
if (str == "")
document.write("<p>No coordinates specified.");
else {
commaloc = str.indexOf(",");
document.write("<p>The x value is " + str.substring(1, commaloc));
document.write("<p>The y value is " + str.substring(commaloc+1, str.length));
}}
</script>
<a href="#"><img src="/images/GNSoft_computer_works.gif" border="0" ismap onClick:getxy();></a>








Other feedback on 'irt.org FAQ Knowledge Base Q35' - show all


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.