/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function icon_prepend(str){ var path = '.'+str; strprep = '<img src="/images/'+str+'.gif" class="icon" />'; $(path).prepend(strprep); } подÑтавлÑем через ÑваÑкрипт иконки приложений в прайÑах. иÑпользование: icon_prepend('excel'); icon_prepend('word'); icon_prepend('zip');
Comments
