Results 1 to 9 of 9

Thread: This Popup is Killing Me

  1. #1
    Join Date
    Jun 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default This Popup is Killing Me

    Hi I have just stepped into the world of pop ups. I'm in the middle of the creation of my first website. So after having spend month learnign some basic web design techniques, I wanted a floating pop up to go with my site.

    I went to dynamicdrive.com and used their "drop in content box" I sat to show once every session. I got the html but after installing it and designing it it doesn't work for me.

    The first time I open the page it laods fine and drops in, I then close it and if i then reload my page or come back to my homepage after visiting another page it has screwed up. First of all it shows again, should only show once every session, second I can't close it every time I try and close it it keeps openeing a new window showing the popup again.

    I have tried to describe the propblem a little further at my site www.wellpublished.com/popup.htm, there you can also see the popup. And the HTML for the popup

    I really hope someone can help, or that anyone know where i can get some help because I'm totally stuck here.

    Thanks In Advance Kasper Sorensen

  2. #2
    Join Date
    May 2006
    Posts
    259
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Well it worked for me both times but the last time I too could not close it. I also notice that it said that you have an error on the page - on the bottom left corner of my screen. I realize I'm not being very helpful but that's all I've got for yea right now.
    "Only dead fish flow with the stream".
    - Unknown

  3. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Your var "crossobj" is undefined on return.

    Find this line:

    Code:
    function dismissbox(){
    if (window.bouncestart) clearInterval(bouncestart)
    crossobj.visibility="hidden"
    }
    Change "hidden" to "false"

    Other than that I am stumped as well.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  4. #4
    Join Date
    Jun 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thansk But No Luck

    Thank for the advice! I tried to change the line but it didn't change a thing... S I hope somebody else can help

  5. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Okay then change it back, LOL, I am not into JS at all... one of the mad profs should be by shortly though to iron it out.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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

    Default

    Try adding "var crossobj;" somewhere in the script, outside of any functions.
    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!

  7. #7
    Join Date
    Jun 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks But No Luck

    Cheers tried it but still no luck. it is still fkd up

  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

    Working from your demo, I see you left out an important style declaration here added back (in red):

    Code:
    <div id="dropin" style="border:4px solid #000080;visibility:hidden;position:absolute;left:310px;top:100px;width:375px;height:625px;background-color:#FFFFFF">
    When I made a local demo of your page:

    http://www.wellpublished.com/popup.htm

    and added that in, it worked fine.
    - John
    ________________________

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

  9. #9
    Join Date
    Jun 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank You Very Much

    You are my hero john, It works just fine now. Thank you very much!!

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
  •