Results 1 to 8 of 8

Thread: Problems to get popup working

  1. #1
    Join Date
    Oct 2007
    Posts
    46
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Problems to get popup working

    I've created an html page which is supposed to open as a popup window when a text link is clicked. I can't seem to get it to work though. The link is on this page http://www.solefitorthotics.com/testsite/services.html in the last sentence of text (must scroll to get there). I've managed to get two popups to work when you click on the "Legal notice" and "privacy policy" links. I want the same thing to happen in the "Click here to read about the Solefit Experience!" but can't for the life of me figure out why it won't work.

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,419
    Thanks
    1
    Thanked 245 Times in 240 Posts

    Default

    Hi there ozzie123,

    I think that you will find the cause of your woes here...
    Code:
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/contentpages.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Solefit Orthotics: Services</title>
    <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
    
    <script type="text/javascript" src="prototype.js"></script>
    <script type="text/javascript" src="scriptaculous.js?load=effects,builder"></script>
    <script type="text/javascript" src="lightbox.js"></script>
    <script type="text/javascript">
    <!--
    <!-- InstanceEndEditable -->
    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
    
    
    ...which when removed will effect a cure.

    coothead

  3. The Following User Says Thank You to coothead For This Useful Post:

    ozzie123 (06-01-2010)

  4. #3
    Join Date
    Oct 2007
    Posts
    46
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Wow, you mean I need to eliminate all of that code to make things work?

    ok, I did as you said and it worked!!! Thanks so much!!!!!

  5. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,419
    Thanks
    1
    Thanked 245 Times in 240 Posts

    Default

    Hi there ozzie123,

    Perhaps you are color blind and misunderstood my post.

    I was suggesting that you just remove the code snippet highlighted in red...
    <script type="text/javascript">
    <!--
    .
    The rest of the code was only there to help indicate its position in your document.

    coothead

  6. The Following User Says Thank You to coothead For This Useful Post:

    ozzie123 (06-04-2010)

  7. #5
    Join Date
    Oct 2007
    Posts
    46
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Another quick question. Now that I have the popup window working, I've noticed that the text will not stay within the borders when it is viewed in IE. It's fine in Safari and FF but, as usual, IE screws things up. Any ideas what could be wrong?

  8. #6
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,419
    Thanks
    1
    Thanked 245 Times in 240 Posts

    Default

    Hi there ozzie123,

    the text did not stay within the background-image, for me, in IE, Firefox, Safari or Opera.

    Adding this to your style sheet...
    Code:
    
    #experiencetext {
        display:inline; /* this is for IE */
     }
    #experiencetext p {
        line-height:14px;
     }
    
    ...effected a cure.

    coothead

  9. The Following User Says Thank You to coothead For This Useful Post:

    ozzie123 (06-04-2010)

  10. #7
    Join Date
    Oct 2007
    Posts
    46
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thanks Coothead. I guess I should have said that I was previewing on a Mac - which tends to be more forgiving than a pc. Thanks for the fix!

  11. #8
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,419
    Thanks
    1
    Thanked 245 Times in 240 Posts

    Default

    No problem, you're very welcome.

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
  •