Forum Moderators: open
My goal is to embed a flash object via an javascript page like so:
<script type="text/javascript" src="http://...counter.js?account=12345"></script>
Here is my script:
On "http://...origin.htm":
<script type="text/javascript" src="http://...counter.js?account=12345"></script>
On "counter.js":
mainURL = window.location; /* returns "http://...origin.htm" and not "http://...counter.js?account=12345"
I hope you can help.
Thanks!
Example #1 - Call Javascript, set variable, call function
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-123456-1";
urchinTracker();
</script>
Example #2 - Set variables, call Javascript
<script type="text/javascript"><!--
google_ad_client = "pub-123456789";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Nevertheless, I have seen many tools being embedded like this:
<!--************CODE GEOCOUNTER************-->
<script type="text/javascript" src="http://geovisit.com:82/private/counter.js?id=123456myblog"></script>
<!--************END CODE GEOCOUNTER************-->