Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
anybody help me
how to check if person leaving site through mouse move toward the close button?
Thanks
you might need to look at Page Visibility API ,
Page Visibility API document.hidden is one way to access whethere user is on website or not , it works on switching tab , closing browser all..
here's nice explaination on that := Page Visibility API Info
notice the browser support at end.
IE Firefox Chrome Safari Opera
10+ 10.0+ 14.0+ 7.0+ 12.1+
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've been working on this website, and i cannot seems to disable the horizontal scrolling on mobile devices. I've looked up countless of questions concerning this problem, but none of them seem to solve my problem.
http://athostrainingcenter.be/home.html
So the overflow-x is disabled for desktop and even if I change the width of my browser on desktop it's also disabled. It's also disabled when I click on 'inspect' and view the website on a mobile device on my computer.
But when I open the website on my actual phone I can still scroll to the right. I wish there was just one solution that fits all.
Anyone who can give me any advice?
Cheers
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
This is my first attempt at creating a responsive website.
So, I have stylesheets loading depending on the size of device, meaning that some divs may or may not be visible.
One problem that I've encountered is that on mobiles I don't want to show a panel that has content and advertising. The issue I have is that I am still building that panel and making the mobile visitors download it but not displaying it. It's still being loaded and I'm being credited for it, but can't be clicked/seen and I'll have my hand slapped.
So, how do I only load ads (let's say an iframe or javascript) if the div is to be visible? Or even better maybe only load a complete div/panel if it's visible?
Or am I going about this the wrong way?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
In my webpage i have created a little div that contains an external site. My code looks like this:
var divPrev = createElement('div', 'divPrev', 'divPrevcss');
var objSf = createElement('object', 'objSf', 'objSfcss');
objSf.setAttribute('type','text/html');
objSf.setAttribute('data','http://'+oStxt.value);
divPrev.appendChild(objSf);
divMain.appendChild(divPrev);
I use this like a preview and it works with most of the websites, but with some, when the site loads into my div, after a few seconds it loads the site instead of my page, as if redirecting the browser.
An example is if I show into my div http://www.salomon.com.
How is possible prevent this type of behavior?
You can use an <IFRAME> to embed an other HTML document into your webpage. It has full cross-browser support.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am sorry, but I really not found the answer regarding my question that How to open a popup window after specific time ? I need to embed this in my webpage where a popup will appear after 10 second to greet the user. please help me to solve this, actually I am not a JavaScript guy
Since your question does not specify what attempts you've made I'm giving you guidelines rather than code. Feel free to ask questions about them
Use setTimeout to execute code after a certain amount of time.
Use alert to create a popup.
Note - some people consider alert base user experience - one way around this is using a modal-dialog
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How can I create a menu navigation that will be hidden on load, but will show when the user hovers over a button?
So for better understanding I did a simple preview how I want:
I know how to create a <div> with the menu the, only thing that I need to know is how to create the show/hide interaction with the mouse cursor.
What language do I need to use? Please tell me how can I create this. What should I search on the internet to create this? I'm not looking for complete code, just a small example or a pointer in the right direction.
I'd go with javascript.... Here is 2 links http://www.w3schools.com/jsref/event_onmouseover.asp
http://www.htmlgoodies.com/beyond/javascript/article.php/3470771
Pretty sure you are looking for these events ;)
You can use this
Demo:
http://tympanus.net/Tutorials/AnimatedBorderMenus/index5.html
Source:
http://tympanus.net/codrops/2013/09/30/animated-border-menus/