Autor Beitrag
F.Art
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 434



BeitragVerfasst: Fr 22.04.05 00:31 
ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="author" content="Gameforge GmbH" />
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta name="keywords" content="OGame, Browsergame, Onlinegame, Browsergames, Browsergame, Spiel, Spiele, Onlinespiel, Onlinespiele" />
<meta name="description" content="OGame - Top Browsergame im Weltraum. Kommandiere deine Flotten." />
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="21 days" />
<meta name="language" content="de" />
<meta name="distribution" content="global" />
<meta name="audience" content="all" />
<meta name="author-mail" content="info@ogame.de" />
<meta name="publisher" content="Gameforge GmbH" />
<meta name="copyright" content="(c) 2005 by Gameforge" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />

<title>OGame.de</title>
<style type="text/css">
<!--
body {
  background-color: #061229;
  margin-left: 10px;
  margin-top: 0px;
  margin-right: 10px;
  margin-bottom: 0px;
  background-image: url(img/border/mainback.gif);
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function Init() {
  document.onkeypress = _KeyPress;
  MM_preloadImages('img/navigation_de/02o.gif','img/navigation_de/04o.gif','img/navigation_de/06o.gif','img/navigation_de/08o.gif','img/navigation_de/10o.gif','img/navigation_de/12o.gif','img/navigation_de/14o.gif')
}
function _KeyPress(event) {
  if(!event) event = window.event;
  if(event.which) { keycode = event.which; }
  else if(event.keyCode) { keycode = event.keyCode; }
  if(keycode == 13) { changeAction("login"); }
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="styles/default.css" rel="stylesheet" type="text/css">
</head>

<body onLoad="Init();">

<center>
<table width="80%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="159"></td>
    <td width="180"></td>
    <td width="100%" background="img/head/back.gif"> </td>
    <td width="320"></td>
  </tr>
</table>
<table width="80%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="20" valign="top" background="img/border/left_back.gif"></td>
    <td width="131" align="center" valign="top" background="img/border/navi_back.gif">      
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" class="black_small"></td>
        </tr>
        <tr>
          <td align="center"></td>
        </tr>
        <tr>
          <td><img src="img/main/1x1.gif" width="1" height="8"></td>
        </tr>
      </table>
          </td>
    <td width="13" valign="top" background="img/border/middle_back.gif"><img src="img/border/middle_top.gif" width="8" height="13"></td>
    <td width="100%" rowspan="2" align="center" valign="top" background="img/main/background.jpg"><table width="100%" height="43"  border="0" cellpadding="0" cellspacing="0">
      <script type="text/javascript">
        var lastType = "";
        function changeAction(type) {
          if(document.formular.Uni.value == '') {
            alert('Du hast kein Universum ausgewählt.');
          }
          else {
            if(type == "login" && lastType == "") {
              var url = "http://" + document.formular.Uni.value + "/game/reg/login2.php";
              document.formular.action = url;
            }
            else {
              var url = "http://" + document.formular.Uni.value + "/game/reg/mail.php";
              document.formular.action = url;
              document.formular.submit();
            }
          }
        }
      </script>
      <form name="formular" action="" method="POST" onSubmit="changeAction('login');">
      <input type="hidden" name="timestamp" value="1114098008">
      <input type="hidden" name="v" value="2">
      <tr>
        <td align="center" valign="top" background="img/main/login_back.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="img/main/1x1.gif" width="1" height="5"></td>
          </tr>
        </table>
          <table width="97%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="20"><img src="img/main/arrow.gif" width="20" height="15"></td>
            <td width="150" align="left"><select tabindex="1" name='Uni' class="eingabe" style="width:100%;">
            <option value="">Universum auswählen...</option><option value="ogame136.de">1. Universum</option><option value="ogame137.de">2. Universum</option><option value="ogame138.de">3. Universum</option><option value="www.ogame108.de">4. Universum</option><option value="ogaeme.de">5. Universum</option><option value="ohame.de">7. Universum</option><option value="ohgame.de">8. Universum</option><option value="ogames.org">9. Universum</option><option value="ogem.de">10. Universum</option><option value="ogame139.de">11. Universum</option><option value="www.ogame100.de">12. Universum</option><option value="ogame103.de">13. Universum</option><option value="ogame14.tiscali.de">14. Universum</option><option value="ogame15.tiscali.de">15. Universum</option><option value="213.239.218.164">16. Universum</option><option value="www.ogame107.de">17. Universum</option><option value="www.ogame109.de">18. Universum</option><option value="ogame110.de">19. Universum</option><option value="ogame20.tiscali.de">20. Universum</option><option value="www.ogame112.de">21. Universum</option><option value="www.ogame111.de">22. Universum</option><option value="www.ogame114.de">23. Universum</option><option value="www.ogame117.de">25. Universum</option><option value="ogame140.de">26. Universum</option><option value="www.ogame101.de">27. Universum</option><option value="www.o-game.de">28. Universum</option><option value="213.239.217.140">29. Universum</option><option value="ogame105.de">30. Universum</option><option value="ogame141.de">31. Universum</option><option value="ogame104.de">32. Universum</option><option value="ogame106.de">33. Universum</option><option value="ogame129.de">34. Universum</option><option value="213.239.220.39">speed. Universum</option>
           </select><script type="text/javascript"> document.formular.Uni.focus(); </script></td>
            <td width="20"><img src="img/main/arrow2.gif" width="25" height="15" alt="Username"></td>
            <td width="265" align="left"><span class="rahmen">
              <input tabindex="2" alt="Login" class="eingabe" name="login" value="">
            </span><span class="rahmen"><img src="img/main/1x1.gif" border="0" width="1" height="1" alt="Password">
            <input tabindex="3" alt="Passwort" type="password" class="eingabe" name="pass" value="">
             </span></td>
            <td align="left"><span class="rahmen"><input type="image" src="img/main/login.gif" width="40" height="15" border="0" value="Login"></span></td>
            </tr>
                      <tr>
            <td colspan="5"><img src="img/main/1x1.gif" width="1" height="7"></td>
            </tr>
                      <tr>
            <td colspan="5"><img src="img/main/1x1.gif" width="1" height="5"></td>
            </tr>
                    </table>          
          </td>
      </tr>
      </form>
    </table>
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="img/main/black_spacer.gif"><img src="img/main/black_spacer.gif" width="1" height="2"></td>
        </tr>
      </table>
          </td>
    <td width="20" valign="top" background="img/border/right_back.gif"></td>
  </tr>
  <tr>
    <td valign="bottom" background="img/border/left_back.gif"></td>
    <td align="center" valign="top" background="img/border/navi_back.gif"> </td>
    <td valign="bottom" background="img/border/middle_back.gif"><img src="img/border/middle_bottom.gif" width="8" height="24"></td>
    <td width="20" valign="bottom" background="img/border/right_back.gif"></td>
  </tr>
</table>
<table width="80%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="159"></td>
    <td width="100%" background="img/footer/middle.gif"> </td>
    <td width="65"></td>
  </tr>
</table>
<table width="80%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="68"></td>
    <td width="100%" background="img/footer/bottom1_back.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
                <td align="left"></td>
                <td align="right"></td>
              </tr>
      </table></td>
    <td width="65"></td>
  </tr>
</table>
<table width="80%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="68" height="8"></td>
    <td width="100%" height="8" background="img/footer/bottom2_back.gif"><img src="img/footer/bottom2_back.gif" width="1" height="8"></td>
    <td width="64" height="8"></td>
  </tr>
</table>
      <br>
      <p></p>
    </center>
</body>
</html>
<!-- written to cache 21.04.2005 17:40:10 //-->


Ich habe schon mit folgendem Code versucht

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
 Document:= WebBrowser.Document;
  Document.all.item('Uni').value := recUniversum;
 Document.all.item('login').value := Form2.Log.Text;
 Document.all.item('pass').value := Form2.Password.Text;

  WebBrowser.ControlInterface.Document.QueryInterface(IHtmlDocument2,iDoc);
  ov:='INPUT';
  IDisp:=iDoc.all.tags(ov);
  IDisp.QueryInterface(IHTMLElementCollection,iColl);
  for i:=1 to iColl.Get_length do begin
   iDisp:=iColl.item(pred(i),0);
   iDisp.QueryInterface(IHTMLInputElement,iInputElement);
   iInputElement.Get_form.submit;
  end;

aber es funktioniert so nicht.
Hat jemand eine Lösung für mich den Button klicken zu lassen?

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Fr 22.04.05 10:44 
probiers mal mit webbrowser1.navigate('javascript:document.formular.submit();');

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
F.Art Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 434



BeitragVerfasst: Sa 23.04.05 10:59 
Das funktioniert leider nicht.
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Sa 23.04.05 11:55 
dann halt webbrowser1.navigate('javascript:changeAction(' + ''' + 'login' + ''' + ');');

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Mo 02.05.05 06:51 
user profile iconretnyg hat folgendes geschrieben:
dann halt webbrowser1.navigate('javascript:changeAction(' + ''' + 'login' + ''' + ');');


Funktioniert bei mir nicht.
Stübi
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 331

Win XP, Win 2000, Win ME
D5 Ent, D7 Prof, D2005 PE, C#
BeitragVerfasst: Mo 02.05.05 07:42 
Hallo

Schau dir mal diesen Thread von mir in der DP an.

Gruss Stübi

_________________
Neun von zehn Stimmen in meinen Kopf sagen, dass ich nicht verrückt sei. Die zehnte summt die Tetrismelodie.