jquery - Cannot read property 'left' of undefined -


Chrome is throwing error, trying to figure out "UnkitType Error: Undefined" left "property not Can read "

Although # Explorer does great work, but #xperienceSnav does not work. Am I forgetting something? Click (function () {$ ('body'). Animate ({scrollLeft: $ ("# explore") offset () .left-15}, 1000, function () {$ (this) .Parent (). AddClass ('Active');}); Returned;}); $ ('.navi li # experiencenav a'). Click (function () {$ ('body'). Animate ({scrollLeft: $ ("#experience") offset (). Left-15}, 1200, function () {$ (this) .Parent (). AddClass ('Active');}); Returned;});

  & lt; Div id = "experience" & gt; & Lt; Div class = "video" & gt; & Lt; Iframe id = "Youtube" width = "650" height = "366" src = "http://www.youtube.com/embed/XS6S8qSMvBE?wmode=opaque" frameborder = "0" wmode = "transparent" acceptable screen ALLOWTRANSPARENCY = "True" & gt; & Lt; / Iframe & gt; & Lt; Button class = "prev" & gt; & Amp; Nbsp; & Lt; / Button & gt; & Lt; Button class = "next" & gt; & Amp; Nbsp; & Lt; / Button & gt; & Lt; Div class = "video control" & gt; & Lt; Ul class = "Vid" & gt; & Lt; Li id = "01" class = "Video1" onClick = "_ gaq.push (['_ trackEvent', 'pulse', 'onclick', 'english']);" & Gt; & Amp; Nbsp; & Lt; / Li & gt; & Lt; Li id = "02" class = "Video2" onClick = "_ gaq.push (['_ trackEvent', 'Performance', 'onClick', 'ENGLISH']); & gt; & amp; nbsp; & Lt; / li & gt; & lt; li id ​​= "03" class = "Video3" onClick = "_ gaq.push (['_ trackEvent', 'Parking Assist', 'Onclick', 'English'] ); "& Gt; & Amp; & nbsp; & lt; / li & gt; & lt; li id ​​=" 04 "class =" Video4 "onClick =" _ gaq.push (['_ trackEvent', ' Flow, Onclick, English)] & gt; & gt; & lt; / li> Gaq.push (['_ trackEvent', 'spike', 'onclick', 'english']); & gt; & amp; nbsp; & lt; / li & gt; & lt; li id ​​= " 06 "class =" Video6 "onClick =" _gaq.push (['_ trackEvent', 'product movie', 'onclick', 'english']); "& gt; & amp; nbsp; & lt; / li & Gt; & lt; / ul & gt; & lt; / div & gt; & lt; / You have this code in your script on the div> 
P>

and this element can not be found in $ ("#include .EmptyPage") but you have it in your #explore div Div is:

    

Your code works for link detection , but not for other links.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -