Hot to make this script?

Discussion in 'JavaScript' started by hover1, Jan 15, 2010.

  1. #1
    I want to make a script where something just pops up on your screen when you visit a website. The same way as it does when you visit http://www.daniweb.com/

    How do i do that?
     
    hover1, Jan 15, 2010 IP
  2. harrierdh

    harrierdh Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you are refering to a LightBox. You probable should search the web for one that's already made.
     
    harrierdh, Jan 15, 2010 IP
  3. hover1

    hover1 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No i dont think it's lightbox....it looks a bit different at daniweb.com and it opens up automatically.

    Got any other idea??
     
    hover1, Jan 15, 2010 IP
  4. Bween

    Bween Peon

    Messages:
    29
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    http://www.shadowbox-js.com/


    Then use something like:

    window.onload = function(){
    
        // open a welcome message as soon as the window loads
        Shadowbox.open({
            content:    '<div id="welcome-msg">Welcome to my website!</div>',
            player:     "html",
            title:      "Welcome",
            height:     350,
            width:      350
        });
    HTML:
     
    Bween, Feb 3, 2010 IP