Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Popupbox script

  1. #1
    Join Date
    Dec 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Popupbox script

    1) Script Title:
    Popup Box (DHTML Announcement Box)

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex11/abox.htm

    3) Describe problem:
    Hello,

    In this script I want that people can't drag and drop the box. Can you please change the script that drag & drop is not possible? I want only the script for the box.

    Kind regards,
    Jordy

    I dont speak English very well, sorry:-)

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Change this:

    HTML Code:
    <td id="dragbar" style="cursor:hand; cursor:pointer" width="100%" onMousedown="initializedrag(event)">
    to:

    HTML Code:
    <td id="dragbar" width="100%">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    Ok, thank you very much! And what Javascript should I delete?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    None.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Dec 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, I have another question.

    How can I change the script that the script don't show the box on the page standard, but only if you click on a link with SHOW BOX?

    I hope you understand me, my English isn't very good
    Jordy

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Change:

    Code:
    <div id="showimage" style="position:absolute;width:250px;left:250px;top:250px">
    to:

    Code:
    <div id="showimage" style="visibility:hidden;position:absolute;width:250px;left:250px;top:250px">
    Make a link somewhere else on your page:

    Code:
    <a href="#" onclick="document.getElementById('showimage').style.visibility = 'visible';return false;">SHOW BOX</a>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Dec 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, and one more question:-)

    How can I add the box visibility to a link?

    For example:
    this is the link:

    header("Location: http://mysite.com/index.php?p=cl");

    And I want that if you click on this link you will see the box.

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's not a link. Could you please explain more fully what you want to accomplish?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Dec 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    On every page a user don't see the tutorial. But if he comes to a page called instructions, he will standard see the tutorial.

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Then only put the tutorial on the instructions page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •