i found the solution:
  // get the body.innerHTML code:
  newbodyhtmlcode:=WebBrowser1.OleObject.document.body.innerHTML;
  // make changes to html code in here, then:
  WebBrowser1.OleObject.document.body.innerHTML:=newbodyhtmlcode;
// now your webbrowser is showing the new bannerless page...
  
Cihan <[EMAIL PROTECTED]> wrote:
  How can i "remove" an object from webbrowser?
  I want to hide a banner from a web page. 
  I can hide objects that have an "id", with the code below:
     WebBrowser1.OleObject.Document.all.banner.style.visibility:='hidden';
   
  But there are some banners that havent an id.
  HTML code of the banner is like this:
   
  <!-- adstart -->
   <img.... or something...
  <!-- adend -->
   
  I can find the code of banner, searching OleObject.Document.InnerHTML;
  But, how can i remove this code from there???
  Or, is there any method to give an "id" for that code?

            
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 



  SPONSORED LINKS 
        C programming language   Computer programming languages   Java 
programming language     The c programming language   C programming language   
Concept of programming language 
    
---------------------------------
  YAHOO! GROUPS LINKS 

    
    Visit your group "delphi-en" on the web.
    
    To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
    
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 

    
---------------------------------
  




_ .           
<_ [ |-| /-\ |\|

                
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to