Agent_Trig Posted January 4, 2007 Posted January 4, 2007 Any idea why this is happening? I have added a link to a banner image on my homepage, and the link works but it has added a black border around the image which turns blue when I mouse over it :huh: Does anyone know how to disable this border? Cheers ;)
Agent_Trig Posted January 4, 2007 Author Posted January 4, 2007 border=0 ? Where would that be? The weird thing is that this border disappears when I remove the link. It only appears when I add the link to the image. And its a black border which changes blue when you mouse over the image.
Agent_Trig Posted January 4, 2007 Author Posted January 4, 2007 border=0 that should be after the width My border is set to 0. I have pasted in the Introduction text below and highlighted the image that I am trying to add a link to. Hopefully one of you guys will be able to see what I've done wrong.... define('TEXT_MAIN', '<img src="http://www.tifco.co.uk/images/free_delivery.jpg"><br> <br><img src="http://www.tifco.co.uk/images/january-raj-banner.jpg"><br><br>Here at <b>The Indian Furniture Company</b>, we offer a huge range of the highest quality Indian furniture. With many years experience in the furniture industry, we are able to source the finest products available. We import direct from the manufacturer. This cuts out the middle man, meaning we can offer excellent value for money whilst still maintaining the superior quality we pride ourselves on.<br><br> All our furniture is hand crafted by skilled Indian craftsmen with generations of experience. Only the highest grade timber is used in manufacturing each piece. Every strip of wood is kiln dried and seasoned which means that there is no chance of pieces splitting. We only use hardwoods Sheesham (Indian Rosewood) and Acacia for our furniture, no veneer is used. Just the natural wood with a supreme wax polish to enhance the beauty of the grain. When you buy a piece of furniture from The Indian Furniture company you can have the confidence that what you are buying will last you a lifetime.<table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . '</b></font>.'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Furniture For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Furniture'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');
squalid Posted January 4, 2007 Posted January 4, 2007 try - <img src="http://www.tifco.co.uk/images/free_delivery.jpg" border="0"><br> adding border="0" before end of img scr
squalid Posted January 4, 2007 Posted January 4, 2007 try - <img src="http://www.tifco.co.uk/images/free_delivery.jpg" border="0"><br> adding border="0" before end of img scr
squalid Posted January 4, 2007 Posted January 4, 2007 try - <img src="http://www.tifco.co.uk/images/free_delivery.jpg" border="0"><br> adding border="0" before end of img scr
Agent_Trig Posted January 4, 2007 Author Posted January 4, 2007 try - <img src="http://www.tifco.co.uk/images/free_delivery.jpg" border="0"><br> adding border="0" before end of img scr Superb!!! That's worked - cheers mate :thumbsup:
Guest Posted January 5, 2007 Posted January 5, 2007 Superb!!! That's worked - cheers mate :thumbsup: <img src="http://www.tifco.co.uk/images/free_delivery.jpg" border="0" /> You need the slash for it to be correct html img src is a self closing entity and the slash does it
squalid Posted January 5, 2007 Posted January 5, 2007 You need the slash for it to be correct htmlimg src is a self closing entity and the slash does it depends if you are trying to validate site or not, and if that is the case - there will be more pressing issues than '/' at end of img...
shooter-boy Posted January 5, 2007 Posted January 5, 2007 <?php echo '<a href="' . tep_href_link('PATH') . '"><img src="images/IMAGE.gif" border="0"></a>';?> Obviously replace PATH with the path and IMAGE with the image path... If you don't use tep_href_link then people can lose sessions... Rob Rob Bell - Inspired Graphix Customising osCommerce in Australia, and the world! View my profile for web and email links. I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture. However viewing my profile may provide links to my website or something like that which you may find useful.
shooter-boy Posted January 6, 2007 Posted January 6, 2007 What do you mean "image isn't clickable"...? The method i provided gives the only correct way to link an image without breaking the session. Rob Rob Bell - Inspired Graphix Customising osCommerce in Australia, and the world! View my profile for web and email links. I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture. However viewing my profile may provide links to my website or something like that which you may find useful.
squalid Posted January 6, 2007 Posted January 6, 2007 image isnt a link or clickable to go anywhere else, so problem of sessions not being carried over wont apply
shooter-boy Posted January 6, 2007 Posted January 6, 2007 But the topic of the thread is "Adding a link to an image, I can do that, but it's also adding a border around the image". I don't see how the image is not meant to be clickable when the topic explicitly says "Adding a link". But i guess either way, the OP has a solution to the problem. Rob Rob Bell - Inspired Graphix Customising osCommerce in Australia, and the world! View my profile for web and email links. I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture. However viewing my profile may provide links to my website or something like that which you may find useful.
shooter-boy Posted January 6, 2007 Posted January 6, 2007 Ah, forgive me... I have now re-read the thread, and looked at his code... Adding a link referring to physically getting the image to appear on the page... not adding a link to somewhere else... Ah... it's 4.45am over here... so hey ;) Rob Rob Bell - Inspired Graphix Customising osCommerce in Australia, and the world! View my profile for web and email links. I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture. However viewing my profile may provide links to my website or something like that which you may find useful.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.