andrewb 0 Newbie Poster

thank you the problem was solved

andrewb 0 Newbie Poster

I need to register to a site programmatically and I used an object named webbrowser1
The problem is that there is some object with the same name in the web form like this

<p><input type="submit" value="Continue" [B]name="submit" [/B]style="width:250px;"></p>
<input style="font-size:8pt; background-color:#221e1f; color:#e7e7e9;" type="submit" [B]name="Submit"[/B] value="Login" />

so I can't use something like this code

HtmlElement submit = webBrowser1.Document.GetElementsByTagName("submit");

I tried this instead

HtmlElementCollection submits =webBrowser1.Document.GetElementsByTagName("submit");
            foreach (HtmlElement currentElement in submits)
            {
                string val2 = currentElement.GetAttribute("value").ToString();
                if (val2.ToString() == "Continue")
                {
                    currentElement.InvokeMember("click");
                }
            }

But I do not know where the code is wrong because it does not work

andrewb 0 Newbie Poster

Hi Iam very begginer
I want to use the script named lavaLamp from here http://www.gmarwaha.com/blog/2007/08/23/lavalamp-for-jquery-lovers/?cp=all )
but I donn't know how I can use it
I try to change the <li class="current"><a href="#">Home</a></li> tag to the <li class="current"><a href="http://google.com">Home</a></li> but it doesnt work
please help me

<h3>With Image</h3>
<ul class="lavaLampWithImage" id="1">
    <li class="current"><a href="http://google.com">Home</a></li>
    <li id="BB"> <a href="#"  title="BB" >BBB</a></li>
    <li><a href="#rr.html">Travel</a></li>
    <li><a href="#">Ride an elephant</a></li>
</ul>