Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Silly problem - simple solution?


Trout69

Recommended Posts

Hi All,

 

Just a quick one here....i am currently redesigning my store...using images/buttons as navigation rather than the standard breadcrumb.

 

However when adding an image as a link, the image is having the standard Blue for unclicked, and purple for clicked border. I've checked in the stylesheet but cannot find these colours (as i have amended them previsously).

 

Where are these colours defined, is there anything i can use to remove them?

 

Best Regards

 

Donna

Link to comment
Share on other sites

Hi All,

 

Just a quick one here....i am currently redesigning my store...using images/buttons as navigation rather than the standard breadcrumb.

 

However when adding an image as a link, the image is having the standard Blue for unclicked, and purple for clicked border. I've checked in the stylesheet but cannot find these colours (as i have amended them previsously).

 

Where are these colours defined, is there anything i can use to remove them?

 

Best Regards

 

Donna

 

hi Donna,

 

when using images as buttons you should exactly treat them that way ... meaning store them in the buttons folder and call them like the other buttons that are no form submits but just links (see the continue on the infopages like conditions.php)

 

the function used is tep_image_button

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

hi Donna,

 

when using images as buttons you should exactly treat them that way ... meaning store them in the buttons folder and call them like the other buttons that are no form submits but just links (see the continue on the infopages like conditions.php)

 

the function used is tep_image_button

 

Thanks Monica...i'll go hunting through my files and figure it out...

 

Best regards

 

Donna

Link to comment
Share on other sites

hi Donna,

 

when using images as buttons you should exactly treat them that way ... meaning store them in the buttons folder and call them like the other buttons that are no form submits but just links (see the continue on the infopages like conditions.php)

 

the function used is tep_image_button

 

Just another question - Even when i try and add a banner/button to advertise another site i still get the coloured link border, is their anyway to remove this, as it really doesn't look nice...lol

 

Best Regards

 

Donna

Link to comment
Share on other sites

Just another question - Even when i try and add a banner/button to advertise another site i still get the coloured link border, is their anyway to remove this, as it really doesn't look nice...lol

 

Best Regards

 

Donna

Donna, please post a code snippet here ...

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Donna, please post a code snippet here ...

 

Thats my issues, i don't have one....whenever i try and include an image as a link i have the same problem, so it must be a general defin somewhere regarding link colour, except the stylesheet i have does not use the standard blue or purple for clicked and uncliked links...hence why i'm stuck?

 

The code is paste is:

 

<p align="center"><a href="http://www.icra.org/sitelabel"><img src="https://www.ladyloving.com/images/credentials/en_aw_88x31.gif"></a>

 

and as you can see there is nothing in there to define the link border colour...my stylesheet definitions for links are:

 

A {
 color: #000000;
 text-decoration: none;
}

A:hover {
 color: #AABBDD;
 text-decoration: underline;
}

 

so still nothing there to cause the border....

 

I'm running out of ideas.

 

Regards

 

Donna

Link to comment
Share on other sites

Thats my issues, i don't have one....whenever i try and include an image as a link i have the same problem, so it must be a general defin somewhere regarding link colour, except the stylesheet i have does not use the standard blue or purple for clicked and uncliked links...hence why i'm stuck?

 

The code is paste is:

 

<p align="center"><a href="http://www.icra.org/sitelabel"><img src="https://www.ladyloving.com/images/credentials/en_aw_88x31.gif"></a>

 

and as you can see there is nothing in there to define the link border colour...my stylesheet definitions for links are:

 

A {
 color: #000000;
 text-decoration: none;
}

A:hover {
 color: #AABBDD;
 text-decoration: underline;
}

 

so still nothing there to cause the border....

 

I'm running out of ideas.

 

Regards

 

Donna

 

 

try this

 

<p align="center"><a href="http://www.icra.org/sitelabel"><?php tep_image('https://www.ladyloving.com/images/credentials/en_aw_88x31.gif'); ?></a>

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

if you check out the tep_image function, you will see tzhat is automatically makes the default border a 0 ... your version (which you should not use with os to keep code clean) forgot the border tag, so a border was added!

////

// The HTML image wrapper function

function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {

if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {

return false;

}

 

// alt is added to the img tag even if it is null to prevent browsers from outputting

// the image filename as default

$image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

if you check out the tep_image function, you will see tzhat is automatically makes the default border a 0 ... your version (which you should not use with os to keep code clean) forgot the border tag, so a border was added!

Thank again..i'll give it a go....learning new things everday here its great. :thumbsup:

Link to comment
Share on other sites

Thank again..i'll give it a go....learning new things everday here its great. :thumbsup:

 

Hmm...doesn't seem to work, but k=now i know what the problem is i'll see if i can find out how to fix it.

 

Thanks again for your help.

 

Donna :D

Link to comment
Share on other sites

However when adding an image as a link, the image is having the standard Blue for unclicked, and purple for clicked border. I've checked in the stylesheet but cannot find these colours (as i have amended them previsously).

 

Where are these colours defined, is there anything i can use to remove them?

I had the same issue, and it was driving me crazy, because, like you say, these colors aren't defined anywhere!

 

I finally just stumbled upon the answer. It's your computer! Not your website. The colors are determined by a setting in your 'Internet Options', under the 'general' tab, then click on 'colors...' at the bottom.

 

Now, the question is, how do I override that? Because I certainly can't make all my customers change their internet options to the colors that I want, LOL.

linkcolors.jpg

 

Cathi

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...