title: A JavaScript problem by a beginner
body: <p>Good day, I've been searching Google on a lot of issues I have and I always find the answers here and I'm hoping that someone would give time answering this stupid question. I'm a beginner in JavaScript and I happened to be creating a personal site that uses Flexpaper as the viewer for some of my files, and I'm just wondrin' how I can change the URL based on href that the users will click on. Here's the Flexpaper snippet:</p>
  
  <pre><code>        var swfVersionStr = "10.0.0";
          var xiSwfUrlStr = "playerProductInstall.swf";
          var file = "1984.swf";
          var flashvars = { 
                SwfFile : escape(file),
                Parameters here
                };
  
           var params = {
  
              }
          Parameters and Attributes here
          swfobject.embedSWF(
              "FlexPaperViewer.swf", "flashContent", 
              "700", "550",
              swfVersionStr, xiSwfUrlStr, 
              flashvars, params, attributes);
          swfobject.createCSS("#flashContent", "display:block;text-align:left;");`
  </code></pre>
  
  <p>I'm planning to put the viewer on iframe or just on the side, and then the links on the other side or frame.</p>
  
  <pre><code>&lt;a href="books/google search APIs.swf"&gt;Google search APIs&lt;/a&gt;
  </code></pre>
  
  <p>It should change the variable file on the code. I'm hoping you could help me out.</p>