Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Load website + Jquery popup

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #27223
    luukratief
    Member

    Hello,

    For a project im working on i need some help.

    I have a website. This website also sends mailings.
    Now in the email there has to be a link to a registration form.
    If the link is clicked the projectwebsite should load in a browser but it also have to show a popup.

    Something like this:
    http://fortysevenmedia.com/tuts/popupemail/#emailpopup

    notice that i link to an anchor #emailpopup
    The anchor doesnt show the popup.
    If you click Email someone, you can see what i want.

    Basically the href has to show the website with a layer over it.
    So if linked to http://www.domain.com it shows the normal website,
    when linked to http://www.domain.com/#regpopup it shows the website + a jquery popup over the website.

    Help plz, been bugging me for a few hours now :S

    #68268
    luukratief
    Member

    nobody knows the answer? I really need this fixed :S

    #68350
    holly
    Member

    Hello,

    why do you link direct to an anchor? Link directly to the side and build inside an Event to an onload-function like:

    <body onload="openmail()"> and put the function inside your $(document).ready(function(){});. Or call the function as the last one in the document.ready function of JQuery to execute it as the last one on the first load of the page.

    Greetings

    #68383
    luukratief
    Member

    I know that is possible, but the problem is that if people visit the website normally it must not show.
    thats why i want it in in anchor so i can link directly to it. E.g. link out of an email.

    #68415
    BaylorRae
    Member

    You need to use javascript to check if the window has the hash.

    You can get the window’s has with this

    Code:
    var hash = window.location.hash

    Then you need to see if the hash is equal to the popup’s id

    Code:
    if( hash.replace(/#/’, ”) == ’email_popup’ ) {
    $(‘#email_popup’).show();
    };
    #75932
    jjrendon
    Member

    is this method still new? I have some problem creating optin popup, unblockable popup with Jquery popup..

    #103569
    arisingpopli
    Participant

    ?

    #103570
    arisingpopli
    Participant

    hey dude can you please submit the full referenced data

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.