jiggens Posted October 2, 2007 Share Posted October 2, 2007 <?php $window = "'http://homes.pacificscene.com/popup.php?type=maps&ID=" . $row[0] . "','popUp','width=825,height=625,scrollbars=yes'"; if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/images/browse/maps/" . $ID . ".jpg")) { print '<p><a href="javascript:;"><img border="0" src="http://homes.pacificscene.com/images/browse/maps/' . $row[0] . '.jpg" onclick="MM_openBrWindow(' . $window . ')" />View Map</a></p>'; }?> Its showing up as a image instead of a link, am i missing something? http://homes.pacificscene.com/browse/community.php?ID=43 Quote Link to comment Share on other sites More sharing options...
MadTechie Posted October 2, 2007 Share Posted October 2, 2007 your using <img tags.. so it would be an image!! or am i missing something ? Quote Link to comment Share on other sites More sharing options...
Asperon Posted October 2, 2007 Share Posted October 2, 2007 the link is there, its just off to the side if you don't want the map to show untillyou click the link, get rid of teh img tag. <?php $window = "'http://homes.pacificscene.com/popup.php?type=maps&ID=" . $row[0] . "','popUp','width=825,height=625,scrollbars=yes'"; if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/images/browse/maps/" . $ID . ".jpg")) { print '<p><a href="javascript onclick="MM_openBrWindow(' . $window . ')" />View Map</a></p>'; }?> Quote Link to comment Share on other sites More sharing options...
jiggens Posted October 2, 2007 Author Share Posted October 2, 2007 ok, i got that i understand that but i remove the img source i get http://homes.pacificscene.com/browse/javascript%20onclick= So, i don't understand why thats happening? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.