Someone just posted that Google wouldn't index his popup pages.
This is fair enough as they're accessed via JavaScript URL's and Google, etc can't follow that.
I had a look at the popup code and found that by changing the Design / Text -1 / 2175 from
javascript:ShowPopUp('%s',%s,%s);
Which generates code that spiders can't follow like
<A HREF="javascript:ShowPopUp('info%5f7%2ehtml',400,400);">Click here for larger image...</A>
to
%s" onclick="ShowPopUp(this.href,%s,%s);return false;
then we'd generate
<A HREF="info%5f7%2ehtml" onclick="ShowPopUp(this.href,400,400);return false;">Click here for larger image...</A>
which should do the job as we now have a normal <A..> tag with a spider friendly URL.
The JavaScript popup still works and the main page shouldn't change
(to the popup URL) as we return false. Even better if your customer didn't have a JavaScript browser
they'd still get to the popup page.
Notes: This works on popups using Display By: "Clicking Product Image" and "Text Link" but you
should not use "Extended Info Button".
Tested with IE6, Netscape 7 and Opera 6.
Bugs. It seems to fail on IE with NorCascade installed (but is fine on Opera and Netscape).
The simple solution would be not to use this patch or use NorTree instead.
Norman
PS If you really need to use Extended Info Buttons then replacing
Act_ExtendedInfoButton.html with:-
<INPUT TYPE="BUTTON" VALUE="NETQUOTEVAR:BUTTONLABEL" NAME="NETQUOTEVAR:BUTTONNAME" onmouseover=this.href="NETQUOTEVAR:LINK">
Seems to work but the generated code is too hairy for me to feel comfy with.
This is fair enough as they're accessed via JavaScript URL's and Google, etc can't follow that.
I had a look at the popup code and found that by changing the Design / Text -1 / 2175 from
javascript:ShowPopUp('%s',%s,%s);
Which generates code that spiders can't follow like
<A HREF="javascript:ShowPopUp('info%5f7%2ehtml',400,400);">Click here for larger image...</A>
to
%s" onclick="ShowPopUp(this.href,%s,%s);return false;
then we'd generate
<A HREF="info%5f7%2ehtml" onclick="ShowPopUp(this.href,400,400);return false;">Click here for larger image...</A>
which should do the job as we now have a normal <A..> tag with a spider friendly URL.
The JavaScript popup still works and the main page shouldn't change
(to the popup URL) as we return false. Even better if your customer didn't have a JavaScript browser
they'd still get to the popup page.
Notes: This works on popups using Display By: "Clicking Product Image" and "Text Link" but you
should not use "Extended Info Button".
Tested with IE6, Netscape 7 and Opera 6.
Bugs. It seems to fail on IE with NorCascade installed (but is fine on Opera and Netscape).
The simple solution would be not to use this patch or use NorTree instead.
Norman
PS If you really need to use Extended Info Buttons then replacing
Act_ExtendedInfoButton.html with:-
<INPUT TYPE="BUTTON" VALUE="NETQUOTEVAR:BUTTONLABEL" NAME="NETQUOTEVAR:BUTTONNAME" onmouseover=this.href="NETQUOTEVAR:LINK">
Seems to work but the generated code is too hairy for me to feel comfy with.
Comment