if (link.getChild(0) instanceof ImageTag) {
ImageTag img = (ImageTag) link.getChild(0);
binUrlStr = img.getImageURL();
}
} else if (node instanceof ScriptTag) {
ScriptTag script = (ScriptTag) node;
binUrlStr = script.getAttribute("src");
} else if (node instanceof FrameTag) {
FrameTag tag = (FrameTag) node;
binUrlStr = tag.getAttribute("src");
} else if (node instanceof LinkTagTag) {
LinkTagTag script = (LinkTagTag) node;
if (script.getAttribute("rel").equalsIgnoreCase("stylesheet")) {
binUrlStr = script.getAttribute("href");
}
} else if (node instanceof FrameTag) {
FrameTag script = (FrameTag) node;
binUrlStr = script.getAttribute("src");
} else if (node instanceof BgSoundTag) {
BgSoundTag script = (BgSoundTag) node;
binUrlStr = script.getAttribute("src");
} else if (node instanceof Tag) {
Tag tag = (Tag) node;
String tagname=tag.getTagName();
if (tagname.equalsIgnoreCase("EMBED")){
binUrlStr = tag.getAttribute("src");