Menu
I am trying to make my ‘if’ statement below work with both the string “” and “http://”. I am using the || symbol for or, but it isn’t working. Any ideas?
<script language=”javascript”>
function updatefriends(){
var g=1;
while (g < 25){
if(document.getElementById(‘friendpicurl’+g).value == [COLOR=”Red”]”” || “http://”[/COLOR]){
document.getElementById(‘pic’+g).style.display = “none”;}
else{
document.getElementById(‘pic’+g).style.display = “block”;
}
g++;
}
}