Community Add-Ons
Javascript InfoBox
for osCommerce Online Merchant v2.2
The JSIB (Javascript InfoBox) is derived from the overLIB info boxes. It is completely controlled from the osC Admin side and requires the user to have zero knowledge of JavaScript.
It also includes a F/R (find and replace) option to create the InfoBoxes as well as a tagged word F/R and manual insert and code generator.
Worth downloading to view the install file and it will give you a better idea of what it can do.
The osC public support forum thread can be found here: http://forums.oscommerce.com/index.php?showtopic=143502
If you would like to see the words visible without mouse go over them just add small CSS to /catalog/includes/classes/jsib.class.php around line 415
You may change style and color and dotted line
PLEASE BACKUP FIRST
-----------------------------------
find:
-----------------------------------
// js code to create the box
$jss = '<a href="javascript:void(0);" '.$ON.'="return overlib(''.$this->data[$id]['body'].'''.$HEIGHT.$WIDTH.$LOCATION.$POSITION.$STICKY.$CLOSECLICK.$CAPICON.$CENTERPOPUP.$SHADOW.$CAPTION.$CAPCOLOR.$CLOSESIZE.$CAPTIONSIZE.$CLOSECOLOR.$CLOSEFONT.$FGCOLOR.$BGCOLOR.$BORDER.$BORDER.$CAPTIONFONT.$TEXTFONT.$CLOSEFONT.$CAPTIONFONT.$TEXTSIZE.$TEXTCOLOR.$FULLHTML.$FOLLOWMOUSE.$BACKGROUND.$OFFSETX.$OFFSETY.$TIMEOUT.$DELAY.');" onmouseout="'.$RETURN.' nd();" class="jsib">';
$jse = '</a>';
--------------------------------------
change with:
--------------------------------------
// js code to create the box
$styletext = "<style type="text/css">.hightext{padding: 0;border-bottom: 2px dotted #ffcc33;border-top: 2px dotted #ffcc33;text-decoration: none;}</style>";
$jss = $styletext . '<font class="hightext"><a href="javascript:void(0);" '.$ON.'="return overlib(''.$this->data[$id]['body'].'''.$HEIGHT.$WIDTH.$LOCATION.$POSITION.$STICKY.$CLOSECLICK.$CAPICON.$CENTERPOPUP.$SHADOW.$CAPTION.$CAPCOLOR.$CLOSESIZE.$CAPTIONSIZE.$CLOSECOLOR.$CLOSEFONT.$FGCOLOR.$BGCOLOR.$BORDER.$BORDER.$CAPTIONFONT.$TEXTFONT.$CLOSEFONT.$CAPTIONFONT.$TEXTSIZE.$TEXTCOLOR.$FULLHTML.$FOLLOWMOUSE.$BACKGROUND.$OFFSETX.$OFFSETY.$TIMEOUT.$DELAY.');" onmouseout="'.$RETURN.' nd();">';
$jse = '</a></font>';
------------------------------------
To see it in action visit : http://www.hepsikamera.com/product_info.php/products_id/1277
Note: you dont need to download file. It contains same information above
