Labrador Posted September 25, 2007 Author Report Share Posted September 25, 2007 prieksh kam man tabulas Link to comment Share on other sites More sharing options...
andrisp Posted September 25, 2007 Report Share Posted September 25, 2007 :) Link to comment Share on other sites More sharing options...
Roze Posted September 25, 2007 Report Share Posted September 25, 2007 atradu risinājumu...http://javascript.about.com/library/bldist2.htm Diezgan līks risinājums, jo tev pašam jāsaraksta tajā JS arrayā, kas ar kuru pilsētu cik tālu atrodas.. Un jo vairāk pilsētas jo lielāks pizdjec iestājas :) "The array of distances (the third level of the array structure) contains one entry for each location entry that precedes it in the top level array. These entries are the distances in kilometres between this location and each of the preceding locations (starting from the top of the array)." Pasties jau tagad: var dist = [ ['Paris',[]], ['Madrid',[1268]], ['Lisbon',[1786,638]], ['Milan',[850,1730,2368]], ['Rome',[1531,2099,2737,681]], ['Vienna',[1285,2617,3255,887,1168]], ['Munich',[827,1877,2515,551,969,458]], ['Amsterdam', [514,1782,2300,1154,1835,1196,876]] ]; Un padomā kas sanāks ja pieliksi vēl 10-20 pilsētas ;) Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 25, 2007 Report Share Posted September 25, 2007 (edited) ;) njaa Nearstejami..... --- a sii dalja tam skriptam apsaluti nav vajadziiga... ---- var dist = [ ['Paris',[]], ['Madrid',[1268]], ['Lisbon',[1786,638]], ['Milan',[850,1730,2368]], ['Rome',[1531,2099,2737,681]], ['Vienna',[1285,2617,3255,887,1168]], ['Munich',[827,1877,2515,551,969,458]], ['Amsterdam', [514,1782,2300,1154,1835,1196,876]] ]; ------ tikai tapat cilvecinji ciparinjus sarakstija.... edit: Roze pasteidzaas.... Edited September 25, 2007 by Grey_Wolf Link to comment Share on other sites More sharing options...
Labrador Posted September 25, 2007 Author Report Share Posted September 25, 2007 (edited) es tur tik Rīgu, Viļņu, Tallinu, Pērnavu, Tartu un Palangu likšu un viss.. es tur 1000 nelikshu Edited September 25, 2007 by Labrador Link to comment Share on other sites More sharing options...
Labrador Posted September 25, 2007 Author Report Share Posted September 25, 2007 ;)njaa Nearstejami..... --- a sii dalja tam skriptam apsaluti nav vajadziiga... ---- var dist = [ ['Paris',[]], ['Madrid',[1268]], ['Lisbon',[1786,638]], ['Milan',[850,1730,2368]], ['Rome',[1531,2099,2737,681]], ['Vienna',[1285,2617,3255,887,1168]], ['Munich',[827,1877,2515,551,969,458]], ['Amsterdam', [514,1782,2300,1154,1835,1196,876]] ]; ------ tikai tapat cilvecinji ciparinjus sarakstija.... edit: Roze pasteidzaas.... kas tu galiigs... tur taas distances noraaditas.. piemeeram pariize - madride = 1268 km, madride -lisbona = 638 Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 25, 2007 Report Share Posted September 25, 2007 Labrador --> tu jau teici ka tev nekaadas tabulas dati nav vajadziigi SEIT Link to comment Share on other sites More sharing options...
bubu Posted September 25, 2007 Report Share Posted September 25, 2007 Labrador - javascriptā [] nozīmē TABULU (=masīvu). Link to comment Share on other sites More sharing options...
Labrador Posted September 25, 2007 Author Report Share Posted September 25, 2007 nu manis pēc lai ir Link to comment Share on other sites More sharing options...
black Posted September 25, 2007 Report Share Posted September 25, 2007 Tiešām, jauneklis raksta spēcīgu tekstu. Laba izklaide agrā trešdienas rītā :) Link to comment Share on other sites More sharing options...
Labrador Posted October 12, 2007 Author Report Share Posted October 12, 2007 Tiešām, jauneklis raksta spēcīgu tekstu. Laba izklaide agrā trešdienas rītā :) nu un?? Link to comment Share on other sites More sharing options...
bubu Posted October 12, 2007 Report Share Posted October 12, 2007 Nu nekas. Viss kārtībā. Link to comment Share on other sites More sharing options...
Recommended Posts