Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Member dannysouthern's Avatar
    Join Date
    Feb 2011
    Location
    Ireland
    Posts
    32
    Member #
    26633
    I've been asked to add a pop up/ alert to a website for a band that will have an add for their new album coming out. It will display when you first visit the site, Can anybody suggest a good way to do this? I know javascript will be the answer but i don't have a whole lot of knowledge on it.
    Any help would be great

  2.  

  3. #2
    Senior Member MHometchko's Avatar
    Join Date
    Oct 2011
    Posts
    106
    Member #
    29723
    Liked
    19 times
    This should help...

    http://www.quirksmode.org/js/popup.html

    If you are looking for a detailed example let me know

  4. #3
    Member dannysouthern's Avatar
    Join Date
    Feb 2011
    Location
    Ireland
    Posts
    32
    Member #
    26633
    Quote Originally Posted by MHometchko, post: 224623
    This should help...

    http://www.quirksmode.org/js/popup.html

    If you are looking for a detailed example let me know
    Thanks for you reply but I got it sorted already, it's always good to find new tutroials though.

    Cheers

  5. #4
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by dannysouthern, post: 224647
    Thanks for you reply but I got it sorted already, it's always good to find new tutroials though.

    Cheers
    Danny - can you tell us how you did it? Your solution may be helpful to others.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  6. #5
    Member dannysouthern's Avatar
    Join Date
    Feb 2011
    Location
    Ireland
    Posts
    32
    Member #
    26633
    The site I was doing it for was a wordpress site so I cheated and found a plugin that displays a modal box. I have a lot of college work on and a few other sites that I'm doing outside of college, and didn't really have much time to go looking for a good way to do it. as it is only going to be there for a week or so I settled for the lazy option.

  7. #6
    Senior Member MHometchko's Avatar
    Join Date
    Oct 2011
    Posts
    106
    Member #
    29723
    Liked
    19 times
    For AM and any others that would like to know:

    Code:
    <SCRIPT TYPE="text/javascript">
    <!--
    function popup(mylink, windowname)
    {
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
      href=mylink;
    else
      href=mylink.href;
    window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
    return false;
    }
    //-->
    </SCRIPT>
    then:

    Code:
    <BODY onLoad="popup('autopopup.html', 'ad')">
    where autopopup.html is located in your root server directory and 'ad' is the name of the window you'd like to display.
    AlphaMare likes this.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:00 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com