Results 1 to 3 of 3

Thread: Why doesn't this pop up work in firefox

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

    Lightbulb Why doesn't this pop up work in firefox

    1) Script Title: Drop-in content Box

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici.../dropinbox.htm

    3) Describe problem: It just doesn't work in firefox, can anyone tell me why? It works in opera anf iexplorer. The pop up is located on this page

    The code from the header of the document:

    <!--Dropin Box Header Start-->
    <script language="JavaScript1.2">

    // Drop-in content box- By Dynamic Drive
    // For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
    // This credit MUST stay intact for use

    var ie=document.all
    var dom=document.getElementById
    var ns4=document.layers
    var calunits=document.layers? "" : "px"

    var bouncelimit=32 //(must be divisible by 8)
    var direction="up"

    function initbox(){
    if (!dom&&!ie&&!ns4)
    return
    crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
    scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
    crossobj.top=scroll_top-250+calunits
    crossobj.visibility=(dom||ie)? "visible" : "show"
    dropstart=setInterval("dropin()",50)
    }

    function dropin(){
    scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
    if (parseInt(crossobj.top)<100+scroll_top)
    crossobj.top=parseInt(crossobj.top)+40+calunits
    else{
    clearInterval(dropstart)
    bouncestart=setInterval("bouncein()",50)
    }
    }

    function bouncein(){
    crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
    if (bouncelimit<0)
    bouncelimit+=8
    bouncelimit=bouncelimit*-1
    if (bouncelimit==0){
    clearInterval(bouncestart)
    }
    }

    function dismissbox(){
    if (window.bouncestart) clearInterval(bouncestart)
    crossobj.visibility="hidden"
    }

    function truebody(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }


    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = ""
    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) {
    offset += search.length
    end = document.cookie.indexOf(";", offset)
    if (end == -1)
    end = document.cookie.length;
    returnvalue=unescape(document.cookie.substring(offset, end))
    }
    }
    return returnvalue;
    }

    function dro****ot(){
    if (get_cookie("droppedin")==""){
    window.onload=initbox
    document.cookie="droppedin=yes"
    }
    }
    dro****ot()
    </script>
    <!--Dropin Box Header End-->

    The actual drop in Box


    <!--Dropin Box Start-->
    <div id="dropin" style="border:4px solid #f26522;visibility:hidden;position:absolute;left:310px;top:100px;width:375px;height:390px;background-color:#FFFFFF; z-index:0">
    <div align="right">
    <a href="#" onClick="dismissbox();return false" target="_blank">[Luk] </a>
    </div>
    <table width="100%">
    <tr>
    <td width="0"></td>
    <td colspan="2">
    <p align="center"><strong>F&aring; Pokermagasinet PocketACES <br />
    gratis! Leveret direkte<br />
    i din egen inbox.</strong></p></td>
    <td width="1"></td>
    </tr>
    <tr>
    <td width="0"></td>
    <td colspan="2"><div align="center"><span class="style6">eMagasinet</span><span class="style7"> Pocket<span class="style2">ACES</span></span> </div></td>
    <td width="1"></td>
    </tr>

    <tr>
    <td width="0"></td>
    <td width="204" valign="top"><p><strong>eMagasinet PocketACES er et gratis poker magasin der udkommer 2 gange i m&aring;neden.</strong></p>
    <p>Et gratis <strong>Poker Magasin?</strong> Jep det er korrekt, <em><strong>Poker Magasinet</strong></em> <em><strong>&quot;PocketACES&quot;</strong></em> er et s&aring;kaldt eMagasin der bliver sendt til dem der v&aelig;lger at abonnere. Det bliver sendt direkte til din email adresse 2 gange om m&aring;neden. <a href="/ezine/"><em>L&aelig;s mere.</em></a></p>
    <span class="style4">Abonnér Pĺ</span> <a href="http://www.pocketaces.dk/lists/?p=subscribe" target="_blank">PocketACES</a> </td>
    <td width="150" valign="top"><div align="center">
    <p><a href="http://www.pocketaces.dk/lists/?p=subscribe" target="_blank"><img border="0" src="/images/diverse/emag/pacove150.jpg" width="150" height="209"></a></p>
    </div></td>
    <td width="1"></td>
    </tr>
    <tr>
    <td width="0"></td>
    <td colspan="2"><em class="artsumdes">Jeg hader <strong>SPAM</strong> lige s&aring; meget som du g&oslash;r. Jeg vil aldrig s&aelig;lge, eller dele din email adresse med andre p&aring; nogen m&aring;de. </em></td>
    <td width="1"></td>
    </tr>
    </table>
    </div>
    <!--Dropin Box End-->

    Hope you guys can help

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Umm.. I just tested it in FireFox.. It works fine here. If come across any more problems just let me know.
    - Mike

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

    Default cheers mate

    Thank you , I had a feeling about that it was just my firefox browser that didn't do what i wanted it to do. But thanks anyway

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
  •