jyzackoh Posted December 18, 2007 Share Posted December 18, 2007 hi everybody. i have just finished leanring html and xhtml and abit of css and am interested in learning javascript.However, for now, i am in search of a script or tutorial that would teach me how to do a drop down navigation like the one in "3iX.org". Could anyone link me to a tutorial somewhere as i have searched this forums only to find nothing.Also, could somebody explain what the code means to me? Thank you for your time and i really appreciate it.Zack Link to comment Share on other sites More sharing options...
aspnetguy Posted December 18, 2007 Share Posted December 18, 2007 try this http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm Link to comment Share on other sites More sharing options...
jyzackoh Posted December 18, 2007 Author Share Posted December 18, 2007 hi! thanks. i got infatuated with this "http://www.dynamicdrive.com/dynamicindex1/omnislide/index.htm".But i have one question. Because the .js files are big due to the large amounts of text for the coding, will it eat up more bandwidth/data-transfer than the example stated above(which requires less text for the coding)?I am trying to save up on the bandwidth/data-transfer =( because i do not have money to get an uber fast hosting service with unlimited bandwidth. =(Thanks for your help!It's greatly AppreciatedZack Link to comment Share on other sites More sharing options...
aspnetguy Posted December 18, 2007 Share Posted December 18, 2007 External files get cahced by the browsers to generally your visitors will only have to download it once and the browser will use the cached version. You can also use javascript minifiers that will remove all whitespace and comments. Some even go as far as renaming your variables and functions to very short names to save space.Using a host that serves content (or allows you to use) GZipped will save on bandwidth.But unless you get into the tens or hundreds of thousands of pageviews per month or are serving audio, video, or other large files you don't have to worry about bandwidth. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 18, 2007 Share Posted December 18, 2007 The short answer though, obviously, is yes. A file with more bytes uses more bandwidth to be transferred then a file with fewer bytes. That should be pretty apparent. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.