Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Looking at the incomplete example code it's really hard to determine what's going on, so please either update your question with complete code, or better - upload a <a href="http://jsfiddle.net/" rel="nofollow">JSFiddle</a> to serve us as an example and we can directly update it with necessary changes. So far (based on what I said before) it looks like you're getting a <code>flickering</code> effect due to <strong>typos in your example code</strong>:</p> <pre><code>? nav.css({ 'position': 'fixed', 'z-index': z_index, top: y, left: x, }) : nav.css({ 'position': 'static', }); </code></pre> <p>where you're not terminating the array of CSS properties and values that needs to be applied (you're ending it with a comma <code>,</code>), and you've not enclosed some CSS properties in a single quote <code>'</code>. <strong>Your code should be</strong>:</p> <pre><code>? nav.css({ 'position': 'fixed', 'z-index': z_index, 'top': y, 'left': x }) : nav.css({ 'position': 'static' }); </code></pre> <p>That's of course provided you've already set variables <code>z_index</code>, <code>y</code> and <code>x</code> beforehand. </p> <p><strong>EDIT &amp; DISCLAIMER:</strong> I've created a new <a href="http://jsfiddle.net/q3XSg/" rel="nofollow">JSFiddle</a> with the original demo code. The demo you referred to is copyrighted, so please attribute your gratitude to the original author and not me, if that helps you out. The code I've posted <a href="http://jsfiddle.net/q3XSg/" rel="nofollow">JSFiddle</a> with is available as a free download, though. So I guess it's OK to reuse it for demo purposes as well. Change that code to comply with your requirements and update it to new version each step you update it. It will help you track where you're doing something wrong (if at all). ;)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload