Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2002
    Location
    Boca Raton , Fl
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with Popup Window with a dropdown box inside

    Please click on the Cartoons, News or 2002 finishes to see what I am trying to do.
    http://users.adelphia.net/~donbmjr/

    The popup windows at the above site we created by an action in Adobe GoLive they seem to work Ok put have at least one really serious flaw. When one of the popup windows comes up and you
    Click in another area of the page the popup drops to the back(normal), but if you click on another link the window for that link STAYS minimized on the task bar a serious navigation problem for a visitor.

    I have been working to solve this problem for four days. I am an
    AMATURE at web page design and java but am persistent and trying as hard as I can.

    Below is the java script from one of the popup window pages, perhaps there are better scripts or ways to do this and I would appreciate your ideas, we will have many of these types of popups.

    I am also having a major problem calling up these popups
    when using other Java Scripts to instead of using the Action in Golive.
    Is there a way to call up a popup window from a menu selection?
    For some reason I have a mental block on the call up part of a script, so if you would be kind enough when telling me how to call up I need GREAT detail.
    I am tired and frustrated and have posted at a several places and few want to respond, I have hopes that this is my last stop. I have patience I have many talents but I am struggling here

    Address of one of the popup’s

    http://users.adelphia.net/~donbmjr/c.../cartoons.html

    code for one of the dropdown menu scripts

    <html>

    <head>

    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
    <meta name="generator" content="Adobe GoLive 6">
    <title>cartoons</title>

    <body bgcolor="#ffffff" leftmargin="10" marginheight="0" marginwidth="10" topmargin="0">
    <table width="550" border="0" cellspacing="2" cellpadding="0" align="left">
    <tr>
    <td><SCRIPT LANGUAGE="JavaScript">
    var Image_array = new Array();
    //new Array("Image location",width,height,"discription image")
    Image_array[0] = new Array("tonyhappyface.jpg",500,300,"Stewart puts on a happy face");
    Image_array[1] = new Array("keepingtonyout.gif",500,300,"Keeping Tony out of trouble");
    Image_array[2] = new Array("rookiejimmie.gif",500,300,"Rookie Jimmie");
    Image_array[3] = new Array("whereistony.gif",500,300,"Where is Tony Stewart");
    Image_array[4] = new Array("tonybristol.jpg",500,300,"Tony takes over Bristol");
    Image_array[5] = new Array("tonyfillsup.jpg",500,300,"Stewart fuels up");
    Image_array[6] = new Array("bewarethe.gif",500,300,"Beware the Home Depot driver");
    //If you want to add more images use Image_array[4]= ...


    function setf(thisv)
    {
    img_changer.src = Image_array[thisv][0];
    img_changer.style.width = Image_array[thisv][1];
    img_changer.style.height = Image_array[thisv][2];
    }
    </script>

    <center>

    <select onchange="setf(this.selectedIndex)">
    <script language=javascript>
    for(i=0;i<Image_array.length;i++)
    {
    document.write("<option>" + Image_array[i][3]);
    }
    </script>
    </select>

    <br><br>
    <img src="(EmptyReference!)" name=img_changer border=1>
    </center>

    <script language=javascript>
    setf(0);
    </script></td>
    </tr>
    </table>
    <p></p>
    </body>

    </html>

    Thanks

    Don Miller

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Add this to the HTML of each of your popup pages...

    <body onload="self.focus();">
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #3
    New Coder
    Join Date
    Dec 2002
    Location
    Boca Raton , Fl
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    focus line

    when you use focus NONE of items in the drop down menu will work


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •