Hi,
I'm attempting to setup a bit of javascript to randomly display one of a set of websurveyor's polls I have configured.
The issue I'm having is that I don't know how to get the random number into the invocation of the script.
Here's what I mean, the normal way to display a single websurveyor poll say poll_id = 7448 is:
<script type="text/javascript" src=" language="javascript"></script>
I would like to substitute 7448 with a number randomly selected from the set of poll_ids I have created.
I know how to get that number, I just don't know how to insert it into the "<script..." statement, or of any other way to invoke the src file.
Any help would be greatly appreciated.
I'm attempting to setup a bit of javascript to randomly display one of a set of websurveyor's polls I have configured.
The issue I'm having is that I don't know how to get the random number into the invocation of the script.
Here's what I mean, the normal way to display a single websurveyor poll say poll_id = 7448 is:
<script type="text/javascript" src=" language="javascript"></script>
I would like to substitute 7448 with a number randomly selected from the set of poll_ids I have created.
I know how to get that number, I just don't know how to insert it into the "<script..." statement, or of any other way to invoke the src file.
Any help would be greatly appreciated.