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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Create pop-up webpage

    On my page, after a link is cliked I would like a small webpage to accompany the link destination. For example, if someone clicks on "Minefield Map". They are taken to an Adobe Acrobat map and I want a small box to also open that has the map legend that they can move around, close, etc. Is this possible?

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    This little Earth.
    Posts
    383
    Thanks
    0
    Thanked 0 Times in 0 Posts
    u'll probably find eak's window generator helpful:
    http://www.eak.homeip.net/newwindowgenerator.html
    'If you don't stand for something, you'll fall for anything.'

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    262
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Or.

    How about adding the legend to the map page itself? Just a thought. Less windows = less choice = less confusion - most times. Plus, when I click a link and get more than one window I always chase the others and close them quick.

    Edited five minutes later after a brain wave. Create a link to open your popup with the legend in. In that popup have an onload event for the map window.

    or - this is really good...

    Have a link to open the map window and an onload within that one that opens the legend window. That way, whenever the map is opended so is the legend. Do I get a gold star?

    Good luck.
    Last edited by tommysphone; 12-06-2002 at 03:55 PM.
    Therapy is expensive, popping bubble wrap is cheap, you choose.

  • #4
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pop-up legend

    Thanks for your replies. I have few questions. I tried to use the "eak" site but I don't think I quite understand it. I am a GIS person just trying to get many maps that were made with an AML without a legend that I have inherited and need to put online.

    On the "eak" site, where do I put the code that is generated within the framework of what I previously discussed?

    As far as Tommy's response...what does is mean to have an "onload event" is that just a link or something that automatically loads the page w/out clicking anything?

  • #5
    Regular Coder
    Join Date
    Nov 2002
    Location
    Southern California
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can use javascript to create a popup window when a page is loaded. The onLoad command sits in the <body> tag of the HTML page where you want the popup to appear.

    For example...

    I am at your website and I click on the link titled "minefield map"

    this takes me to the HTML page "minefieldmap.html". In the code for "minefield.html" there is a tag called "body"

    It would look like this:

    <body onload = "newPop('map_legend.html','window1')">

    you would need another JavaScript in the <head> area of the pam page (minefieldmap.html in this example)

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var newWin=null
    var i=0

    function newPop(file,window1) {
    msgWindow=open(file,window1,'resizable=no,width=450,height=318,left=40,top=40');
    }
    //-->
    </SCRIPT>
    Everyone has the right to be stupid, some just abuse the privilege.


  •  

    Posting Permissions

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