#1
  1. No Profile Picture
    Jay
    Guest
    Devshed Newbie (0 - 499 posts)
    I am trying to make a image map of the US where you can click on a state and a window will popup...

    I can make the image map,
    and I can make the popup window,
    but I can't make the window popup when you click the imagemap...

    please help... here's what I have so far...

    example of what the popup should look like:
    http://www.unwashed.com/uvworld/test.shtml

    the imagemap
    http://www.unwashed.com/uvworld/usa.shtml

    If anyone can solve this problem for me, I would gladly give them a link on the site or something, thanks again!
  2. #2
  3. No Profile Picture
    dave
    Guest
    Devshed Newbie (0 - 499 posts)
    to popup a window when someone click a link put:

    <a href="JavaScript pen('URL','','SPEC')">

    where URL is the URL of the page you want to open on new window
    and SPEC is definition about your new window, example of SPEC : 'height=300 width=300 toolbar=1 location=1'

    you can put the following into SPEC:
    -height=value
    -width=value
    -toolbar=1/0(1 for yes and 0 for no)
    -scrollbars=1/0
    -location=1/0
    -status=1/0
    -menubar=1/0
    -resizeable=1/0
    -copyhistory=1/0


    dave
    join my newbie programmers community
    http://www.deja.com/~cyberdevelopers
    ------------------------------------
  4. #3
  5. No Profile Picture
    rycamor
    Guest
    Devshed Newbie (0 - 499 posts)
    Just testing...

    JavaScript:Open

    Javascript pen
  6. #4
  7. No Profile Picture
    rycamor
    Guest
    Devshed Newbie (0 - 499 posts)
    Ah... hello, moderator, DevShed administrators. Can we do something about the text parsing here?

    Replacing certain combinations of text with a cute little graphic is fine for AOL, but we're tying to have technical conversations here, and it kind of gets in the way.

    Dave here just tried to post some code showing how to do a Javascript operation using a colon and a lower-case "o" together, but the form handler chose to replace it with a graphic.

    Or is there some tag combination we can use to turn off the graphics in our posts?
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Sv. I. Zelina, Prigorje, Croatia
    Posts
    1
    Rep Power
    0
    To solve the problem, use:
    <script language="JavaScript">
    function WinOpen() {
    msg=open("null.htm","_new","toolbar=no,directories=no,menubar=no");
    }
    </script>

    and

    <a href="coords.map" target="_new" onclick="WinOpen()"><img ISMAP src="picture.gif">

    Notice "_new": by clicking on a map you FIRST trigger JavaScript which opens the popup window containing null.htm (put "Please wait..." in it if you like), and then IMAGEMAP fills that window.

    I guess that's what you wanted.

    Regards,
    Goran
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Posts
    25
    Rep Power
    0
    To rycamor

    Onw way to get around it is instead of using the ":" character itself,
    use the HTML code, i.e., &amp;#58;

    Example using &amp;#58;o - &#58;o
    Example using &#58;o -

Similar Threads

  1. popup window from a popup window
    By shiggins in forum HTML Programming
    Replies: 2
    Last Post: October 30th, 2003, 10:38 AM
  2. popup window from a popup window
    By shiggins in forum Java Help
    Replies: 0
    Last Post: October 30th, 2003, 09:53 AM
  3. javascript popup window reusing from multiple openers?
    By sengoku in forum JavaScript Development
    Replies: 2
    Last Post: October 1st, 2003, 11:44 AM
  4. Replies: 1
    Last Post: May 7th, 2003, 04:49 PM
  5. keep popup window in front?
    By chausfeld in forum HTML Programming
    Replies: 2
    Last Post: March 28th, 2002, 02:17 PM

IMN logo majestic logo threadwatch logo seochat tools logo