1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

popup

Discussion in 'Black Hat SEO' started by Geowix, Feb 20, 2015.

Thread Status:
Not open for further replies.
  1. Geowix

    Geowix Newbie

    Joined:
    Feb 12, 2015
    Messages:
    8
    Likes Received:
    1
    Hello, is there any method to open popup its self while web-page is loading?
    Thanks
     
  2. Conor

    Conor Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,538
    Likes Received:
    5,856
    Gender:
    Male
    Location:
    South Africa
    Home Page:
  3. iAuthority

    iAuthority Jr. VIP Jr. VIP

    Joined:
    Jan 20, 2013
    Messages:
    2,043
    Likes Received:
    259
    Gender:
    Male
    Occupation:
    SEO,Link Building,Blogging.
    Home Page:
    there is no method or technique to open the popup, you can click the mouse pointer while page loading some times it may be a chance to open the popup, but you not able to identify the popup because the page appear as blank while loading
    there are various tools available for block the popup in the webpage even browser having settings to block the popup..
    here you can find the script to open the popup while loading.
    // class of popup
    .white-popup {
    position
    : relative;
    background
    : #FFF;
    padding
    : 20px;
    width
    :auto;
    max
    -width: 550px;
    margin
    : 0px auto;
    }

    // INLINE POPUP
    <div id="test-popup" class="white-popup mfp-hide">HELLO!</div

    // if click it the popup work
    <a href="#test-popup" class="open-popup-link">Show inline popup</a>

    // this it should open the popup when the page is loaded
    <script>
    $
    (document).ready(function() {
    $
    ('.open-popup-link').magnificPopup({type:'inline', midClick: true });
    });
    </script>
     
  4. Geowix

    Geowix Newbie

    Joined:
    Feb 12, 2015
    Messages:
    8
    Likes Received:
    1
    thank you for your answers.
     
  5. tiyowan

    tiyowan Regular Member

    Joined:
    Aug 7, 2013
    Messages:
    250
    Likes Received:
    136
    Use the CODE tags. :)
     
  6. K.H.R

    K.H.R Jr. VIP Jr. VIP

    Joined:
    Dec 9, 2013
    Messages:
    3,154
    Likes Received:
    1,006
    Gender:
    Male
    Location:
    BHW
  7. SEO Power

    SEO Power Elite Member

    Joined:
    Jul 14, 2014
    Messages:
    2,642
    Likes Received:
    682
    Occupation:
    Self employed
    Location:
    Houston, TX
  8. Vijendra

    Vijendra Newbie

    Joined:
    Dec 5, 2016
    Messages:
    4
    Likes Received:
    0
    Gender:
    Male
    I need a pop up that freezes Chrome...can anyone help?
     
  9. manpreet

    manpreet Regular Member

    Joined:
    Nov 3, 2011
    Messages:
    291
    Likes Received:
    26
    Alert ()
    Javascript on doc load
     
  10. Enigma32

    Enigma32 Regular Member

    Joined:
    Aug 28, 2010
    Messages:
    263
    Likes Received:
    132
    Not exactly.. You'd have to hack it. Set html & body to display: none; in CSS, set the popup modal to display, use javascript/jquery to change the css on close
     
  11. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,170
    Likes Received:
    2,388
    Occupation:
    blog creator
    Location:
    UK
    This is a 2yr old thread
     
  12. Enigma32

    Enigma32 Regular Member

    Joined:
    Aug 28, 2010
    Messages:
    263
    Likes Received:
    132
    Don't tell me that, tell Vijendra. They're the ones that bumped a 2 year old thread with a question, I was merely answering them.
     
  13. manpreet

    manpreet Regular Member

    Joined:
    Nov 3, 2011
    Messages:
    291
    Likes Received:
    26
    Can you freeze unbeforeunload using jquery modal?? I thought that was only possible with alert
     
  14. Enigma32

    Enigma32 Regular Member

    Joined:
    Aug 28, 2010
    Messages:
    263
    Likes Received:
    132
    No, like I said you would be hacking it. You'd put the page content in a wrapper container that is hidden so its loaded but not visible except for the modal.

    EXAMPLE.HTML

    <html>
    <head>
    <title>test</title>
    <style>
    div#contentWrapper { float: left; width: 100%; display: none; opacity: 0; z-index: 1;}
    div#modalWrapper { float: left; width: 100%; height: 100%; position: fixed; top: 0px; left: 0px; z-index: 2; opacity: 1; display: block; background: url('./img/transparent_white.png'); }
    div#modalOuter { float: left; width: 350px; max-width: calc(90% - 40px); transform: translate(-50%, -50%); position: absolute; top: 50%; left: 50%; border: 1px solid #000000; box-shadow: 3px 3px 3px #888888; background: #FFFFFF; max-height: 80%; height: auto; display: block; }
    div#modalContent { float: left; width: calc(100% - 40px); padding: 20px; overflow: auto; }
    </style>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script>
    $('#modalContent').click(function(e){
    e.stopPropagation();
    });
    $('#modalWrapper').click(function(){
    $('#modalWrapper').animate({ opacity: 0 }, 200, function(){
    $('#modalWrapper').hide(function(){
    $('#contentWrapper').show(function(){
    $('#contentWrapper').animate({ opacity: 1 }, 200);
    });
    });
    });
    });
    </script>
    </head>
    <body>
    <div id="contentWrapper">
    <h1>Test Content</h1>
    <div id="modalWrapper">
    <div id="modalOuter">
    <div id="modalContent">
    This is my modal
    </div>
    </div>
    </div>
    </body>
    </html>
     
  15. manpreet

    manpreet Regular Member

    Joined:
    Nov 3, 2011
    Messages:
    291
    Likes Received:
    26

    Brilliant. Have you got any workaround with popup blocker. I have been trying for days to use click() or something for target=_blank
     
  16. rick.box

    rick.box Newbie

    Joined:
    Mar 18, 2017
    Messages:
    8
    Likes Received:
    0
    Gender:
    Male
    skype me rick.anubhav
     
  17. Zwielicht

    Zwielicht Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    6,589
    Likes Received:
    11,734
    Gender:
    Male
    Occupation:
    Private Investigator
    Location:
    Riverside, California
    Home Page:
    [​IMG]

    This isn't the Hire a Freelancer or Want To Buy sections.

    This thread is also old and you responded to a user who hijacked this thread.

    You're getting a warning for this.

    Thread Closed
     
Thread Status:
Not open for further replies.