Jump to content

Need Help with Placing Image Map on Php Page


Keptsoul

Recommended Posts

<?php

 

 

$interactive = 1;

 

$page_title = "Home";

 

$rank_check = 1;

 

include "header.inc.php";

 

mysql_query("UPDATE members2 SET last_seen = 0 WHERE id = '$userid' AND game = '$game'")or die(mysql_error());

mysql_query("UPDATE members2 SET last_seen = '$page_title' WHERE id = '$userid' AND game = '$game'")or die(mysql_error());

 

 

print "$openHTML";

 

 

if (file_exists("images/cloudinn/scroll3wgmnew.png"))

 

{

 

        $showImage = "<p>

                      <center>

                      <img src=$base_url/images/cloudinn/scroll3wgmnew.png width=\"800\" height=\"600\" border=\"0\">";

 

$greeting = "<p>These are the Lands that have been discovered so far in the Mystical World of Willow Grove.

Why not take your Companions travelling and explore a whole new part of  Willow Grove!

For a little more information about each of the lands, you can also refer to the <a href=\"#thelandsofWillow\"><b>Lands Of Willow Grove</b></a> section below. ";

 

 

}

 

print "<br/>$greeting

      <br/>$showImage

      </center>

      <p>

      <div align=\"center\">

      <hr noshade size=\"1\" width=\"75%\">

      </div>

      <br/>

      <br/>";

 

$x = 0;

$findLands = mysql_query("SELECT * FROM explore WHERE game = '$game' ORDER BY rand()");

$findLands2 = mysql_query("SELECT * FROM explore WHERE game = '$game'");

$numLands = mysql_num_rows($findLands2);

if ($numLands <= 0) { print "<p align=center><i>There are currently no Lands in the world of Willow Grove!</i></p>"; }

 

print "<!--land guts table start-->

      <a name=\"thelandsofWillow\"></a>

     

      <center> <table cellpadding=\"3\" cellspacing=\"0\" border=\"1\" class=\"mainbox\">

      <tr>

      <td class=\"mainheader\"> <font color='#8285C8'> About the Lands of Willow Grove</font></td>

      </tr>

      <tr>

      <td align=\"left\" valign=\"top\" class=\"mainboxtable\">

      <table width=\"900\" cellpadding=\"3\" cellspacing=\"0\" border=\"1\">";

 

while ($getLand = mysql_fetch_array($findLands))

{

$id = $getLand[id];

 

$y = $x % 3;

                if ($y == 0)

                {

                        echo "<tr>";

                }

                echo "<td valign='top' width='45' style=''>

                      <div style='padding:3px;'>

                      <a href='$base_url/$getLand[land_link]?game=$game&land=$getLand[id]'>

                      <img src='$base_url/images/user_images/opg_$game/landicons/icon_$id.gif' width='100' height='100' alt='$getLand[land_desc]' title='$getLand[land_desc]' align='right' style='margin-left:3px;border:1px solid black;'>

                      </a>

                      <a href='$base_url/$getLand[land_link]?game=$game&land=$getLand[id]'>

                      <b>$getLand[name]</b>

                      </a>

                      <br>

                    <font color='#8285C8'> $getLand[land_desc]</font>

                      </div>

                      </td>";

 

                if ($y == 4)

            {

          echo "</tr>";

            }

            $x++;

                }

                echo "<!--land guts table end-->

                      </table>";

 

 

print "</td>

      </tr>

      </table>

      $closeHTML";

?>

 

the above is the page as it exists on my site and is showing up correctly I need to add the following and no matter how I do it it gives me errors if someone could point out what I am doing wrong, I would greatly appreciate it.

Here is what I need to add/change

<center>

<font face=Goudy Old Style>

<p>

<map name="FPMap00">

<area coords="10, 102, 75, 132" shape="rect" href="http://www.willow-vie.com/listitems.php">

<area coords="11, 143, 75, 170" shape="rect" href="http://www.willow-vie.com/updates.php?game=1">

<area coords="8, 182, 91, 205" shape="rect" href="http://www.willow-vie.com/notices.php">

