gongpex Posted September 7, 2011 Share Posted September 7, 2011 Hello everyone, How to create a link that have slide timing like this: http://www.wikihow.c...n-PHP-and-MySQL at "Recent Changes" and by the way what the function object of : "className()" , "addEvent()" , "addEventListener" , "createElement()" please someone tell me. thank you very much Link to comment Share on other sites More sharing options...
Drycodez Posted September 7, 2011 Share Posted September 7, 2011 AddEventListener(), is use to add even handler (onclick, omouseover, etc) and its value (what to execute) to an html element(s). Eg: element.addEventListener(click, doThis, boolean).className, returns the class name of an element e.g: <b class="theClassName"></b>.createElement(), is used to create and html element... E.g: document.createElement('img') //creates an image, but it is used with appendChild() function to place it where you wnt it to be in the document. Link to comment Share on other sites More sharing options...
gongpex Posted September 8, 2011 Author Share Posted September 8, 2011 what the function of "appenChild(), can you give me the syntax? I don't understand what the function of "parseInt()" and "parseFloat()" can you explain it to me? Link to comment Share on other sites More sharing options...
Ingolme Posted September 8, 2011 Share Posted September 8, 2011 appendChild is explained in the XML DOM tutorial. It goes together with several other DOM methods, so it's a lot to explain in one post. parseInt() turns any data type (generally strings) into an integer. parseFloat() turns any data type into a floating point number. Link to comment Share on other sites More sharing options...
thescientist Posted September 8, 2011 Share Posted September 8, 2011 what the function of "appenChild(), can you give me the syntax? I don't understand what the function of "parseInt()" and "parseFloat()" can you explain it to me? have you tried looking these functions up yourself? Google or use the w3schools website search bar up in the upper right hand corner. if you have specific questions on their implementation, we'll of course be more than happy to help you out. Link to comment Share on other sites More sharing options...
gongpex Posted September 10, 2011 Author Share Posted September 10, 2011 have you tried looking these functions up yourself? Google or use the w3schools website search bar up in the upper right hand corner. if you have specific questions on their implementation, we'll of course be more than happy to help you out. Thank you for reply, I had tried to search it on google and w3school but there is no example (about my question) that can explain well to me, I need example,like syntax,how to write it, when it must used and where I must put it Link to comment Share on other sites More sharing options...
Drycodez Posted September 10, 2011 Share Posted September 10, 2011 In w3schools, there are examples (syntax) and even 'try it yourself,' where you have the chancee to see the raw code, edit it and see what it does. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.