Writing to HTML with inline javascript in Wordpress
<p>I'm trying to display an email address mailto link on a page from an array of email addresses. </p>

<pre><code>&lt;script type="text/javascript"&gt;
var arr = ["x@temple.edu", "y@temple.edu", "z@temple.edu"]; //my test array of email addresses
var which = Math.floor(Math.random() * 2); // stores a random #, 0-2
document.write('&lt;a href="mailto:' + arr[which] + '?Subject=Advertising"&gt;Click here to email us&lt;/a&gt;'); // writes the mailto link
&lt;/script&gt;
</code></pre>

<p>This code <a href="http://jsfiddle.net/HgL9W/" rel="nofollow">seems to work</a>, but it doesn't display when I add it to my Wordpress page. I'm using WP 3.5 along with <a href="http://wordpress.org/extend/plugins/inline-javascript/other_notes/" rel="nofollow">a plugin</a> called inline-javascript that seems to fill its purpose despite being really old, so I'm just not sure what the problem is. </p>

<p>It seems this should be really simple simple, but I've spent hours looking for an answer to no avail. </p>