<area coords="7, 218, 102, 242" shape="rect" href="http://www.willow-vie.com/login.php?game=1">

<area coords="8, 253, 107, 279" shape="rect" href="http://www.willow-vie.com/login.php?game=1">

<area coords="8, 326, 131, 355" shape="rect" href="http://www.willow-vie.com/games.php?game=1">

<area coords="8, 363, 138, 391" shape="rect" href="http://www.willow-vie.com/listpets.php">

<area coords="10, 399, 117, 429" shape="rect" href="http://www.willow-vie.com/birthdays.php?game=1">

<area coords="8, 440, 115, 466" shape="rect" href="http://www.willow-vie.com/checklist.php">

<area coords="7, 475, 118, 505" shape="rect" href="http://www.freewebs.com/willowsgodess/index.htm">

<area coords="11, 514, 115, 545" shape="rect" href="http://www.willow-vie.com/stats.php?game=1">

<area coords="130, 521, 260, 560" shape="rect" href="http://www.willow-vie.com/sitemap.php">

<area coords="285, 529, 364, 559" shape="rect" href="http://www.willow-vie.com/tos.php?game=1">

<area coords="391, 525, 489, 561" shape="rect" href="http://www.willow-vie.com/privacy.php">

<area target="_blank" coords="513, 525, 599, 559" shape="rect" href="http://www.ftc.gov/bcp/conline/edcams/kidzprivacy/index.html">

<area target="_blank" coords="623, 526, 779, 559" shape="rect" href="http://fs19.formsite.com/Keptsoul/form164256604/index.html">

<area coords="11, 293, 92, 318" shape="rect" href="http://www.willow-vie.com/explore/index.php">

</map>

<img border="0" src="scrollmwgmap.png" width="800" height="600" usemap="#FPMap00"><br>

</p>

 

this is the map with coordinates I need to add in place of the current image that shows up. I'm losing my hair here if anyone knows how to make this work please let me know.

$showImage = '<center>
<font face=Goudy Old Style>
<p>
<map name="FPMap00">
<area coords="10, 102, 75, 132" shape="rect" href="http://www.willow-vie.com/listitems.php">
<area coords="11, 143, 75, 170" shape="rect" href="http://www.willow-vie.com/updates.php?game=1">
<area coords="8, 182, 91, 205" shape="rect" href="http://www.willow-vie.com/notices.php">
<area coords="7, 218, 102, 242" shape="rect" href="http://www.willow-vie.com/login.php?game=1">
<area coords="8, 253, 107, 279" shape="rect" href="http://www.willow-vie.com/login.php?game=1">
<area coords="8, 326, 131, 355" shape="rect" href="http://www.willow-vie.com/games.php?game=1">
<area coords="8, 363, 138, 391" shape="rect" href="http://www.willow-vie.com/listpets.php">
<area coords="10, 399, 117, 429" shape="rect" href="http://www.willow-vie.com/birthdays.php?game=1">
<area coords="8, 440, 115, 466" shape="rect" href="http://www.willow-vie.com/checklist.php">
<area coords="7, 475, 118, 505" shape="rect" href="http://www.freewebs.com/willowsgodess/index.htm">
<area coords="11, 514, 115, 545" shape="rect" href="http://www.willow-vie.com/stats.php?game=1">
<area coords="130, 521, 260, 560" shape="rect" href="http://www.willow-vie.com/sitemap.php">
<area coords="285, 529, 364, 559" shape="rect" href="http://www.willow-vie.com/tos.php?game=1">
<area coords="391, 525, 489, 561" shape="rect" href="http://www.willow-vie.com/privacy.php">
<area target="_blank" coords="513, 525, 599, 559" shape="rect" href="http://www.ftc.gov/bcp/conline/edcams/kidzprivacy/index.html">
<area target="_blank" coords="623, 526, 779, 559" shape="rect" href="http://fs19.formsite.com/Keptsoul/form164256604/index.html">
<area coords="11, 293, 92, 318" shape="rect" href="http://www.willow-vie.com/explore/index.php">
</map>
<img border="0" src="scrollmwgmap.png" width="800" height="600" usemap="#FPMap00">

</p>';

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.