Jump to content

Code just broke down for no reason...


eaglelegend

Recommended Posts

This worked every day, every minute and every second, now me and another user just noticed my explore page has broke down, it says "error on page" and it wont change now...

 

<?php 
include("header.php"); 
?>

<h2>Explore</h2><p><p>


<center>Hello fellow Eagian!,<br><br>

So!, Where do you want to go?  all you have to do is click on the select arrow and choose where you want 
to go then click on the image that follows, enjoy your travels!<br><br>

<head>
<script language="javascript">
function linkrotate(which){
var mylinks=new Array()
mylinks[0]=""
mylinks[1]="http://www.eaglelegend.com/adopt.php"
mylinks[2]="http://www.eaglelegend.com/arcade.php"
mylinks[3]="http://www.eaglelegend.com/managepets.php"
mylinks[4]="http://www.eaglelegend.com/store.php"
mylinks[5]="http://www.eaglelegend.com/hospital.php"
mylinks[6]="http://www.eaglelegend.com/battle.php"
mylinks[7]="http://www.eaglelegend.com/news.php"
mylinks[8]="http://www.eaglelegend.com/mystore.php"
mylinks[9]="http://www.eaglelegend.com/userstores.php"

window.location=mylinks[which]
}


function showimage()
{
if (!document.images)
return
document.images.pictures.src=
document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
}
</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><form name="mygallery"><p>
<select name="picture" size="1" onChange="showimage()">
<option selected value="http://www.eaglelegend.com/images/maps/map.png">Select world!</option>
<option value="http://www.eaglelegend.com/images/maps/adoptionpic.png">Adopt a Pet</option>
<option value="http://www.eaglelegend.com/images/maps/arcadepicture.png">Arcade</option>
<option value="http://www.eaglelegend.com/images/maps/map.png">Manage Pets</option>
<option value="http://www.eaglelegend.com/images/maps/shoppicture.png">Visit the Store</option>
<option value="http://www.eaglelegend.com/images/maps/hospitalpicture.png">Hospital</option>
<option value="http://www.eaglelegend.com/images/maps/battlepicture.png">Battle</option>
<option value="http://www.eaglelegend.com/images/maps/newspicture.png">News</option>
<option value="http://www.eaglelegend.com/images/maps/shoppicture.png">My Store</option>
<option value="http://www.eaglelegend.com/images/maps/shoppicture.png">User Stores</option>
</select></p>
</form>
</td>
</tr>
<tr>
<td width="100%"><p align="center"><a href="javascript:linkrotate(document.mygallery.picture.selectedIndex)" onMouseover="window.status='';return true"><img src="http://www.eaglelegend.com/images/maps/map.png" name="pictures" width="160"
height="160" border=0></a></td>
</tr>
</table>
</body></center>

<?php
include("footer.php"); 
?>

Link to comment
https://forums.phpfreaks.com/topic/102005-code-just-broke-down-for-no-reason/
Share on other sites

You posted everything except for the PHP code.

 

Please describe the problem in greater detail ( like the exact wording of the error message includeing filename and line number ) or post the contents of header.php, and footer.php ( and possibly any include scripts )

Code just broke down for no reason...

 

No, there's always a reason.

 

If it says 'error on page' (presumably in the bottom-left status window), it means there's a javascript error.  If so, I'd suggest you post the problem AND the relevant javascript in the html/javascript forum because I doubt it's anything to do with php at all.

 

Have you tried clicking the error on page thing to find out what the error is? That might help.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.