leoneonekenobi Posted December 23, 2009 Share Posted December 23, 2009 hi now in default oscommerce shop, when you hover over a link produces the 'title' 'id' text on a dull background. i wanted to know how do i remove these? is it possible? thanks leoneonekenobi Link to comment Share on other sites More sharing options...
germ Posted December 23, 2009 Share Posted December 23, 2009 hi now in default oscommerce shop, when you hover over a link produces the 'title' 'id' text on a dull background. i wanted to know how do i remove these? is it possible? thanks leoneonekenobi The only action I see on a default install when link hovering is the link changes color (because of the stylesheet). If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
germ Posted December 23, 2009 Share Posted December 23, 2009 If you just want to change the color it displays as when hovering, that would be here in the stylesheet. A:hover { color: #000000; text-decoration: none; } Sometimes after changing the stylesheet in order to see any change you have to hold the <Ctrl> key down while doing a page refresh in the browser to force the browser to reload all contents from the server, including the newly changed stylesheet. This works with IE and Firefox. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
leoneonekenobi Posted December 23, 2009 Author Share Posted December 23, 2009 hi sorry but not sure i explained my self correctly...now on oscommerce default when you hover your mouse over any product or text that has got the 'title' class added to it....it shows up as a default yellow colour with the text...now how do i remove these? example below example thanks leoneonekenobi Link to comment Share on other sites More sharing options...
germ Posted December 23, 2009 Share Posted December 23, 2009 You sure you want to do that? :unsure: I'm pretty sure this will "count against you" if you do HTML validation. I'm not sure if search engines would mark you lower for this or not... If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
leoneonekenobi Posted December 23, 2009 Author Share Posted December 23, 2009 well what i ideally wanted to do was re-style it/them.....ive got the javascript and css and initially i added it to the header.php to test it worked but doesnt show on other pages..also still shows the old 'title' colour and text over mine when i mouse_over a product. Link to comment Share on other sites More sharing options...
germ Posted December 23, 2009 Share Posted December 23, 2009 well what i ideally wanted to do was re-style it/them.....ive got the javascript and css and initially i added it to the header.php to test it worked but doesnt show on other pages..also still shows the old 'title' colour and text over mine when i mouse_over a product. The alt and title tags are added in the tep_image function in /catalog/includes/functions/html_output.php This code: //// // 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) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } Would become: //// // 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"'; // if (tep_not_null($alt)) { // $image .= ' title=" ' . tep_output_string($alt) . ' "'; // } Backup the file before making edits. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
leoneonekenobi Posted December 23, 2009 Author Share Posted December 23, 2009 cool....but it still shows on cart right_arrow.gif. as i say i found a smarter looking 'title' javascript and css on this site and wanted to replace my default 'titles' to those. site is - My link Link to comment Share on other sites More sharing options...
leoneonekenobi Posted December 23, 2009 Author Share Posted December 23, 2009 hi germ....thanks again for your responses..... i have 2 other issues to resolve with oscommerce 2.2a other than the one above. not sure if you can help but i thought i would. sorry for doing so....as time is money as they say. i have seen two features that i wanted to include on my site. one is - on the sony web store sony i wanted to mimic the top right text that you can hide and show...which has a few store strap lines on it. secondly i wanted to use an rss feed that worked ....as all the scripts on the addon section dont seem to work for me. sorry to ask so much...np if you cant help. regards leoneonekenobi Link to comment Share on other sites More sharing options...
germ Posted December 23, 2009 Share Posted December 23, 2009 Pardon my stupidity, but I can't find an osC store at the "My link" you posted. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
leoneonekenobi Posted December 23, 2009 Author Share Posted December 23, 2009 it was a link to the sony store which displayed a toggle hide and show...i wanted to try and add one to my oscommerce store. which is still in demo mode Link to comment Share on other sites More sharing options...
leoneonekenobi Posted January 12, 2010 Author Share Posted January 12, 2010 hi germ. ive basically found this script..sweet titles and i wanted to locate or find out how i can add this script to my oscommerce shop. regards leoneonekenobi Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.