I'm trying to make the text appear with a time and the image appears with a slightly longer time difference, to give a more interesting effect. The html code and js I will provide. The problem is that where the images are in the same block as th...
The idea is to be able to download this module by npm install and be able to execute this package:
npm install nome-do-modulo --save
Once downloading could run on my project as follows:
nomeDoModulo = require('nome-do-modulo')
...
I'm developing a website where it should show the number of people who have confirmed their presence at an existing facebook event. According to the Graph API documentation, so I can check this data I should use the following code:
function ge...
I'm doing some initial testing with javascript, and I'm not succeeding when trying to change a parameter from my HTML code. The idea is that by clicking the "Message" button, the text will be updated to "New Text!" Here is the HTML and javascrip...
Instead of doing:
var html = '<a href="' + data.href + '" title="' + data.title + '">' + data.desc + '</a>';
I'm doing:
var html = '<a href="{href}" title="{title}">{desc}</a>';
html = html
.replace( '{href...
I'm in a doubt ... I have a PHP code, and when it gets to the "end of it" I would call a JavaScript!
Ex:
<?
....
sucesso('$a','$b');
?>
<script language="javascript">
function sucesso(a,b){
...
}
</script>
How to merge an array by replacing the equal numbers?
Example:
Home
array1 = [1, 2, 3];
array2 = [2, 4, 5];
array3 would be [1, 2, 3, 4, 5];
instead of% with%
How to merge an array by replacing the equal numbers...
I have the variable X
X = setInterval(function() { ...
and after a while I gave a stop in this setInterval with the function clearInterval(X)
How do I call this variable to continue the loop after it has been "deleted"?
I would like to make a simple animation that is executed in the click event assigned to an element. This is the site that I will use this animation.
Suppose my element is a circle, for example. I want it to click bigger and show some inform...