类似Yahoo统计的访问来源是如何得到的? <img src="http://www.abc.com/a.php?id=1234576" id记录的就是来源ID 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 昏倒,答非所问啊....可能我没说清楚意思统计器地址 a.com/star.php?testid.gif被统计的页面地址:b.html当统计器用这样的形式:<img src="http://a.com/star.php?testid.gif"/> 嵌入在b.html里面有用户从 c.html 点击链接进入 b.html ,统计器通过什么办法可以得到 c.html 这个地址??因为仅仅是在star.php里面用HTTP_REFERER获取的话,得到的就是b.html了,那不是所要的结果! 那就不是精确统计了,没办法的。如过没有前面的js,可以实现相同的效果,我想yahoo绝对不会出现前面的东西,那岂不是浪费。大部分都用 count.js 做的而不是使用<img ,他内部会嵌一个iframe,同时把referer读取过来,并在此调用count.js 但是 好像用<img 方式插入的 php脚本里面 写javascript 也无法运行啊 <img src="http://www.test.com/star.php" />star.php 的内容document.write("<script src=http://www.test.com/star2.php></script>");经测试,这个脚本没有执行:( up 继续等答案<img 中插入js脚本 应该无法运行的吧 加分,也可论坛搜索搜索注意html、js和PHP环境的区别 star.php 的内容echo 'document.write("<script src=http://www.test.com/star2.php> </script>")'; 试试能不能运行 不用js,而这个页又不是PHP,能统计吗? 在IE7中,如果是如下的Html写法, <img src="javascript:alert('蝈蝈俊到此一游!')" >,你看到的效果将是这个图片不存在那种情况。但是,在IE6中,则上述脚本会被执行。 . 有没有办法让js在这样的情况下执行<img src="http://www.test.com/star.php" />在star.php中写出js代码,并执行?这个是问题的关键 <!--function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count] && pluginList[count].src)sSrc = pluginList[count].src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Coord_Callback = str;pluginList[index].__RP_Coord_Callback_Left = splitList[0];pluginList[index].__RP_Coord_Callback_Top = splitList[1];pluginList[index].__RP_Coord_Callback_Right = splitList[2];pluginList[index].__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Url_Callback = str;pluginList[index].__RP_Url_Callback_Vid = splitList[0];pluginList[index].__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback = str;pluginList[index].__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Connection_Callback = str;pluginList[index].__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}//-->我是一个雅虎图片统计中放在图片中的js我理解可能是这样的:如果客户端不支持js,但我的这个相当于链了一个框架网页,框架网页内是否支持js。比如:客户网站不支持js,但我雅虎的支持js,如果用了雅虎的html页是否就可以取得客户的js大家研究一下吧! 找到标准答案了,就是:不用动那个脑子了。呵呵 <img 标签插入 是不支持js输出 当然就更谈不上运行了yahoo的也不支持唉~~失望本来指望能找到什么奇技淫巧的 请教UCenter Home安装问题 使用DG库生成验证码 探討權限問題 PHP类型问题, 谁能搞定谁就是高手! 求统计网站投放,点击率,广告设置等功能的平台 在线等待:在iis中配置php时,出现这样的错误 表操作问题 惭愧!PHP中的整除是怎么写的呀! 无法搞定的问题 为何preg_match 匹配不到求大神指点 各位帮忙看一下,我真的晕了.谢谢了 如何使程序每查询到一条结果即显示在网页上?
可能我没说清楚意思统计器地址 a.com/star.php?testid.gif
被统计的页面地址:b.html当统计器用这样的形式:<img src="http://a.com/star.php?testid.gif"/> 嵌入在b.html里面有用户从 c.html 点击链接进入 b.html ,统计器通过什么办法可以得到 c.html 这个地址??
因为仅仅是在star.php里面用HTTP_REFERER获取的话,得到的就是b.html了,那不是所要的结果!
经测试,这个脚本没有执行:(
<img 中插入js脚本 应该无法运行的吧
<img src="http://www.test.com/star.php" />
在star.php中写出js代码,并执行?这个是问题的关键
function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count] && pluginList[count].src)sSrc = pluginList[count].src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Coord_Callback = str;pluginList[index].__RP_Coord_Callback_Left = splitList[0];pluginList[index].__RP_Coord_Callback_Top = splitList[1];pluginList[index].__RP_Coord_Callback_Right = splitList[2];pluginList[index].__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Url_Callback = str;pluginList[index].__RP_Url_Callback_Vid = splitList[0];pluginList[index].__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback = str;pluginList[index].__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Connection_Callback = str;pluginList[index].__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}
//-->我是一个雅虎图片统计中放在图片中的js
我理解可能是这样的:如果客户端不支持js,但我的这个相当于链了一个框架网页,框架网页内是否支持js。比如:客户网站不支持js,但我雅虎的支持js,如果用了雅虎的html页是否就可以取得客户的js大家研究一下吧!
yahoo的也不支持
唉~~失望
本来指望能找到什么奇技淫巧的