Results 1 to 9 of 9

Thread: :-/ Auto Popup Window

  1. #1
    Join Date
    Jul 2005
    Location
    Planet Earth
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question :-/ Auto Popup Window

    Hi Guys,

    I want to make a popup window that will open up automatically when someone
    visits my site or one of the other pages.

    Could someone kindly give me the script for that.

    Redice

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    HTML Code:
    <!-- On page load: -->
    <script type="text/javascript">
    window.onload = function() { window.open("popup.htm"); }
    </script>
    
    <!-- On clicking a link: -->
    <a href="www.othersite.com" onclick="window.open('popup.htm');">Click Here Now!</a>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by redice
    I want to make a popup window that will open up automatically when someone visits my site or one of the other pages.
    You do realise that this sort of pop-up is exactly what blockers are designed to prevent, don't you?

    If you need to present information to a user, a pop-up is no longer a reliable way to do that.

    Mike

  4. #4
    Join Date
    Jul 2005
    Location
    Planet Earth
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What would you suggest is the best way to present info?

    Redice

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Actually, a blocker will (should?) not block a popup fired when the user clicks a link. This is standard behaviour, for usability reasons.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Jul 2005
    Location
    Planet Earth
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    But i want to get a message across.
    Most users dont tend to click on links. Whats the best way to get every
    user going to the site to see the content

    Redice

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Put it on the front page.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Jul 2005
    Location
    Planet Earth
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    LOL.
    How are those floating banners made. The ones that scroll into the middle
    of the page and stop? Iv seen a few that look pretty nice with pics and all
    and have a close button.

    Redice

  9. #9
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    Actually, a blocker will (should?) not block a popup fired when the user clicks a link.
    It depends entirely upon the software and the user's preferences. Some blockers are all or nothing. Others allow more selective behaviour. Even then, it's up to the user to determine that behaviour.


    Quote Originally Posted by redice
    How are those floating banners made.
    Positioned elements (usually div elements) controlled through a script. DD probably has one or two.

    Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •