091 Posted January 15, 2011 Report Share Posted January 15, 2011 nezinu kāpēc bet nevaru uzspiest sadaļā javascript,vbscript new topic.. tāpēc rakstu šeit man ir šāds array, kaa uztaisiit lai vareetu ievietot vairakus smaidinju simbolus vienaa rindaa? kjip lai arrayaa nolasa tam pašam smaidiņam bet atbilstoši nu piem. lai šis: " :) " būtu atbilstams arī " :-) " un " :smails: " (nolasa attēlu: smile.png) nuu.. :) ir :-) lai abus nolasītu un parādītu smile.png kods: emoticonCodes: new Array( ':)', ':(', ';)', ), emoticonFiles: new Array( 'smile.png', 'sad.png', 'wink.png', ), Quote Link to comment Share on other sites More sharing options...
daGrevis Posted January 15, 2011 Report Share Posted January 15, 2011 emoticonCodes: new Array( ':)', ':-)', '=)', ':(', ':-(', '=)', ), emoticonFiles: new Array( 'smile.png', 'smile.png', 'smile.png', 'sad.png', 'sad.png', 'sad.png', ), Quote Link to comment Share on other sites More sharing options...
marcis Posted January 16, 2011 Report Share Posted January 16, 2011 daGrevis ideja pareiza. Bet man jau labāk patiktu šāds pieraksts: var smilies = { ':)': 'smile.png', ':-)': 'smile.png', '=)': 'smile.png', ':(': 'sad.png', ':-(': 'sad.png', '=(': 'sad.png' }; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.