Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

putting alt tags on the search button


jaminunit

Recommended Posts

Hi there Folks, can sombody please help me get alt tags onto my search button and my send to friend button?

 

all I get at the moment is <img scr="images/template/search.gif"> as my alt tag when I mouse over it on the index.php. :)

 

I also get a simaler thing on the tell a friend button.

 

Thanks All

 

J

Link to comment
Share on other sites

The standard shop displays it correctly so you must have altered the code. Try pasting that here so it can be looked at.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

great thanks champ!

 

this is the tell a friend one.

<!-- tell_a_friend //-->
         <tr>
           <td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_TELL_A_FRIEND);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('tell_a_friend', tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get'),
                              'align' => 'center',
                              'text' => tep_draw_input_field('to_email_address', '', 'size="16"') . ' ' . tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']) . tep_hide_session_id() . '<br>' . BOX_TELL_A_FRIEND_TEXT);

 new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- tell_a_friend_eof //-->

 

 

 

and this is the search

<!-- search //-->
         <tr>
           <td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_SEARCH);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
                              'align' => 'center',
                              'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . '' . tep_hide_session_id(). '<br>'. tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

 new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- search_eof //-->

 

thanks again for your help Jack_mcs :thumbsup:

Link to comment
Share on other sites

I replaced my search box code with yours and it worked fine. Maybe your browser is hung up. Does popup text work for anything else on the page?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I replaced my search box code with yours and it worked fine. Maybe your browser is hung up. Does popup text work for anything else on the page?

 

Jack

 

yeah it works for every thing els, exept for the search and email this to a friend. Hmmmm

 

you can have a look at what I'm getting here.

 

http://www.ozdesigner.com/index.php

 

Where are the alt tags kept?

 

Thanks a million champ.

Sorry I'm a newbie....

 

But loving lerning all this. :thumbsup:

 

J

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...