blagger Posted March 22, 2008 Share Posted March 22, 2008 I am trying it add an alt text to the following image code but whatever I do it messes the site up: <td colspan=15 width="960" height="125" background="<?php echo DIR_WS_IMAGES; ?>menu_buttons/deviltronics_top.gif"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_draw_separator('pixel_trans.gif', '960', '78'); ?></a></td> </tr> Could somebody help please. Quote Link to comment https://forums.phpfreaks.com/topic/97364-i-am-trying-it-add-an-alt-text-to-the-following-image-code/ Share on other sites More sharing options...
wildteen88 Posted March 22, 2008 Share Posted March 22, 2008 Where is the image you want to add a title to? What have you tried so far? Quote Link to comment https://forums.phpfreaks.com/topic/97364-i-am-trying-it-add-an-alt-text-to-the-following-image-code/#findComment-498215 Share on other sites More sharing options...
sqlnoob Posted March 22, 2008 Share Posted March 22, 2008 how does it mess it up? what error are you getting? Quote Link to comment https://forums.phpfreaks.com/topic/97364-i-am-trying-it-add-an-alt-text-to-the-following-image-code/#findComment-498247 Share on other sites More sharing options...
redarrow Posted March 22, 2008 Share Posted March 22, 2008 <img src="what_ever.jpg" alt="my alt saying" /> where yours please.......... Quote Link to comment https://forums.phpfreaks.com/topic/97364-i-am-trying-it-add-an-alt-text-to-the-following-image-code/#findComment-498250 Share on other sites More sharing options...
blagger Posted March 22, 2008 Author Share Posted March 22, 2008 The code deviltronics_top.gif and 'pixel_trans.gif' are the images. The errors I get vary, such as repeating headers and the header not showing at all. Quote Link to comment https://forums.phpfreaks.com/topic/97364-i-am-trying-it-add-an-alt-text-to-the-following-image-code/#findComment-498301 Share on other sites More sharing options...
wildteen88 Posted March 22, 2008 Share Posted March 22, 2008 You cannot add a title to background images, which deviltronics_top.gif is. I guess the tep_draw_separator function produces the relevant <img /> HTML code for displaying the pixel_trans.gif image. If you want to add a title to that image then you'll going to need to modify that function. Without seeing any code for that function I can't really suggest any thing. Quote Link to comment https://forums.phpfreaks.com/topic/97364-i-am-trying-it-add-an-alt-text-to-the-following-image-code/#findComment-498433 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.