Need a little coding help Need a little coding help
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Need a little coding help

Started by sbpoole, December 06, 2003, 02:27:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sbpoole

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 &#40;C&#41; 2002,2003 Gregory DEMAR <gdemar@wanadoo.fr>                 //
// http&#58;//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         //
// &#40;at your option&#41; any later version.                                       //
// ------------------------------------------------------------------------- //

starttable&#40;"100%"," "&#41;;

?>

<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>&nbsp;
<a href="about/index.php" title="About Me"><img alt="About me" src="buttons/about_me.gif" height="25" width="85" /></a>&nbsp;
<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>&nbsp;
<a href="calendar/index.php" title="Order 2004 Calendars"><img alt="Calendars" src="buttons/calendars.gif" height="25" width="135" /></a>&nbsp;
<a href="collages/index.php" title="Order Collages"><img alt="Collages" src="buttons/collages.gif" height="25" width="85" /></a>&nbsp;
<a href="contact/index.php" title="Order Prints"><img alt="Order Prints" src="buttons/order-prints.gif" height="25" width="100" /></a>&nbsp;
<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" />&nbsp;&nbsp;&nbsp;
 <img alt="Logo-small (83K)" src="Logo-small.jpg" height="217" width="260" />&nbsp;&nbsp;&nbsp; <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
&#40;&#41;;

?>


Here is a typical button (https://coppermine-gallery.com/forum/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.

sbpoole

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