问题描述
大约一个月前,我在我的网站上插入了一个
clickcounter,它控制着对几乎所有链接的访问,但是这个脚本
谁改变了每一个路径链接所以
搜索引擎无法识别我的链接,我的网站已经在
搜索引擎排名中丢失了很多;
这个是脚本:
< A href =" http://www.mywebsite.com/cgi-bin/click/go.cgi?http://www.fiao.it"
目标=" _blank">
FIAO
< / A>
< ; p class = notasxinf>
< script
src =" http://www.mywebsite.com/cgi-bin/click/stats.cgi?url = http://www.fiao.it
& type = js"> <!这个脚本将号码发送到柜台>
< / script>
accessi dal 13/12/2003
< / p>
上周有人告诉我插入这个javascript来解决我的所有问题(我是javascript begginner):
< a href =" http://www.fiao.it" (这里我添加了:target =" _blank")
onclick =" self.location.href =''http://www.mywebsite.com/cgi-bin/click/go。 cgi?h
ttp://www.fiao.it'';返回false">
FIAO.it< / A>
和mantein的另一个脚本:
< p class = notasxinf>
< script
src =" http://www.mywebsite.com/cgi-bin/click/stats.cgi?url = http://www.fiao.it
& type = js"> <!这个脚本将号码发送到柜台>
< / script>
accessi dal 13/12/2003
< / p>
虽然我添加了这个脚本:target =" _blank",但我无法提高到
打开第二个窗口所以我用这种方式改变了一点javascript(我是
javascript begginner):
< a href =" http:// www.fiao.it" target =" _blank"
onclick =" window.open(self.location.href =''http://www.mywebsite.com/cgi-bin/cl
ick / go.cgi?http://www.fiao.it''; return false)">
FIAO
< / A>
一开始它看起来有效,所以我把它插入几乎我所有的网站
(两天内努力工作),但半小时前我发现它了
不起作用:
现在打开一个新窗口,但柜台不计算!!!
Every我可以告诉我最后一个脚本中的错误在哪里,或者更好
我需要使用哪个脚本来获取计算点击次数的结果,打开
网站在一个新窗口,并留下可以通过
搜索引擎阅读的链接副本(可能没有使用noscript标签)?
谢谢每个回答这个问题的人都可以提出质疑
bye luca(来自意大利)。
About one month ago I have inserted in my web site a
clickcounter who controls the access to almost every link, but this script
who changed the path in every link so the
search engines couldn''t recognize my links and my web site has lost a lot in
search engines ranks;
this is the script:
<A href="http://www.mywebsite.com/cgi-bin/click/go.cgi?http://www.fiao.it"
Target="_blank">
F.I.A.O.
</A>
<p class=notasxinf>
<script
src="http://www.mywebsite.com/cgi-bin/click/stats.cgi?url=http://www.fiao.it
&type=js"> <!this script send the number to the counter>
</script>
accessi dal 13/12/2003
</p>
Last week a person said to me to insert this javascript to solve all off my
problems (I''m a javascript begginner):
<a href="http://www.fiao.it" (here I added: target="_blank")
onclick="self.location.href=''http://www.mywebsite.com/cgi-bin/click/go.cgi?h
ttp://www.fiao.it''; return false">
FIAO.it </A>
and to mantein the other script:
<p class=notasxinf>
<script
src="http://www.mywebsite.com/cgi-bin/click/stats.cgi?url=http://www.fiao.it
&type=js"> <!this script send the number to the counter>
</script>
accessi dal 13/12/2003
</p>
Whith this script though I have added: target="_blank", i couldn''t raise to
have the second window opened so I changed a little the javascript (I''m a
javascript begginner) in this way:
<a href="http://www.fiao.it" target="_blank"
onclick="window.open(self.location.href=''http://www.mywebsite.com/cgi-bin/cl
ick/go.cgi?http://www.fiao.it''; return false)">
FIAO
</A>
at the beginning it looks to work, so I inserted it in almost all my site
(working hard during two days), but half an hour ago I have discovered it
doesn''t work:
Now a new window open, but the counter does not count!!!
Every one can say to me where is the error in this last my script, or better
which script I need to use to obtain the result to count clicks, to open the
site in a new window and to left a copy of the link that could be read by
search engine (possibly without using the noscript tag)?
thanks lot to every who answer this may question
bye luca (from Italy).
推荐答案
不明白为什么要在新窗口中打开...? !
也许这就是为什么它不起作用?
你打电话给cgi但你不知道它是怎么运行的!
最好不要在新窗口中打开它。
当然在fiao.it他们有关于他们的柜台的常见问题解答。
尝试做他们正是他们的比如说,在测试其他方法之前...!
在你的代码中打开一个新窗口有一些错误:
纠正它那样:
< a href =" http://www.fiao.it" target =" _blank"
onclick ="
window.open('''http://www.mywebsite.com/cgi-bin/click/go。 cgi?http://www.fiao.it'');
返回false;"> FIAO< / A>
你可以试试:
< a href =" http://www.mywebsite.com/cgi-bin/click/go.cgi?http://www.fiao.it"
target =" vinivici" onclick =" window.open('''''''''vinivici'');"> FIAO< / A>
或:
< a href =" http://www.mywebsite.com/cgi-bin/click/go.cgi?http://www.fiao.it"
目标= QUOT; vinivici" onclick =" window.open('''',''vinivici'',''resizable = 1,me nubar = 1'');"> FIAO< / A>
或(全屏)(非常不推荐!)
< a href =" http://www.mywebsite.com/cgi-bin/ click / go.cgi?http://www.fiao.it"
target =" vinivici" onclick =" window.open(''''''''vinivici'',''width =''+
screen.width-26 +'',height =''+ screen。 height-50 +'',resizable = 1,top = 0,left = 0'');"> FIAO< / A>
-
********(enlever / remove [OTER_MOI] du /来自回复网址)*******
$ b $bStéphaneMORIAUX:mailto:st ***** ****************@wanadoo.fr
Aide aux Pages Perso(图片& couleurs,formulaire,CHP,JS)
http://perso.wanadoo.fr/stephane.moriaux/internet/
***************************************** ********* ************
Do not understand why you want to open in a new window ... ? !
Perhaps is it why it doesn''t work ?
You call a cgi and you don''t know how it runs !
It would be preferable to do not open it in a new window.
Certainly on fiao.it they have a FAQ about their counter.
Try to do exactly what they say, before to test other ways ... !
in your code to open a new window there are some mistakes :
Correct it like that :
<a href="http://www.fiao.it" target="_blank"
onclick="
window.open(''http://www.mywebsite.com/cgi-bin/click/go.cgi?http://www.fiao.it'');
return false;">FIAO</A>
You could try :
<a href="http://www.mywebsite.com/cgi-bin/click/go.cgi?http://www.fiao.it"
target="vinivici" onclick="window.open('''',''vinivici'');">FIAO</A>
or :
<a href="http://www.mywebsite.com/cgi-bin/click/go.cgi?http://www.fiao.it"
target="vinivici" onclick="window.open('''',''vinivici'',''resizable=1,me nubar=1'');">FIAO</A>
or (for a full screen) (very not recommanded ! )
<a href="http://www.mywebsite.com/cgi-bin/click/go.cgi?http://www.fiao.it"
target="vinivici" onclick="window.open('''',''vinivici'',''width=''+
screen.width-26+'',height=''+screen.height-50+'',resizable=1,top=0,left=0'');">FIAO</A>
--
******** (enlever/remove [OTER_MOI] du/from reply url) *******
Stéphane MORIAUX : mailto:st*********************@wanadoo.fr
Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)
http://perso.wanadoo.fr/stephane.moriaux/internet/
************************************************** ************
这篇关于我的脚本不起作用....叹息!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!