Jump to content

[SOLVED] problem with match function... please help


shedokan

Recommended Posts

I want to find if it's like http://images.neopets.com/neoboards/avatars/sb.gif

and I get an error says there is no such function match...

 

 

<script language="javascript" type="text/javascript">
<!-- 
function showImage(avatarImage){
if(avatarImage.match("\http:\/\/images\.neopets\.com\/neoboards\/avatars\/[a-zA-Z0-9_]+\.gif")){
var avatarImageS=avatarImage.split(".");
avatarImageS=avatarImageS[2].split("/");
avatarImage=avatarImageS[3];
}
document.getElementById("image").src="http://images.neopets.com/neoboards/avatars/"+avatarImage+".gif";
}
//-->
</script>
<form action="process.php" method="POST">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td></td>
<td align="right"><img id="image" src="" alt=""></td>
</tr>
<tr>
<td>avatarImage:</td>
<td><input type="text" name="image" onkeyup="showImage(this.value)" maxlength="70" value="http://images.neopets.com/neoboards/avatars/sb.gif"></td>
</tr>
</table>
</form>

 

thanks.

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.