JavaScript - Meaning Of Var, Ie
This prbl. appears only in IE:
Code: l2 = obj.parentNode.getElementsByTagName("select")[0].value; --> object does not support this property or method Code: var l2 = obj.parentNode.getElementsByTagName("select")[0].value; --> OK explanation needed. Similar Tutorialsthe HTML code: Code: <ul id="ul1"> <li>1111</li> <li>2222</li> </ul> <div id="div1"></div> the javascript code: Code: var oDiv=document.getElementById('div1'); oDiv.style.left=getPos(this).left+this.offsetWidth+'px'; oDiv.style.top=getPos(this).top+'px'; function getPos(obj){ var aPos={left: null, top: null}; while(obj) { aPos.left+=obj.offsetLeft; aPos.top+=obj.offsetTop; obj=obj.offsetParent; } return aPos; } why it write the while loop,and what's effection of the while loop obj=obj.offsetParent; what's this line meaning? hello .. I want know what is the mean of these symbol : || {} thanks .. function args() { return arguments; } don't know the "return arguments; "meaning. Quote: Traversal also aids developers in affecting the elements immediately surrounding an element that is being manipulated or otherwise utilized by a script. This can range from adding a class to parent elements to indicate activity to disabling all inactive form elements to any number of other useful tasks. can't understand the above,the paragraph is from a book.what the author want to tell.anyone helps.thank you, I'm troubleshooting some issues with menus closing and when I alert the return value from something like: Code: timer = setTimeout("closeMenu(id)",500); I get 2,3,4. It seems to increment. Does that just represent how many times the timeout code has been executed? I have 3 Qs about ajax(1,2) and syntax meaning(3): 1- I want to appear a list of urls from a db table to browser, with their newest Google PAGE RANK every time appear in the webpage, and this rank saved auto to database along with previous.... google provides any web service for this? tell me URLs? I found difficulty contact google... 2- Do you know any internet web service (programming) that you input a Russian word, and get (true or 1) if valid, or (false or 0) if not valid word? 3- what mean the in file attached statements to html main file? script.js?x=5 or style.css?p=5 or xmlfile.xml?x=777. |