lyric0n
Technical User
- Dec 28, 2005
- 74
Hello,
What I need to do is called location.host, then based on that, run through a series of If statements and ultimately turn up a variable based on location.host. With that variable, say X, I need that value to be in a string (not sure what it is called exactly), that looks like this:
<script src=X type="text/javascript"></script>
And whenever my application calls this src=, I need it to return the value of X that was determined in my If statements. Is this possible or is there possible another way of doing this?
Thanks,
Chris
What I need to do is called location.host, then based on that, run through a series of If statements and ultimately turn up a variable based on location.host. With that variable, say X, I need that value to be in a string (not sure what it is called exactly), that looks like this:
<script src=X type="text/javascript"></script>
And whenever my application calls this src=, I need it to return the value of X that was determined in my If statements. Is this possible or is there possible another way of doing this?
Thanks,
Chris