Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
so this is a very very simple script. however... every time i run it inside chrome, by the "onmouseover" my entire page turns white. i have no idea why?
this is the script. it was way larger. but i seems to fail at this point...
already tried with other measurements. always the same.
function open(){
document.getElementById("gtext").style.marginTop = "37vh";
document.getElementById("gpic").style.marginTop = "37vh";
document.getElementById("gvid").style.marginTop = "37vh";
document.getElementById("gaudio").style.marginTop = "37vh";
}
maybe someone here can help me.
thanks.
Here my Pen:
http://codepen.io/anon/pen/RarJVR
Try renaming your function to something else like e.g. openMenu
Sounds like you need to debug your code (are you asking the community to do it?). For starters, opacity can only take number values (not vh):
if(document.getElementById("gtext").style.opacity == "37vh") {
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have in my JS code, some lines with binde, what is it? Why is it working and what does it mean?
On example with, type="checkbox":
if (document.binde.nameofthecheckbox.checked)
{
//...its true whens checked and do the code
}
or
somevar = document.binde.somehtmltagname.value;
somevar gets the value of "somehtmltagname"
No one can answer me, I only heard "never seen something like that before". I would be happy to know what it is, and not only using it because it works.
It is not well known, but document might define HTML elements with id specified as document[HTMLElement.ID] as such, if there is an <input id="binde"> on the page, it will point to that.
If not, try logging it:
console.log(document.binde)
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
Here's the codepen for the first one:
Bad Pen: https://codepen.io/anon/pen/jGpxrp
and here's the code for the second one:
Good Pen: https://codepen.io/anon/pen/QqBmWK?editors=1100
I can't seem to understand why the Yes and No buttons work for the "Good Pen", and not for the "Bad Pen", they are basically the same code?
If you check in "settings" and then go to the javascript tab you will see the difference. The first one is missing jquery it should have:
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I have now successfully installed jQuery zoom. But for no reason sometimes it works and sometimes not...
Take a look here
Working
Not Working
I also don't get a error in the console... What can be the reason for it and how can I fix that?
Kind regards
It really works. The one that doesn't work is because you have a transparent background on the image while the one what works have a white background.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
Would anyone be willing to explain how the following example works?
http://scrollsample.appspot.com/items
I don't understand how the URL gets updated (changes from /items?page=2 to /items?page=3)
I also do not understand how the rel tags get updated either (prev/next/canonical)
Thanks for any help you can provide.
Check out http://scrollsample.appspot.com/static/main.js
and look for the initPaginator function. There's a call to history.replaceState.
history.replaceState allows you to update the address bar without a page change.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I know there is a lot of question about this but I check all of them, nothing with the same error (I might have missed one or two post)..
So, I get this jsFiddle to know how to open a facebook share window inside the current window in order to have my own share button.
But this fiddle is not working on my local.
I didn't change the code first to test so it's not because I change something.
Chrome's console throw me this error pointed on the window.open():
Uncaught TypeError: boolean is not a function
What I missed ?
Thank you in advance
It works, the problem don't come from there,
Did you overwrited the function "open" in your code? like a global variable that you have set as a boolean ?
just ctlr + F your scripts to find a "open" or "var open" ^^