forum.coppermine-gallery.net
No Support => General discussion (no support!) => Topic started by: sbpoole on December 06, 2003, 02:27:21 am
-
I am creating some buttons in the anycontent.php file. I've created the buttons with the text already on them. I created links to the buttons using the following code. I have created 6 buttons linking them as shown in the code posted below. I wanted to do this because I created the custom buttons within the theme I was using and I was limited to the edited theme. I can now use any theme and display my custom buttons in anycontent without having to create them inside of each theme.
anycontent.php<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.2.0 //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002,2003 Gregory DEMAR <gdemar@wanadoo.fr> //
// http://www.chezgreg.net/coppermine/ //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team //
// see /docs/credits.html for details //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// ------------------------------------------------------------------------- //
starttable("100%"," ");
?>
<tr><td class="tableb" ><div align="center">
<br>
<a href="index.php" title="Home Page"><img alt="Home" src="buttons/home.gif" height="25" width="68" /></a>
<a href="about/index.php" title="About Me"><img alt="About me" src="buttons/about_me.gif" height="25" width="85" /></a>
<a href="mailto:sbpoole@ptmc.net" title="Contact me by Email"><img alt="Contact Me" src="buttons/contact_me.gif" height="25" width="100" /></a>
<a href="calendar/index.php" title="Order 2004 Calendars"><img alt="Calendars" src="buttons/calendars.gif" height="25" width="135" /></a>
<a href="collages/index.php" title="Order Collages"><img alt="Collages" src="buttons/collages.gif" height="25" width="85" /></a>
<a href="contact/index.php" title="Order Prints"><img alt="Order Prints" src="buttons/order-prints.gif" height="25" width="100" /></a>
<br><br>
<br><br><img alt="03cal (13K)" src="03cal.jpg" height="100" width="77" /> <img alt="04cal (13K)" src="04cal.jpg" height="100" width="77" />
<img alt="Logo-small (83K)" src="Logo-small.jpg" height="217" width="260" /> <img alt="4col (15K)" src="4col.jpg" height="100" width="77" /> <img alt="1col (15K)" src="1col.jpg" height="100" width="77" />
<br>
<font color="#000000" size="2"><strong>Be sure to order your <a href="http://www.sonnypoole.com/calendar/">
<font color="#3333ff">2004 Calendars</a><font color="#000000" > and <a href="http://www.sonnypoole.com/collages/">
<font color="#3333ff">Collages</a><font color="#000000"> by clicking on the buttons above<br>
<font color="#3333ff" size="4">Leave A Comment And Rate Your Favorite Photos!<br></font>
</td></tr></div>
<?php
endtable();
?>
Here is a typical button (https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.sonnypoole.com%2Fbuttons%2Fcalendars.gif&hash=ce00a5a1202b657eb3f6eebabd50206663f6ae47) the way I would like it, but on the webpage a wide border gets added. You can see the effect on my site at http://www.sonnypoole.com
A wide black border around them that changes to white upon mouseover is what I get. My question is, how does one remove borders around an image that is also a link?
Thanks for any help, as I tried to find help in the web without any luck.
-
Figured it out after playing around with it.
I simply added border="0" to the source image after calling the link.
<a href="index.php" title="Home Page"><img alt="Home" src="buttons/home.gif" border="0" height="25" width="68" /></a>
Thanks anyways, Sonny :P