Menu

Background images

Help
2003-02-26
2003-02-27
  • Huang-Chun Yu

    Huang-Chun Yu - 2003-02-26

    It seems that the APIs do not have methods to extract image links in the "background" property of tags such as <body>, <table> ,etc. Is there any way to get this information? Thanks for your help.

     
    • Somik Raha

      Somik Raha - 2003-02-26

      They do. You can get attributes of any tag by :
      String attribute = tag.getAttribute("ATTRIBUTE_NAME");

      So, for body tags, it'd be :
      if (tag.getTagName().equals("BODY")) {
         String background = tag.getAttribute("BODY");
      }

      Regards,
      Somik

       
    • Huang-Chun Yu

      Huang-Chun Yu - 2003-02-27

      So it cannot be extracted directly from ImageScanner. Thanks a lot!!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.