Questions tagged as 'javascript'

1
answer

Input only with V or F

Is it possible to put an input where it only receives (V) or (F)? <script type="text/javascript"> jQuery(function($){ $("#resposta_vouf").mask("(a)"); }); </script> <input type="text" id="resposta_vouf" />...
asked by 15.03.2015 / 08:50
1
answer

How can I change an item's menu with click event? [duplicate]

I'm working on this site and would like to be able to help me to appear only the submenu of the item that was clicked. Explaining a little, I put the image inside the <li> that contains the class sub-menu and assign...
asked by 15.03.2015 / 01:20
1
answer

Move object with position of another element on the screen with clientX

I have the following code that is functional in IE7 function ScrollControl() { var obj = window.event.srcElement; var evento = obj.componentFromPoint(event.clientX,event.clientY); window.div_cabecalho.scrollLeft = obj.scrollLeft; }...
asked by 21.11.2014 / 20:14
1
answer

Script for discount calculation

You have a plugin the agency has created. It works like this, it is set to work with the word ticket and discount, if it has these names in the% class, it takes the value in% it applies a display block and applies in the view price. > Ex:...
asked by 21.11.2014 / 18:24
1
answer

Full screen when loading page

How to give a Full Screen on a page as soon as the browser finishes loading it, but also works in Android OS browsers? I've already used the famous load to trigger the event after loading the window. $(window).load("on", function (){...
asked by 20.11.2014 / 00:58
1
answer

How to limit a player's chances in JavaScript

Friends, I'm developing a simple jigsaw game in JavaScript, no dummy, only with a odds counter, however, I'm not able to limit the player's odds and I'm having some syntactic errors. can you help me? Here is the code: HTML: <html>...
asked by 01.12.2014 / 13:59
1
answer

Problem with power play

I'm trying to create a gallows game. The game itself is almost ready. The problem is when it's time to check if the letter is the same as typed. I checked if the letter was equal and if it was not it gave a value to the control variable and d...
asked by 01.12.2014 / 14:24
1
answer

Box when passing mouse over the municipality

I'm using the GoogleMaps3 api and after rendering the map I would like to move the mouse over some area (which has already been programmed) to show the area code. What I've done so far was: hover over area: google.maps.event.addListener(set...
asked by 15.04.2015 / 21:12
1
answer

Enter values and click the button automatically at the established time

I have a website with a little screen with a login form. And my idea is to schedule automatic login for such a time. For example, I want to have a simple way to change the code as well. The idea is this: When giving 18:00 at night or...
asked by 15.04.2015 / 21:09
1
answer

document.form.submit () does not validate

I made a function that when the user clicks a button, it calls the action document.form.submit() , so alright, it sends the form normally. But in <form> I put onsubmit="return validarFormulario();" but it is not calling...
asked by 15.04.2015 / 17:12