IE/FF Probleem
stenno - 18/08/2005 18:11 (laatste wijziging 18/08/2005 18:12)
PHP interesse
Ik heb hier een script dat het wel goed doet in Inter Explorer maar niet het goed doet in FireFox.
Hier het script:
<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
function changeimage(imagenum,newfilename)
{
document.images[imagenum].src=newfilename;
}
var divs = Array('iddiv1','iddiv2','iddiv3');
var divs1 = Array('iddiv4','iddiv5','iddiv6');
var div = Array('div1','div2','div3')
function Search1()
{document.getElementById('iddiv').style.display = 'block';
y = divs.length;
for(x=0;x<y;x++)
{
if(parseFloat(document.getElementById(divs[x]).innerHTML) > parseFloat(document.form1.as.value) && parseFloat(document.getElementById(divs1[x]).innerHTML) < parseFloat(document.form1.sa.value))
{ document.getElementById(div[x]).style.display = 'block';
}
else
document.getElementById(div[x]).style.display = 'none';
}
}
-->
</script>
<style>
<!--
A.type1:link {color:Red; text-decoration:none;}
A.type1:visited {color:Red; text-decoration:none;}
A.type1:active {color:Red; text-decoration:none;}
A.type1:hover {color:darkRed; text-decoration:none;}
//-->
</style>
</head>
<BODY bgcolor="black" text="White" link="blue" alink="blue" vlink="blue">
<center>
<img src="BANNER5.gif" width="749" height="210">
</center>
<CENTER>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><A HREF="homepage.htm" onMouseOver="changeimage('aa441','image1on.gif');" onMouseOut="changeimage('aa441','image1.gif');" onClick="changeimage('aa441','image1off.gif');"><IMG src="image1.gif" name=aa441 border="1"></A></td>
<td><A HREF="http://www.thelordsofgondor.com/register" onMouseOver="changeimage('aa447','image2on.gif');" onMouseOut="changeimage('aa447','image2.gif');" onClick="changeimage('aa447','image2off.gif');"><IMG src="image2.gif" name=aa447 border="1"></A></td>
<td><A HREF="Guide.htm" onMouseOver="changeimage('aa386','image3on.gif');" onMouseOut="changeimage('aa386','image3.gif');" onClick="changeimage('aa386','image3off.gif');"><IMG src="image3.gif" name=aa386 border="1"></A></td>
<td><A HREF="Calculation.htm" onMouseOver="changeimage('aa931','image4on.gif');" onMouseOut="changeimage('aa931','image4.gif');" onClick="changeimage('aa931','image4off.gif');"><IMG src="image4.gif" name=aa931 border="1"></A></td>
<td><A HREF="farmlist.htm" onMouseOver="changeimage('aa030','image6on.gif');" onMouseOut="changeimage('aa030','image6.gif');" onClick="changeimage('aa030','image6off.gif');"><IMG src="image6.gif" name=aa030 border="1"></A></td>
<td><A HREF="moc.htm" onMouseOver="changeimage('aa958','image7on.gif');" onMouseOut="changeimage('aa958','image7.gif');" onClick="changeimage('aa958','image7off.gif');"><IMG src="image7.gif" name=aa958 border="1"></A></td>
<td><A HREF="faq.htm" onMouseOver="changeimage('aa284','image8on.gif');" onMouseOut="changeimage('aa284','image8.gif');" onClick="changeimage('aa284','image8off.gif');"><IMG src="image8.gif" name=aa284 border="1"></A></td>
<td><A HREF="http://www.thelordsofgondor.com/forum" onMouseOver="changeimage('aa038','image5on.gif');" onMouseOut="changeimage('aa038','image5.gif');" onClick="changeimage('aa038','image5off.gif');"><IMG src="image5.gif" name=aa038 border="1"></A></td>
</tr>
</table></center>
<HR size="3" width="100%">
<BR>
<center><font size="7" face="French Script MT,Vivaldi,Matura mt script capitals,times new roman"
color="white"><b>Farmlist</b></font></center>
<br>
<form name="form1">
<center><table border="3" style="border-collapse:collapse;" cellspacing="0" cellpadding="5" width="550">
<tr>
<th align="center" valign="middle" height="30" Colspan="4"><font size="4">Put your stats below:</font></th>
</tr>
<tr>
<td align="center" width="25%">Total Fightingforce:</td>
<td align="center" width="25%"><input type="text" name="as" size="15" value="0"></td>
<td align="center" width="25%">Strike action:</td>
<td align="center" width="25%"><input type="text" name="sa" size="15" value="0"></td>
</tr>
</Table></center><BR>
<center>
<table>
<tr>
<td><input type="reset" name="reset" value="Reset" /></td>
<td><input onclick="Search1()" type="button" value='Search'></td>
</tr>
</table>
<Br><Br>
<table id="iddiv" style='display:none' width="800" border="1" style="border-collapse:collapse;" bordercolor="" cellpadding="10" cellspacing="">
<tr><td colspan="5" align="center" bgcolor="darkblue"><font size="5">Possible targets to attack:</font></td></tr>
<tr align="center"><td>KOC name:</td><td>Total Fighting Force:</td><td>Defensive action:</td><td>Gold:</td><td>Updated time:</td></tr>
<tr style='display:none'align="center" id='div1'><td colspan="1"><A class="type1" HREF="http://www.kingsofchaos.com" class= target="black">Warhol </a></td><td align="center" colspan="1" id='iddiv1'>1</td><td colspan="1" align="center" id='iddiv4'>4</td><td colspan="1">0 Gold</td><td colspan="1">18:00 GMT+1 </td></tr>
<tr style='display:none'align="center" id='div2'><td colspan="1"><A class="type1" HREF="http://www.kingsofchaos.com" class= target="black">Stenno </a></td><td align="center" colspan="1" id='iddiv2'>2</td><td colspan="1" align="center" id='iddiv5'>5</td><td colspan="1">0 Gold</td><td colspan="1">18:00 GMT+1 </td></tr>
<tr style='display:none'align="center" id='div3'><td colspan="1"><A class="type1" HREF="http://www.kingsofchaos.com" class= target="black">Arquero_1 </a></td><td align="center" colspan="1" id='iddiv3'>3</td><td colspan="1" align="center" id='iddiv6'>6</td><td colspan="1">0 Gold</td><td colspan="1">18:00 GMT+1 </td></tr>
</table>
</center>
</form>
</body>
</html>
< html>
< head>
< title> Untitled</ title>
<script language = "JavaScript" type= "text/javascript" >
<!--
function changeimage( imagenum, newfilename)
{
document. images[ imagenum] . src= newfilename;
}
var divs
= Array ( 'iddiv1' , 'iddiv2' , 'iddiv3' ) ; var divs1
= Array ( 'iddiv4' , 'iddiv5' , 'iddiv6' ) ; var div
= Array ( 'div1' , 'div2' , 'div3' )
function Search1( )
{ document. getElementById( 'iddiv' ) . style. display = 'block' ;
y = divs. length;
for ( x= 0 ; x< y; x++ )
{
if ( parseFloat( document. getElementById( divs[ x] ) . innerHTML) > parseFloat( document. form1. as . value) && parseFloat( document. getElementById( divs1[ x] ) . innerHTML) < parseFloat( document. form1. sa. value) )
{ document. getElementById( div[ x] ) . style. display = 'block' ;
}
else
document. getElementById( div[ x] ) . style. display = 'none' ;
}
}
-->
</script>
< style>
<!--
A
. type1
: link { color
: Red
; text
- decoration
: none
; } A. type1: visited { color: Red; text- decoration: none; }
A. type1: active { color: Red; text- decoration: none; }
A. type1: hover { color: darkRed; text- decoration: none; }
//-->
</ style>
</ head>
< BODY bgcolor
= "black" text
= "White" link = "blue" alink
= "blue" vlink
= "blue" >
< center>
< img src= "BANNER5.gif" width= "749" height= "210" >
</ center>
< CENTER>
< table border= "0" cellspacing= "0" cellpadding= "0" >
< tr>
< td>< A HREF= "homepage.htm" onMouseOver= "changeimage('aa441','image1on.gif');" onMouseOut= "changeimage('aa441','image1.gif');" onClick= "changeimage('aa441','image1off.gif');" >< IMG src= "image1.gif" name= aa441 border= "1" ></ A></ td>
< td>< A HREF= "http://www.thelordsofgondor.com/register" onMouseOver= "changeimage('aa447','image2on.gif');" onMouseOut= "changeimage('aa447','image2.gif');" onClick= "changeimage('aa447','image2off.gif');" >< IMG src= "image2.gif" name= aa447 border= "1" ></ A></ td>
< td>< A HREF= "Guide.htm" onMouseOver= "changeimage('aa386','image3on.gif');" onMouseOut= "changeimage('aa386','image3.gif');" onClick= "changeimage('aa386','image3off.gif');" >< IMG src= "image3.gif" name= aa386 border= "1" ></ A></ td>
< td>< A HREF= "Calculation.htm" onMouseOver= "changeimage('aa931','image4on.gif');" onMouseOut= "changeimage('aa931','image4.gif');" onClick= "changeimage('aa931','image4off.gif');" >< IMG src= "image4.gif" name= aa931 border= "1" ></ A></ td>
< td>< A HREF= "farmlist.htm" onMouseOver= "changeimage('aa030','image6on.gif');" onMouseOut= "changeimage('aa030','image6.gif');" onClick= "changeimage('aa030','image6off.gif');" >< IMG src= "image6.gif" name= aa030 border= "1" ></ A></ td>
< td>< A HREF= "moc.htm" onMouseOver= "changeimage('aa958','image7on.gif');" onMouseOut= "changeimage('aa958','image7.gif');" onClick= "changeimage('aa958','image7off.gif');" >< IMG src= "image7.gif" name= aa958 border= "1" ></ A></ td>
< td>< A HREF= "faq.htm" onMouseOver= "changeimage('aa284','image8on.gif');" onMouseOut= "changeimage('aa284','image8.gif');" onClick= "changeimage('aa284','image8off.gif');" >< IMG src= "image8.gif" name= aa284 border= "1" ></ A></ td>
< td>< A HREF= "http://www.thelordsofgondor.com/forum" onMouseOver= "changeimage('aa038','image5on.gif');" onMouseOut= "changeimage('aa038','image5.gif');" onClick= "changeimage('aa038','image5off.gif');" >< IMG src= "image5.gif" name= aa038 border= "1" ></ A></ td>
</ tr>
</ table></ center>
< HR size= "3" width= "100%" >
< BR>
< center>< font size= "7" face= "French Script MT,Vivaldi,Matura mt script capitals,times new roman"
color= "white" >< b> Farmlist</ b></ font></ center>
< br>
< form name= "form1" >
< center>< table border= "3" style= "border-collapse:collapse;" cellspacing= "0" cellpadding= "5" width= "550" >
< tr>
< th align= "center" valign= "middle" height= "30" Colspan= "4" >< font size= "4" > Put your stats below:</ font></ th>
</ tr>
< tr>
< td align= "center" width= "25%" > Total Fightingforce:</ td>
< td align= "center" width= "25%" >< input type= "text" name= "as" size= "15" value= "0" ></ td>
< td align= "center" width= "25%" > Strike action:</ td>
< td align= "center" width= "25%" >< input type= "text" name= "sa" size= "15" value= "0" ></ td>
</ tr>
</ Table></ center>< BR>
< center>
< table>
< tr>
< td>< input type= "reset" name= "reset" value= "Reset" /></ td>
< td>< input onclick= "Search1()" type= "button" value= 'Search' ></ td>
</ tr>
</ table>
< Br>< Br>
< table id= "iddiv" style= 'display:none' width= "800" border= "1" style= "border-collapse:collapse;" bordercolor= "" cellpadding= "10" cellspacing= "" >
< tr>< td colspan= "5" align= "center" bgcolor= "darkblue" >< font size= "5" > Possible targets to attack:</ font></ td></ tr>
< tr align
= "center" >< td
> KOC name
:</ td
>< td
> Total Fighting Force
:</ td
>< td
> Defensive action
:</ td
>< td
> Gold
:</ td
>< td
> Updated
time :</ td
></ tr
> < tr style= 'display:none' align= "center" id= 'div1' >< td colspan= "1" >< A class = "type1" HREF= "http://www.kingsofchaos.com" class = target= "black" > Warhol </ a></ td>< td align= "center" colspan= "1" id= 'iddiv1' > 1 </ td>< td colspan= "1" align= "center" id= 'iddiv4' > 4 </ td>< td colspan= "1" > 0 Gold</ td>< td colspan= "1" > 18 : 00 GMT+ 1 </ td></ tr>
< tr style= 'display:none' align= "center" id= 'div2' >< td colspan= "1" >< A class = "type1" HREF= "http://www.kingsofchaos.com" class = target= "black" > Stenno </ a></ td>< td align= "center" colspan= "1" id= 'iddiv2' > 2 </ td>< td colspan= "1" align= "center" id= 'iddiv5' > 5 </ td>< td colspan= "1" > 0 Gold</ td>< td colspan= "1" > 18 : 00 GMT+ 1 </ td></ tr>
< tr style= 'display:none' align= "center" id= 'div3' >< td colspan= "1" >< A class = "type1" HREF= "http://www.kingsofchaos.com" class = target= "black" > Arquero_1 </ a></ td>< td align= "center" colspan= "1" id= 'iddiv3' > 3 </ td>< td colspan= "1" align= "center" id= 'iddiv6' > 6 </ td>< td colspan= "1" > 0 Gold</ td>< td colspan= "1" > 18 : 00 GMT+ 1 </ td></ tr>
</ table>
</ center>
</ form>
</ body>
</ html>
Het probleem is dat de colspan van de laatste tabel niet werkt in FireFox.
Het gaat omdit stukje:
<table id="iddiv" style='display:none' width="800" border="1" style="border-collapse:collapse;" bordercolor="" cellpadding="10" cellspacing="">
<tr><td colspan="5" align="center" bgcolor="darkblue"><font size="5">Possible targets to attack:</font></td></tr>
<tr align="center"><td>KOC name:</td><td>Total Fighting Force:</td><td>Defensive action:</td><td>Gold:</td><td>Updated time:</td></tr>
<tr style='display:none'align="center" id='div1'><td colspan="1"><A class="type1" HREF="http://www.kingsofchaos.com" class= target="black">Warhol </a></td><td align="center" colspan="1" id='iddiv1'>1</td><td colspan="1" align="center" id='iddiv4'>4</td><td colspan="1">0 Gold</td><td colspan="1">18:00 GMT+1 </td></tr>
<tr style='display:none'align="center" id='div2'><td colspan="1"><A class="type1" HREF="http://www.kingsofchaos.com" class= target="black">Stenno </a></td><td align="center" colspan="1" id='iddiv2'>2</td><td colspan="1" align="center" id='iddiv5'>5</td><td colspan="1">0 Gold</td><td colspan="1">18:00 GMT+1 </td></tr>
<tr style='display:none'align="center" id='div3'><td colspan="1"><A class="type1" HREF="http://www.kingsofchaos.com" class= target="black">Arquero_1 </a></td><td align="center" colspan="1" id='iddiv3'>3</td><td colspan="1" align="center" id='iddiv6'>6</td><td colspan="1">0 Gold</td><td colspan="1">18:00 GMT+1 </td></tr>
</table>
< table id= "iddiv" style= 'display:none' width= "800" border= "1" style= "border-collapse:collapse;" bordercolor= "" cellpadding= "10" cellspacing= "" >
< tr>< td colspan= "5" align= "center" bgcolor= "darkblue" >< font size= "5" > Possible targets to attack:</ font></ td></ tr>
< tr align
= "center" >< td
> KOC name
:</ td
>< td
> Total Fighting Force
:</ td
>< td
> Defensive action
:</ td
>< td
> Gold
:</ td
>< td
> Updated
time :</ td
></ tr
> < tr style= 'display:none' align= "center" id= 'div1' >< td colspan= "1" >< A class = "type1" HREF= "http://www.kingsofchaos.com" class = target= "black" > Warhol </ a></ td>< td align= "center" colspan= "1" id= 'iddiv1' > 1 </ td>< td colspan= "1" align= "center" id= 'iddiv4' > 4 </ td>< td colspan= "1" > 0 Gold</ td>< td colspan= "1" > 18 : 00 GMT+ 1 </ td></ tr>
< tr style= 'display:none' align= "center" id= 'div2' >< td colspan= "1" >< A class = "type1" HREF= "http://www.kingsofchaos.com" class = target= "black" > Stenno </ a></ td>< td align= "center" colspan= "1" id= 'iddiv2' > 2 </ td>< td colspan= "1" align= "center" id= 'iddiv5' > 5 </ td>< td colspan= "1" > 0 Gold</ td>< td colspan= "1" > 18 : 00 GMT+ 1 </ td></ tr>
< tr style= 'display:none' align= "center" id= 'div3' >< td colspan= "1" >< A class = "type1" HREF= "http://www.kingsofchaos.com" class = target= "black" > Arquero_1 </ a></ td>< td align= "center" colspan= "1" id= 'iddiv3' > 3 </ td>< td colspan= "1" align= "center" id= 'iddiv6' > 6 </ td>< td colspan= "1" > 0 Gold</ td>< td colspan= "1" > 18 : 00 GMT+ 1 </ td></ tr>
</ table>
Kan iemand mij vertellen, Hoe komt dit en Hoe los ik het op??
8 antwoorden
Gesponsorde links
dreamworld - 18/08/2005 18:34 (laatste wijziging 18/08/2005 18:37)
HTML beginner
<A class="type1" HREF="http://www.kingsofchaos.com" class= target="black">
moet dat nie zijn:
<A class="type1" HREF="http://www.kingsofchaos.com" class="black">
of:
<A class="type1" HREF="http://www.kingsofchaos.com" target="_blank">
of
<A class="type1" HREF="http://www.kingsofchaos.com" class="black" target="_blank">
MothZone - 18/08/2005 18:37
PHP ver gevorderde
zal wel eerder dit zijn denk ik:
<A class="type1" HREF="http://www.kingsofchaos.com" target="_blanc">
dreamworld - 18/08/2005 18:38
HTML beginner
Citaat:
zal wel eerder dit zijn denk ik:
<A class="type1" HREF="http://www.kingsofchaos.com" target="_blanc">
Die kan nie, want _blanc bestaat nie
dreamworld - 19/08/2005 00:36 (laatste wijziging 19/08/2005 00:48)
HTML beginner
Citaat:
voer het script anders zelf maar eens in je htmlkit en kijk maar een in Firefox en in Internet Explorer. De colspan doet het niet in Firefox.
Done, in IE en FF geeft ie allebei hetzelfde weer.. Ik zie dan Farmlist met daaronder de mogelijkheid om 2 velden (naast elkaar) in te vullen en kan dan op reset of search te duwen... Druk ik dan op search dan gaat ie daarna idd de soep in..
Maar verwijder: style='display:none' eens waar de tabel begint en probeer het nog eens (hier doet ie het dan in IE & FF)
En der staan nog een paar meer foutjes in zie ik.. je haalt dan ook css en html door elkaar, beter is dit gescheiden te houden.
Rens - 19/08/2005 10:48
Crew algemeen
Ik heb je code even W3C valid gemaakt.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
function changeimage(imagenum,newfilename)
{
document.images[imagenum].src=newfilename;
}
var divs = Array('iddiv1','iddiv2','iddiv3');
var divs1 = Array('iddiv4','iddiv5','iddiv6');
var div = Array('div1','div2','div3')
function Search1()
{document.getElementById('iddiv').style.display = 'block';
y = divs.length;
for(x=0;x<y;x++)
{
if(parseFloat(document.getElementById(divs[x]).innerHTML) > parseFloat(document.form1.as.value) && parseFloat(document.getElementById(divs1[x]).innerHTML) < parseFloat(document.form1.sa.value))
{ document.getElementById(div[x]).style.display = 'block';
}
else
document.getElementById(div[x]).style.display = 'none';
}
}
-->
</script>
<style>
<!--
A.type1:link {color:Red; text-decoration:none;}
A.type1:visited {color:Red; text-decoration:none;}
A.type1:active {color:Red; text-decoration:none;}
A.type1:hover {color:darkRed; text-decoration:none;}
//-->
</style>
</head>
<BODY bgcolor="black" text="White" link="blue" alink="blue" vlink="blue">
<center>
<img src="BANNER5.gif" width="749" height="210">
</center>
<CENTER>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><A HREF="homepage.htm" onMouseOver="changeimage('aa441','image1on.gif');" onMouseOut="changeimage('aa441','image1.gif');" onClick="changeimage('aa441','image1off.gif');"><IMG src="image1.gif" name=aa441 border="1"></A></td>
<td><A HREF="http://www.thelordsofgondor.com/register" onMouseOver="changeimage('aa447','image2on.gif');" onMouseOut="changeimage('aa447','image2.gif');" onClick="changeimage('aa447','image2off.gif');"><IMG src="image2.gif" name=aa447 border="1"></A></td>
<td><A HREF="Guide.htm" onMouseOver="changeimage('aa386','image3on.gif');" onMouseOut="changeimage('aa386','image3.gif');" onClick="changeimage('aa386','image3off.gif');"><IMG src="image3.gif" name=aa386 border="1"></A></td>
<td><A HREF="Calculation.htm" onMouseOver="changeimage('aa931','image4on.gif');" onMouseOut="changeimage('aa931','image4.gif');" onClick="changeimage('aa931','image4off.gif');"><IMG src="image4.gif" name=aa931 border="1"></A></td>
<td><A HREF="farmlist.htm" onMouseOver="changeimage('aa030','image6on.gif');" onMouseOut="changeimage('aa030','image6.gif');" onClick="changeimage('aa030','image6off.gif');"><IMG src="image6.gif" name=aa030 border="1"></A></td>
<td><A HREF="moc.htm" onMouseOver="changeimage('aa958','image7on.gif');" onMouseOut="changeimage('aa958','image7.gif');" onClick="changeimage('aa958','image7off.gif');"><IMG src="image7.gif" name=aa958 border="1"></A></td>
<td><A HREF="faq.htm" onMouseOver="changeimage('aa284','image8on.gif');" onMouseOut="changeimage('aa284','image8.gif');" onClick="changeimage('aa284','image8off.gif');"><IMG src="image8.gif" name=aa284 border="1"></A></td>
<td><A HREF="http://www.thelordsofgondor.com/forum" onMouseOver="changeimage('aa038','image5on.gif');" onMouseOut="changeimage('aa038','image5.gif');" onClick="changeimage('aa038','image5off.gif');"><IMG src="image5.gif" name=aa038 border="1"></A></td>
</tr>
</table></center>
<HR size="3" width="100%">
<BR>
<center><font size="7" face="French Script MT,Vivaldi,Matura mt script capitals,times new roman"
color="white"><b>Farmlist</b></font></center>
<br>
<form name="form1" action="bestandsnaam.html">
<center><table border="3" style="border-collapse:collapse;" cellspacing="0" cellpadding="5" width="550">
<tr>
<th align="center" valign="middle" height="30" Colspan="4"><font size="4">Put your stats below:</font></th>
</tr>
<tr>
<td align="center" width="25%">Total Fightingforce:</td>
<td align="center" width="25%"><input type="text" name="as" size="15" value="0"></td>
<td align="center" width="25%">Strike action:</td>
<td align="center" width="25%"><input type="text" name="sa" size="15" value="0"></td>
</tr>
</Table></center><BR>
<center>
<table>
<tr>
<td><input type="reset" name="reset" value="Reset" /></td>
<td><input onclick="Search1()" type="button" value='Search'></td>
</tr>
</table>
<Br><Br>
<table id="iddiv" width="800" border="1" style="border-collapse:collapse;display:none" cellpadding="10">
<tr><td colspan="5" align="center"><font size="5">Possible targets to attack:</font></td></tr>
<tr align="center"><td>KOC name:</td><td>Total Fighting Force:</td><td>Defensive action:</td><td>Gold:</td><td>Updated time:</td></tr>
<tr style='display:none'align="center" id='div1'><td colspan="1"><A class="type1" HREF="http://www.kingsofchaos.com" target="_blank">Warhol </a></td><td align="center" colspan="1" id='iddiv1'>1</td><td colspan="1" align="center" id='iddiv4'>4</td><td colspan="1">0 Gold</td><td colspan="1">18:00 GMT+1 </td></tr>
<tr style='display:none'align="center" id='div2'><td colspan="1"><A class="type1" HREF="http://www.kingsofchaos.com" target="_blank">Stenno </a></td><td align="center" colspan="1" id='iddiv2'>2</td><td colspan="1" align="center" id='iddiv5'>5</td><td colspan="1">0 Gold</td><td colspan="1">18:00 GMT+1 </td></tr>
<tr style='display:none'align="center" id='div3'><td colspan="1"><A class="type1" HREF="http://www.kingsofchaos.com" target="_blank">Arquero_1 </a></td><td align="center" colspan="1" id='iddiv3'>3</td><td colspan="1" align="center" id='iddiv6'>6</td><td colspan="1">0 Gold</td><td colspan="1">18:00 GMT+1 </td></tr>
</table>
</center>
</form>
</body>
</html>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
< html>
< head>
< title> Untitled</ title>
<script language = "JavaScript" type= "text/javascript" >
<!--
function changeimage( imagenum, newfilename)
{
document. images[ imagenum] . src= newfilename;
}
var divs
= Array ( 'iddiv1' , 'iddiv2' , 'iddiv3' ) ; var divs1
= Array ( 'iddiv4' , 'iddiv5' , 'iddiv6' ) ; var div
= Array ( 'div1' , 'div2' , 'div3' )
function Search1( )
{ document. getElementById( 'iddiv' ) . style. display = 'block' ;
y = divs. length;
for ( x= 0 ; x< y; x++ )
{
if ( parseFloat( document. getElementById( divs[ x] ) . innerHTML) > parseFloat( document. form1. as . value) && parseFloat( document. getElementById( divs1[ x] ) . innerHTML) < parseFloat( document. form1. sa. value) )
{ document. getElementById( div[ x] ) . style. display = 'block' ;
}
else
document. getElementById( div[ x] ) . style. display = 'none' ;
}
}
-->
</script>
< style>
<!--
A
. type1
: link { color
: Red
; text
- decoration
: none
; } A. type1: visited { color: Red; text- decoration: none; }
A. type1: active { color: Red; text- decoration: none; }
A. type1: hover { color: darkRed; text- decoration: none; }
//-->
</ style>
</ head>
< BODY bgcolor
= "black" text
= "White" link = "blue" alink
= "blue" vlink
= "blue" >
< center>
< img src= "BANNER5.gif" width= "749" height= "210" >
</ center>
< CENTER>
< table border= "0" cellspacing= "0" cellpadding= "0" >
< tr>
< td>< A HREF= "homepage.htm" onMouseOver= "changeimage('aa441','image1on.gif');" onMouseOut= "changeimage('aa441','image1.gif');" onClick= "changeimage('aa441','image1off.gif');" >< IMG src= "image1.gif" name= aa441 border= "1" ></ A></ td>
< td>< A HREF= "http://www.thelordsofgondor.com/register" onMouseOver= "changeimage('aa447','image2on.gif');" onMouseOut= "changeimage('aa447','image2.gif');" onClick= "changeimage('aa447','image2off.gif');" >< IMG src= "image2.gif" name= aa447 border= "1" ></ A></ td>
< td>< A HREF= "Guide.htm" onMouseOver= "changeimage('aa386','image3on.gif');" onMouseOut= "changeimage('aa386','image3.gif');" onClick= "changeimage('aa386','image3off.gif');" >< IMG src= "image3.gif" name= aa386 border= "1" ></ A></ td>
< td>< A HREF= "Calculation.htm" onMouseOver= "changeimage('aa931','image4on.gif');" onMouseOut= "changeimage('aa931','image4.gif');" onClick= "changeimage('aa931','image4off.gif');" >< IMG src= "image4.gif" name= aa931 border= "1" ></ A></ td>
< td>< A HREF= "farmlist.htm" onMouseOver= "changeimage('aa030','image6on.gif');" onMouseOut= "changeimage('aa030','image6.gif');" onClick= "changeimage('aa030','image6off.gif');" >< IMG src= "image6.gif" name= aa030 border= "1" ></ A></ td>
< td>< A HREF= "moc.htm" onMouseOver= "changeimage('aa958','image7on.gif');" onMouseOut= "changeimage('aa958','image7.gif');" onClick= "changeimage('aa958','image7off.gif');" >< IMG src= "image7.gif" name= aa958 border= "1" ></ A></ td>
< td>< A HREF= "faq.htm" onMouseOver= "changeimage('aa284','image8on.gif');" onMouseOut= "changeimage('aa284','image8.gif');" onClick= "changeimage('aa284','image8off.gif');" >< IMG src= "image8.gif" name= aa284 border= "1" ></ A></ td>
< td>< A HREF= "http://www.thelordsofgondor.com/forum" onMouseOver= "changeimage('aa038','image5on.gif');" onMouseOut= "changeimage('aa038','image5.gif');" onClick= "changeimage('aa038','image5off.gif');" >< IMG src= "image5.gif" name= aa038 border= "1" ></ A></ td>
</ tr>
</ table></ center>
< HR size= "3" width= "100%" >
< BR>
< center>< font size= "7" face= "French Script MT,Vivaldi,Matura mt script capitals,times new roman"
color= "white" >< b> Farmlist</ b></ font></ center>
< br>
< form name= "form1" action= "bestandsnaam.html" >
< center>< table border= "3" style= "border-collapse:collapse;" cellspacing= "0" cellpadding= "5" width= "550" >
< tr>
< th align= "center" valign= "middle" height= "30" Colspan= "4" >< font size= "4" > Put your stats below:</ font></ th>
</ tr>
< tr>
< td align= "center" width= "25%" > Total Fightingforce:</ td>
< td align= "center" width= "25%" >< input type= "text" name= "as" size= "15" value= "0" ></ td>
< td align= "center" width= "25%" > Strike action:</ td>
< td align= "center" width= "25%" >< input type= "text" name= "sa" size= "15" value= "0" ></ td>
</ tr>
</ Table></ center>< BR>
< center>
< table>
< tr>
< td>< input type= "reset" name= "reset" value= "Reset" /></ td>
< td>< input onclick= "Search1()" type= "button" value= 'Search' ></ td>
</ tr>
</ table>
< Br>< Br>
< table id= "iddiv" width= "800" border= "1" style= "border-collapse:collapse;display:none" cellpadding= "10" >
< tr>< td colspan= "5" align= "center" >< font size= "5" > Possible targets to attack:</ font></ td></ tr>
< tr align
= "center" >< td
> KOC name
:</ td
>< td
> Total Fighting Force
:</ td
>< td
> Defensive action
:</ td
>< td
> Gold
:</ td
>< td
> Updated
time :</ td
></ tr
> < tr style= 'display:none' align= "center" id= 'div1' >< td colspan= "1" >< A class = "type1" HREF= "http://www.kingsofchaos.com" target= "_blank" > Warhol </ a></ td>< td align= "center" colspan= "1" id= 'iddiv1' > 1 </ td>< td colspan= "1" align= "center" id= 'iddiv4' > 4 </ td>< td colspan= "1" > 0 Gold</ td>< td colspan= "1" > 18 : 00 GMT+ 1 </ td></ tr>
< tr style= 'display:none' align= "center" id= 'div2' >< td colspan= "1" >< A class = "type1" HREF= "http://www.kingsofchaos.com" target= "_blank" > Stenno </ a></ td>< td align= "center" colspan= "1" id= 'iddiv2' > 2 </ td>< td colspan= "1" align= "center" id= 'iddiv5' > 5 </ td>< td colspan= "1" > 0 Gold</ td>< td colspan= "1" > 18 : 00 GMT+ 1 </ td></ tr>
< tr style= 'display:none' align= "center" id= 'div3' >< td colspan= "1" >< A class = "type1" HREF= "http://www.kingsofchaos.com" target= "_blank" > Arquero_1 </ a></ td>< td align= "center" colspan= "1" id= 'iddiv3' > 3 </ td>< td colspan= "1" align= "center" id= 'iddiv6' > 6 </ td>< td colspan= "1" > 0 Gold</ td>< td colspan= "1" > 18 : 00 GMT+ 1 </ td></ tr>
</ table>
</ center>
</ form>
</ body>
</ html>
Je had er een bgcolor instaan, darkblue, die bestaat niet.
En op regel 72 moet je nog iets aanpassen:
<form name="form1" action="bestandsnaam.html">
< form name= "form1" action= "bestandsnaam.html" >
Je had er geen action bij staan.
Nu moet je bestandsnaam.html ff veranderen in de naam die jij aan dat bestandje hebt gegeven.
stenno - 19/08/2005 18:01 (laatste wijziging 21/08/2005 21:08)
PHP interesse
Geprobeerd maar helaas het werkt niet.
Weet iemand waarrom de colspan niet werkt in FireFox bij een tabel met (display:'none')'s erin
Gesponsorde links
Dit onderwerp is gesloten .