title: How to change link depending on div id?
body: <p>I'm using Jcink Forums - I can style divs based on the user group which can be used as a html variable (for IDs).</p>
  
  <p>How can I change the link based on the ID? </p>
  
  <p>I'm assuming this cannot be done via just css and html however I'm not well-versed in JS</p>
  
  <p>For Example (not the full code, just a really abridged version):</p>
  
  <p>Stylesheet:</p>
  
  <pre class="lang-css prettyprint-override"><code>#admin .avatar {background-image:url("admin.jpg");}
  #mod .avatar {background-image:url("mod.jpg");}
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id="&lt;!-- |g_id| --&gt;"&gt;
      &lt;a href="link changes based on div id"&gt;
          &lt;div class="avatar"&gt;&lt;/div&gt;
      &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>