SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image map on dynamic graph

    Hey guys, how are we all? Ok well ive made a graph and at each changing point i need to have a map point. Ive tried using the html map thing like so:

    PHP Code:
    //Draw HEIGHT lines
        $height_x2 = $height_x1 + $xgap;
        $height_y2 = $ymax - ($row_restofid['meaHeight'] * 2.1);
        
        imageline($image, $height_x1, $height_y1, $height_x2, $height_y2, $height_linecolor);
        ?><area shape="rect" coords="<?php echo $height_x1?>,<?php echo $height_y1?>,<?php echo $height_x2?>,<?php echo $height_y2?>" alt="<?php echo $row_restofid['meaHeight']; ?>" href="#"><?php

        $height_x1 
    $height_x2;
        
    $height_y1 $height_y2;
    As you can see, i am creating my lines (this is within a while loop, data from the DB) and then using the same coords to place the rect area, but i cant get it to work.

    I havent used image maps before and therefore do not know if this is correct to use it like this or not. Any help and advice would be greatly appreciated.

    Thanks in advance
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"

  2. #2
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorted nm
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"


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
  •