Results 1 to 2 of 2

Thread: Popup Box II IE

  1. #1
    Join Date
    Feb 2005
    Location
    Virginia
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Popup Box II IE

    This question is regarding the "Popup Box II IE" script ( http://dynamicdrive.com/dynamicindex11/abox2.htm ).
    The purpose I am using it for would be best served by having the script activated 'onClick' only (e.g., by clicking a link) rather than 'onLoad'. I found out that I can activate it 'onClick' by adding the following link: '<a href="javascript:showbox('Div')">'; however, it still pops up when the window loads. I would like to know if anyone can tell me how to disable the 'window.onload' function and still be able to activate the script by clicking on a link or a linked image. Thank you.

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just remove this

    HTML Code:
    <script>
    
    window.onload=function(){
    new popUp(250, 50, 350, 175, "box1"...
    new popUp(250, 50, 350, 175, "box2"...
    }
    
    </script>
    From your HTML.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

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
  •