Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- if($('#logo')[0].offsetWidth == 288) {
- $('h2.img').each(function() {
- string = $(this).text();
- filename = string.toLowerCase().replace(/ /g, '-').replace(/([^0-9a-z-])/g,'');
- $(this).html('<img src="/images/' + filename + '.gif" alt="' + string + '" />');
- });
- }
- });
Add Comment
Please, Sign In to add comment