SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Map to iFrame

    Hallo,
    i do have a difficult - at least form me - problem to solve.
    I do have a table which is constructed this way:

    <--1-->
    <2><3>
    <--4-->
    <--5-->

    Cell 1 is an image
    Cell 2 is an image map
    Cell 3 is the IFRAME
    Cell 4 and 5 is text

    I would like to open the mapped link when clicked (in cell 2) in the IFRAME (cell 3).

    ------------------------------------------------------------
    IMAGE MAP CELL 2
    ------------------------------------------------------------
    <IMG SRC="image2.jpg" USEMAP="#newlay1" BORDER="0">
    <MAP NAME="newlay1">
    <AREA SHAPE="RECT" COORDS="w1,x1,y1,z1" HREF="a.htm">
    <AREA SHAPE="RECT" COORDS="w2,x2,y2,z2" HREF="b.htm">
    <AREA SHAPE="RECT" COORDS="w3,x3,y3,z3" HREF="c.htm">
    <AREA SHAPE="RECT" COORDS="w4,x4,y4,z4" HREF="d.htm">
    <AREA SHAPE="RECT" COORDS="w5,x5,y5,z5" HREF="e.htm">
    <AREA SHAPE="RECT" COORDS="w6,x6,y6,z6" HREF="f.htm">
    <AREA SHAPE="RECT" COORDS="w7,x7,y7,z7" HREF="g.htm">
    <AREA SHAPE="RECT" COORDS="w8,x8,y8,z8" HREF="h.htm">
    <AREA SHAPE="RECT" COORDS="w9,x9,y9,z9" HREF="i.htm">
    <AREA SHAPE="RECT" COORDS="w10,x10,y10,z10" HREF="j.htm">
    <AREA SHAPE="RECT" COORDS="w11,x11,y11,z11" HREF="k.htm">
    <AREA SHAPE="RECT" COORDS="w12,x12,y12,z12" HREF="l.htm">
    <AREA SHAPE="RECT" COORDS="w13,x13,y13,z13" HREF="m.htm">
    <AREA SHAPE="RECT" COORDS="w14,x14,y14,z14" HREF="n.htm">
    <AREA SHAPE="RECT" COORDS="w15,x15,y15,z15" HREF="o.htm">
    </MAP>
    ------------------------------------------------------------
    .
    .
    .
    ------------------------------------------------------------
    IFRAME IN CELL 3
    ------------------------------------------------------------
    <iframe src="page.htm" name="myFrame" id="myFrame" width="98%" height="98%" frameborder="0"></iframe>
    ------------------------------------------------------------

    Is this possible and if so can you please provide me with some advise.

    Thank you.

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2004
    Location
    Madison, WI
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just do it like you would any other link to a frame. I don't remember off the top of my head, but in each of your link area defs in the map def just put target="myframe"

  3. #3
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi jinkas,

    thank you for the respons.
    It's working just fine.

    Regards


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
  •