OZONE Asylum
Forums
DHTML/Javascript
points in polygon test
This page's ID:
31745
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
After a brief look at your script, everything looks ok except for the line j = i++; This modifies i, which might affect the loop behavior and cause it to skip every other line segment. I think you probably want j = (i + 1) % xp.length; [url=http://www.slimeland.com/] [img]http://www.slimeland.com/misc/ozonemetalslimesig.gif[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »