Zen Cart Logo
Forums / General Questions / Where to use onfocus()

Where to use onfocus()

Locked

Views: 616

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
14 Aug 2008, 3:37 PM
#1
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Where to use onfocus()

I am trying to customize a file written by DrByte for css flyout menu: tpl_categories_css.php.
Instructions are very simple:

// May want to add ............onfocus="this.blur()"...... to each A HREF to get rid of the dotted-box around links when they're clicked.
// just parse the $content string and insert it into each A HREF tag

So, did that like so:

if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
$content .= '<ul class="level1"><li><a href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '" onfocus="this.blur()">' . CATEGORIES_BOX_HEADING_WHATS_NEW . '</a></li></ul>';
}

on each A HREF.
Maybe I put the function in the wrong place, because I don't see the effect.
Thanks in advance.