popup

Popup when leaving website

六眼飞鱼酱① 提交于 2020-01-01 18:17:06
问题 I got a problem with JavaScript. I want a script that will pop-up on exit whole web-site a message with question and if visitor answers "NO" web page closes and if he answers "YES" he will be redirected to another page. I found a example at http://www.pgrs.net/2008/01/30/popup-when-leaving-website/ but it seems that it doesnt work for me. I couldnt find any solution. Pleae check my code and tell me maybe i'm doing something wrong ? Here`s my source code. Maybe somebody will see a problem. <

open css popup when page loads completed

五迷三道 提交于 2020-01-01 16:27:33
问题 I have pure css popup this pop works onclick button but i need to pop this div when page load is completed <div class="wrap"> <a href="#modal-one" class="btn btn-big">Modal!</a> </div> <!-- Modal --> <div class="modal" id="modal-one" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-header"> <h2>Modal in CSS?</h2> <a href="#" class="btn-close" aria-hidden="true">×</a> </div> <div class="modal-body"> <p>One modal example here! :D</p> </div> <div class="modal-footer"> <a href="#"

open css popup when page loads completed

∥☆過路亽.° 提交于 2020-01-01 16:27:29
问题 I have pure css popup this pop works onclick button but i need to pop this div when page load is completed <div class="wrap"> <a href="#modal-one" class="btn btn-big">Modal!</a> </div> <!-- Modal --> <div class="modal" id="modal-one" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-header"> <h2>Modal in CSS?</h2> <a href="#" class="btn-close" aria-hidden="true">×</a> </div> <div class="modal-body"> <p>One modal example here! :D</p> </div> <div class="modal-footer"> <a href="#"

Auto-closing a popup with a file to download

纵然是瞬间 提交于 2020-01-01 15:06:35
问题 I have a file, named download.php , which contains a file to be downloaded, so it has the following headers (declared with PHP): header("Content-Type: ".pathinfo($_GET['file'], PATHINFO_EXTENSION)); header("Content-Length: ". filesize($_GET['file'])); header("Content-Disposition: attachment; filename=". $_GET['file']); download.php is opened as a popup with jQuery by an other page. Now I want download.php to self-close (using JavaScript) after some seconds (so I'm secure that download started

How to open up a new tab in a pop-up?

人盡茶涼 提交于 2020-01-01 11:59:14
问题 I don't know too much about programming but somehow I managed to make a pop-up window work. However, I need that from inside the new window (the pop-up one) a button on the pop-up will open a new tab. But I don't need the new tab open in the main browser, I want it open in the same pop-up. Is this possible? How can I do it? I show both the pop-up code and the redirection code that is, at present, sending people to another tab in my web browser, but I need to do it in the same pop-up window

How can I create a custom popup window for iPhone?

流过昼夜 提交于 2020-01-01 08:53:25
问题 I want to create a custom popup window for iPhone which should look like this: What is the most correct way to implement this for iPhone and iPod devices? 回答1: The best way to do this is using a UIActionSheet. The code is here: UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"Share" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Facebook",@"Twitter", nil]; [actionSheet showInView:self.view]; A UIActionSheet comes from the bottom to

How can I create a custom popup window for iPhone?

那年仲夏 提交于 2020-01-01 08:52:46
问题 I want to create a custom popup window for iPhone which should look like this: What is the most correct way to implement this for iPhone and iPod devices? 回答1: The best way to do this is using a UIActionSheet. The code is here: UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"Share" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Facebook",@"Twitter", nil]; [actionSheet showInView:self.view]; A UIActionSheet comes from the bottom to

Angular bootstrap date-range-picker in a popup?

送分小仙女□ 提交于 2020-01-01 06:30:10
问题 I am trying to show a date-range picker in my angular app using ng-bootstrap. My code looks like following: <ngb-datepicker #dp ngModel (ngModelChange)="onDateChange($event)" [displayMonths]="2" [dayTemplate]="t"> </ngb-datepicker> <ng-template #t let-date="date" let-focused="focused"> <span class="custom-day" [class.focused]="focused" [class.range]="isFrom(date) || isTo(date) || isInside(date) || isHovered(date)" [class.faded]="isHovered(date) || isInside(date)" (mouseenter)="hoveredDate =

Android Pop up with arrow head

梦想的初衷 提交于 2020-01-01 05:30:10
问题 I need to create a pop up menu when I click on a button. The pop up should focused on what i clicked (I used to call that type of pop ups as arrow head pop ups). Here is the link to a sample image: 回答1: As per my understanding, you are trying to create Quick Actions bar . The following links should help you: http://www.xoriant.com/blog/android/android-ui-design-pattern-quick-action-bar.html http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/ 来源: https://stackoverflow.com

Avoiding a Windows Firewall popup

╄→尐↘猪︶ㄣ 提交于 2019-12-31 22:22:42
问题 My organisation produces a suite of Windows applications that make use of networking, and so when users run our software for the first time, the Windows Firewall (if it is running) brings up a pop-up, informing the user that our app(s) are trying to use the network, prompting the user to allow or deny access. This occurs with plenty of other apps (Spotify, to give one example), but ee'd like to prevent these popups from happening, as they can be a bit problematic for our users. Some