•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,070 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,597 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 701 | Replies: 3
![]() |
•
•
Join Date: Dec 2007
Posts: 52
Reputation:
Rep Power: 1
Solved Threads: 0
Hello everyone,
Ive been having trouble trying to incorporate the code for an image Map into a PHP global.inc.php document of my community.
The image map code is:
-------------------------And the PHP code im trying to add it to is:
Im not sure if this can be done but would be a huge help if I am able to provide a decent navigation menu. I tried to insert a Xara menu which would have been absolutely perfect but was really hard to do and I was unsuccessfull.
Any help would be much apreciated
Regards
Justin
Ive been having trouble trying to incorporate the code for an image Map into a PHP global.inc.php document of my community.
The image map code is:
<img name="headerbanner0" src="headerbanner.gif" width="950" height="125" border="0" usemap="#headerbanner" alt="" /> <map name="headerbanner"> <area shape="rect" coords="224,93,385,125" alt="newsroom"> <area shape="rect" coords="585,90,793,2081874365" href="http://cyberpetcity.com/view_page.php?page=1363&game=1" alt="cybertown"> <area shape="rect" coords="411,90,564,125" href="http://cyberpetcity.com/free_food.php?game=1" alt="soup"> <area shape="rect" coords="806,94,943,125" href="http://cyberpetcity.com/view_page.php?page=1362&game=1" alt="contact"> </map>
-------------------------And the PHP code im trying to add it to is:
if ($getGame[use_logo] == "1")
{
$gameName = "<img src=$base_url/images/user_images/opg_$game/logo.gif>";
}Im not sure if this can be done but would be a huge help if I am able to provide a decent navigation menu. I tried to insert a Xara menu which would have been absolutely perfect but was really hard to do and I was unsuccessfull.
Any help would be much apreciated
Regards
Justin
Hi justted,
Could you elaborate on what exactly the problem is? All I'm getting as far as a question is:
"How do I add the image map HTML to the global.inc.php file?"
Am I right, and if so:
global.inc.php
Could you elaborate on what exactly the problem is? All I'm getting as far as a question is:
"How do I add the image map HTML to the global.inc.php file?"
Am I right, and if so:
global.inc.php
<?php
$map = <<<END
<img name="headerbanner0" src="headerbanner.gif" width="950" height="125" border="0" usemap="#headerbanner" alt="" />
<map name="headerbanner">
<area shape="rect" coords="224,93,385,125" alt="newsroom">
<area shape="rect" coords="585,90,793,2081874365" href="http://cyberpetcity.com/view_page.php?page=1363&game=1" alt="cybertown">
<area shape="rect" coords="411,90,564,125" href="http://cyberpetcity.com/free_food.php?game=1" alt="soup">
<area shape="rect" coords="806,94,943,125" href="http://cyberpetcity.com/view_page.php?page=1362&game=1" alt="contact">
</map>
END;
if ($getGame[use_logo] == "1"){
$gameName = "<img src=$base_url/images/user_images/opg_$game/logo.gif>";
}
?>![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Google map convert into an image using php (PHP)
- Open In New Window Php (PHP)
- Image Map Rollover error (JavaScript / DHTML / AJAX)
- Image Rollover code (JavaScript / DHTML / AJAX)
- How would I make a tile map, that is easily alterable? (Python)
- Image link in an email from php (PHP)
Other Threads in the PHP Forum
- Previous Thread: email sending scripts of PHP
- Next Thread: calculate dynamic created text values


Linear Mode