Thread
:
Auto Insert URL Tracking Via JavaScript...
View Single Post
#
2
(
permalink
)
04-10-06, 05:12 PM
TwoD
Community VIP
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
You've basically written the code yourself already, here's how it could look translated to JS.
Code:
...
I use a Regular Expression to avoid nested loops.
More about those here:
http://www.evolt.org/article/Regular...ript/17/36435/
__________________
[
W3Schools - learn all about the standards.
] [
QuirksMode - Browser Quirks
] [
MS's Online Reference Docs
] [
DOM in Gecko.
]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember
Code Wrappers
and
[SOLVED] Marking
, this helps everyone.
Last edited by TwoD; 04-14-06 at
05:34 AM
. Reason: Removed bad code to avoid confusion.
TwoD
View Public Profile
Find all posts by TwoD