1 reply [Last post]
NovaLogic
Offline
newbie
Last seen: 16 years 2 days ago
Joined: 2003-09-23
Posts: 1
Points: 0

Hello,

I have a small problem with my javascript code. When i tested it wit IE it works perfectly, but with Netscape 7 it just didn't react. Is there some kind of modification needed for Netscape 7?

<link href="files/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="files/navigatie.js"></script>
<script language="JavaScript">
<!--
	var table=new Array(8);
	table[0]="my_images/liggingsplan/heistraat.gif";
	table[1]="my_images/liggingsplan/klapdorp.gif";
	table[2]="my_images/liggingsplan/langebeeldekensstraat.gif";
	table[3]="my_images/liggingsplan/langenoordstraat.gif";
	table[4]="my_images/liggingsplan/mutsaardstraat.gif";
	table[5]="my_images/liggingsplan/predikherinnenstraat.gif";
	table[6]="my_images/liggingsplan/raapstraat.gif";
	table[7]="my_images/liggingsplan/predikherinnenstraatl.gif";
	var intGetal=0;

	var table2=new Array(8);
	table2[0]="my_images/liggingsplan/antwerpen3.jpg";
	table2[1]="my_images/liggingsplan/antwerpen1.jpg";
	table2[2]="my_images/liggingsplan/antwerpen2.jpg";
	table2[3]="my_images/liggingsplan/antwerpen1.jpg";
	table2[4]="my_images/liggingsplan/antwerpen1.jpg";
	table2[5]="my_images/liggingsplan/antwerpen1.jpg";
	table2[6]="my_images/liggingsplan/antwerpen1.jpg";
	table2[7]="my_images/liggingsplan/vlaamsbrabant1.jpg";


	function ToonFoto(){
	while (intGetal<8){
		if (frmFormulier.rfoto[intGetal].checked==true){
        		document.images[5].src=table2[intGetal];
        		document.images[6].src=table[intGetal];}
		intGetal++;
	}
	intGetal=0;		
	}

	// -->
</script>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body link="#660033" vlink="#660033" alink="#660033" leftmargin="0" topmargin="0" onLoad="MM_preloadImages('my_images/common/voorwoordclicked.jpg','my_images/common/deeigenaarsclicked.jpg','my_images/common/deresidentiesclicked.jpg','my_images/common/liggingsplanclicked.jpg')">
<div align="center">
	<table border="0" cellpadding="0" cellspacing="0" width="780">
    <tr>
    <td background="my_images/common/title.jpg" height="125">&nbsp;
    </td>
    </tr>
    <tr>
    <td background="my_images/common/upper.jpg" width="780" height="226" align="center" valign="top">
    	<table border="0" cellpadding="0" cellspacing="0" width="448">
        <tr>
            <td><a href="voorwoord.htm" target="_self" onMouseOver="MM_swapImage('voorwoord','','my_images/common/voorwoordclicked.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="my_images/common/voorwoord.jpg" name="voorwoord" width="112" height="31" border="0" id="voorwoord"></a><a href="deeigenaars.htm" target="_self" onMouseOver="MM_swapImage('deeigenaars','','my_images/common/deeigenaarsclicked.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="my_images/common/deeigenaars.jpg" name="deeigenaars" width="112" height="31" border="0" id="deeigenaars"></a><a href="deresidenties.htm" target="_self" onMouseOver="MM_swapImage('deresidenties','','my_images/common/deresidentiesclicked.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="my_images/common/deresidenties.jpg" name="deresidenties" width="112" height="31" border="0" id="deresidenties"></a><a href="liggingsplan.htm" target="_self" onMouseOver="MM_swapImage('liggingsplan','','my_images/common/liggingsplanclicked.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="my_images/common/liggingsplan.jpg" name="liggingsplan" 		width="112" height="31" border="0" id="liggingsplan"></a></td>
        </tr>
        </table>
	
	<br><br><br>
    <p>
		<table width="500" border="0" cellspacing="0" cellpadding="0">
  		<tr>
            <td class="title" valign="bottom">Liggingsplan</td>
        <td class="title" align="right"><img src="my_images/common/book.gif" width="83" height="75"></td>
  		</tr>
		</table>
	</p>
	</td>
    </tr>
    <tr>
    <td height="428" align="center" valign="top" background="my_images/common/middle.jpg">
		<table width="500" border="0" cellspacing="0" cellpadding="0">
    	<tr>
            <td class="text" valign="top" width="500" colspan="2" height="85">Hier 
              kan u de geografische positie van de door Daemen-Residences aangeboden 
              woon- en parkeergelegenheden bekijken.<br>
              		<br>
              Klik op een welbepaalde straat om de bijhorende geografische gegevens 
              ervan op te vragen.<br><br><br>
            </td>
          	</tr>
			<tr>
				<form name="frmFormulier">
				
              <td width="250" align="left" valign="top" class="text"> <strong>Provincie 
                Antwerpen</strong><br>
                <br>
                <input type="radio" name="rfoto" onClick="ToonFoto()" checked>Heistraat (Wilrijk)<br>
				<input type="radio" name="rfoto" onClick="ToonFoto()">Klapdorp (Antwerpen)<br>
				<input type="radio" name="rfoto" onClick="ToonFoto()">Lange Beeldekensstraat (Antwerpen)<br>
				<input type="radio" name="rfoto" onClick="ToonFoto()">Lange Noordstraat (Antwerpen)<br>
				<input type="radio" name="rfoto" onClick="ToonFoto()">Mutsaardstraat (Antwerpen)<br>
				<input type="radio" name="rfoto" onClick="ToonFoto()">Predikherinnenstraat (Antwerpen)<br>
				<input type="radio" name="rfoto" onClick="ToonFoto()">Raapstraat (Antwerpen)<br>
				</td>
....				

Thanks in advance!

Greetings,

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 5 days 5 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Javascript / IE / Netscape

Hi NovaLogic,
Netscape has a JavaScript Console under Tools > Web Development that may help point you to the problem.

Hope that helps.