iBox to automatically come up?

Discussion in 'JavaScript' started by RyanDoubleyou, Jul 7, 2008.

  1. #1
    I have a thing called iBox on my website, http://tackypenguin.com. iBox is just like lightbox, and thickbox. I want to know, if I can make it automatically come up, on page load. I dont know Javascript, but I usually code in PHP. I do know HTML. Please help me if you can. Thanks - Ryan
     
    RyanDoubleyou, Jul 7, 2008 IP
  2. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #2
    Is it kind of floating layer? if yes then, make a simple layer <div id="pop", that is by default displayed and has "position:absolute;background-color:white" in style. Now on certain actin when you need to close it, use

    on button click
    onclick="javascript:document.getElementById('pop').display='none';"

    on href

    <a href=javascript:document.getElementById('pop').display='none';">.......

    I hope it helps.

    regards
     
    Vooler, Jul 9, 2008 IP