Hi ive been trying to InvokeMember onmouseup to close a banner in WebBrowser Control..

<div id="layer1" style="height: 0px; left: 240px; position: absolute; top: 30px; width: 10px; z-index: 1;">
<span onmouseup="document.getElementById('floatLayer2').style.display='none'">
<img alt="" border="0" height="12" src="http://www.streamking.info/images/close.png" width="12" /></span></div>

PLease!!!! Help!! Thank You...

Hi,
just to clarify, are you trying to make a banner which is in a container with the ID floatLayer2 disappear when people move their mouse over the div container with the ID layer1?
If so, then try onMouseOver. OnMouseUp is invoked when people click and then let go of the button. Or maybe I misunderstood you, I'm not really sure what you a re trying to achieve.

Hi, thanks for your reply.. im trying to invoke click to make floatLayer2 disappear without mouse click

I Figuired it out Thanks Anyway.. Heres my Code..

Dim theElementCollection9 As Windows.Forms.HtmlElementCollection
        theElementCollection9 = WebBrowser1.Document.GetElementsByTagName("span")
        For Each curElement As HtmlElement In theElementCollection9
            curElement.RaiseEvent("onMouseUp")
    Dim theElementCollection9 As Windows.Forms.HtmlElementCollection
    theElementCollection9 = WebBrowser1.Document.GetElementsByTagName("span")
    For Each curElement As HtmlElement In theElementCollection9
    curElement.RaiseEvent("onMouseUp")

    Next
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.