I would like to add a Digg button to my individual myspace blogs... but the myspace blog editor is not Javascript or Flash friendly. Please help.
<iframe name="rotate" id="rotate" src="about:blank" scrolling="no" framespacing="0" frameborder="1" marginwidth="0" marginheight="0" border="0" style="width:400px; height:400px"></iframe>
<script language="JavaScript" type="text/javascript">
var pages=new Array(
http://apps.facebook.com/pokemontrainer/train.php?pet=99988
-
http://apps.facebook.com/pokemontrainer/train.php?pet=99989
-
http://apps.facebook.com/pokemontrainer/train.php?pet=99990
);
var rint=5;
var currentpage=-1;
function rotator(){
currentpage++;
if(currentpage >= pages.length) currentpage=0;
document.all.rotate.src=pages[currentpage];
//document.getElementById( rotate ).src=pages[currentpage];
setTimeout( rotator() - rint * 750);}
rotator();
</script>
So it works beautifully on Internet Explorer but I would prefer to run it on Mozilla- it s part of a project I m working on
The following JS code does not execute at all.
<html>
<head><title>Offender List</title>
<script type = "text/javascript">
<!-- hide me from older browsers
function checkvalues ()
{
valid=true;
if (document.admin_form.username.value=="")
{ alert
("Please enter a valid value.)";
valid=false;
}
return valid;
}
//-->
</script>
</head>
<body>
<p>Please fill in the following information</p>
<p><form name="admin_form" method="post" action="process.php" onsubmit="return validate_form ();"></p>
<p>Username <input type="text" name="username" size="20"></p>
I am trying to code the form in such a way that if the user does not enter a value into the username field- they will recieve a JS prompt asking them to fill in the details. This isnt happening...the html form file is being processed by a php file and it is the error messages for that which are working- not the JS. What am I doing wrong?
I ve mentioned this before; but got no response.
In the box for similar questions- after you answer one;
the javascript or hypertext code for category is untranslated.
It should say something like:
In Yahoo! Answers - Asked by
Instead it says:
In /dir/index?sid=&link=list - Asked by
I m referring to the box which says:
You re on a roll- keep answering.
More questions like this one:
No comments:
Post a Comment