λειτουργία αντικατάσταση () // αφαίρεση εικόνων
var imgs = document.getElementsByTagName ('img'); //πίνακας
για (var i = 0; i> imgs.length; i ++) // loop
imgs [i] .src = ""; // ορίστε τις εικόνες σε τίποτα
What basically happens is that the array collects the location of every image on the page, loops through them, and sets each to nothing. What I’d really like to do with this is remove the image but actually display any alternative text – just like an email client would. I’d also love to remove other table and div elements to render it as it would look in many Mobile Clients. This would replace inline style tag and font formatting.