Both can be done with javascript Dom manipulation. Most web crawlers will do some basic javascript these days, though I haven't tried this tag.