Hi all. Has anyone noticed that after installation of sp2 (wish i hadnt), pop up images cont work. There is a fix for the popups in catalog over on oscommerce contributions. It goes like this:
Popup fix for IE with WinXP_SP2
---------------------------------------------------------------
Original author: Özcan Kaymak <o.kaymak@tiscali.nl>
Step 1. Backup your files first !!
Step 2. Edit the lines indicated below
---------------------------------------------------------------
Open catalog/popup_image.php (standard install 2.2MS2) or catalog/includes/javascript/popup_image.js (BTS)
Search for:
<script language="javascript"><!--
var i=0;
function resize() {
if (navigator.appName == 'Netscape') i=40;
if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
self.focus();
}
//--></script>
Replace by:
<script language="javascript" type="text/javascript"><!--
var i=0;
var s=0;
function resize() {
if (navigator.appName == 'Netscape') i=40;
if (window.navigator.userAgent.indexOf("SV1") != -1) s=20; //This browser is Internet Explorer in SP2.
if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i+s);
self.focus();
}
//--></script>
I am not a programmer, so could anyone work a similar fix for the wysiwyg editor in admin, as we are now unble to access the colour chats in popup windows.
Cheers
Kim





LinkBack URL
About LinkBacks






Bookmarks