<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
    <channel>
        <title>恐龙志 - evolve the web!</title>
        <link>http://www.w3cool.com/</link>
        <description>The Place where deploy our Ideas and Paranoeas!</description>
        <language>zh-cn</language>
        <copyright>Copyright 2009</copyright>
        <lastBuildDate>Sun, 17 Jun 2007 01:29:26 +0800</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>我的iCast,nTelevise已修复下载</title>
            <description><![CDATA[<p>前段时间忙，CMS系统出了点问题，经常把我上传的文件清空。</p>
<p>在这里重传，希望需要的朋友喜欢</p>
<p><a href="http://www.w3cool.com/upload/nTelevise.rar">点击下载文件</a></p>]]></description>
            <link>http://www.w3cool.com/2007/06/17/icastntelevise.html</link>
            <guid>http://www.w3cool.com/2007/06/17/icastntelevise.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">富媒体|nTelevise</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">开发日志|Log</category>
            
            
            <pubDate>Sun, 17 Jun 2007 01:29:26 +0800</pubDate>
        </item>
        
        <item>
            <title>关于iCast等“富媒体”广告的研究(三)--附JS文件</title>
            <description><![CDATA[<p><font face="Arial">&nbsp;this.showPlayer1 = function()&nbsp;{<br />
&nbsp;&nbsp;try {<br />
&nbsp;&nbsp;&nbsp;var w = window.open('http://g.fc510.com/2052/130.html',this.player_name,&quot;fullscreen=0, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, left=&quot; + screen.width + &quot;, top=&quot; + screen.height + &quot;, width=&quot; + this.movie_w_final + &quot;, height=&quot; + this.movie_h_final);<br />
&nbsp;&nbsp;} catch (e) {}<br />
&nbsp;&nbsp;if (typeof(w)==&quot;undefined&quot; || w==null) {<br />
&nbsp;&nbsp;&nbsp;return -1;<br />
&nbsp;&nbsp;}<br />
&nbsp;&nbsp;this.write_exp_time();<br />
&nbsp;&nbsp;this.submitData4CPM(this.mission_id);<br />
&nbsp;&nbsp;this.set_domain(this.original_domain);<br />
&nbsp;&nbsp;return 1;<br />
}</font></p>
<p>先看看这段js,这一段js就是在没有任何限制时弹出windows.open()的窗口。修改cookies和提交流量统计。</p>
<p><font face="Arial">this.showPlayer2 = function() {.......</font></p>
<p>这个函数用来弹出模态对话框的版本。</p>
<p><font face="Arial">&nbsp;if(!isDEMO &amp;&amp; !this.is_quick_load)<br />
&nbsp;{<br />
&nbsp;&nbsp;var s1 = &quot;&quot;;<br />
&nbsp;&nbsp;s1 += '&lt;APPLET style=&quot;visibility:hidden; position:absolute&quot; code=&quot;ntelevise.web.nTelevise.class&quot; codebase=&quot;'<br />
&nbsp;&nbsp;&nbsp; + this.code_base<br />
&nbsp;&nbsp;&nbsp; + '&quot; name=&quot;nTelevise_APP&quot; id=&quot;nTelevise_APP&quot; WIDTH=1 HEIGHT=1 ALIGN=baseline ARCHIVE=&quot;nTelevise.jar&quot; MAYSCRIPT&gt;';<br />
&nbsp;&nbsp;s1 += '&lt;param name=flashurl value=&quot;' + this.download_base + this.cur_movie_file_name + '&quot;&gt;';<br />
&nbsp;&nbsp;s1 += '&lt;param name=advname value=&quot;' + this.mission_id + '&quot; &gt;&lt;\/APPLET&gt;';<br />
&nbsp;<br />
&nbsp;&nbsp;var s2 = &quot;&quot;;<br />
&nbsp;&nbsp;s2 += '&lt;APPLET style=&quot;visibility:hidden; position:absolute&quot; code=&quot;ntelevise.web.nTelevise.class&quot; codebase=&quot;'<br />
&nbsp;&nbsp;&nbsp; + this.code_base<br />
&nbsp;&nbsp;&nbsp; + '&quot; name=&quot;nTelevise_APP&quot; id=&quot;nTelevise_APP&quot; WIDTH=1 HEIGHT=1 ALIGN=baseline ARCHIVE=&quot;nTelevise.jar&quot; MAYSCRIPT&gt;';<br />
&nbsp;&nbsp;s2 += '&lt;param name=flashurl value=&quot;' + this.download_base + this.cur_movie_file_name +'&quot;&gt;';<br />
&nbsp;&nbsp;s2 += '&lt;param name=advname value=&quot;' + this.mission_id + '&quot; &gt;&lt;\/APPLET&gt;';</font></p>
<p><font face="Arial">&nbsp;&nbsp;var re1 = /sohu/i;<br />
&nbsp;&nbsp;var re2 = /17173/i;</font></p>
<p><font face="Arial">&nbsp;&nbsp;if(isSohuCode)<br />
&nbsp;&nbsp;&nbsp;&nbsp; document.write(s2);<br />
&nbsp;&nbsp;else<br />
&nbsp;&nbsp;&nbsp;&nbsp; document.write(s1);</font></p>
<p><font face="Arial">&nbsp;&nbsp;this.applet_create_time = new Date();<br />
&nbsp;} </font></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; 呵呵，上面这个函数则是在js无法弹出窗口的情况下。准备弹出的applet程序，注意这里:<font face="Arial"><font style="BACKGROUND-COLOR: #ffff00" color="#000000">APPLET style=&quot;visibility:hidden; position:absolute&quot;</font> 为什么这样写我稍候再讲。</font></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; 最近要好好休息一下，这是几个主要的函数，文件附在后面，大家看了有问题再说，<strong>声明：</strong>本人不欢迎任何新手和对技术有着<strong>极其肤浅</strong>认识热衷于&quot;做管理&quot;的伪IT人向我提出任何问题以及要求帮助，本人也不会解答任何人关于为什么部署不成功无法显示等问题，如果没有能力看的懂我提供的代码，就算了。祝大家周末愉快。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; 下载：<a href="http://www.w3cool.com/nTelevise.rar"><strong><font style="BACKGROUND-COLOR: #ccffcc" color="#339966">点击下载文件</font></strong></a> <font face="Arial">(jar文件也在里面，入门的人就可以部署在自己的机器上试一下了，有问题不要来问我)</font></p>]]></description>
            <link>http://www.w3cool.com/2007/03/03/icastjs.html</link>
            <guid>http://www.w3cool.com/2007/03/03/icastjs.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">富媒体|nTelevise</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">项目|Projects</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">applet</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">html</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">iCast</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">javascript</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">富媒体</category>
            
            <pubDate>Sat, 03 Mar 2007 00:28:17 +0800</pubDate>
        </item>
        
        <item>
            <title>关于iCast等“富媒体”广告的研究(二)</title>
            <description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp; 现在我们找讨论一下js文件。iCast使用了<a class="l" target="_blank" onmousedown="return clk(this.href,'','','res','1','&amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;sig2=jKoH5upbLzI045_Ik2JAkg')" href="http://www.microsoft.com/mind/0899/scriptengine/scriptengine.asp"><strong><font color="#ff0000">JScript.Encode</font></strong></a>来加密js的源代码，这是5.0版ie的一个功能，目前也只有ie支持，也就是说，iCast只能在5.0般的ie上看到，不过现在世界上的ie普及率这么高，icast也就不在乎什么兼容性了，经常问如何屏蔽iCast的弟弟妹妹们，装个firefox吧，这样看sina的时候就不怕那什么出来了。源代码怎么decode出来我就不用说了吧，什么？不知道，不知道是这个世界上最牛的话，服了U，自己去问<strong><a href="http://www.google.com/search?hl=zh-CN&amp;newwindow=1&amp;rlz=1T4GFRD_zh-CNCN211CN211&amp;q=JScript.Encode+%E8%A7%A3%E7%A0%81&amp;lr="><font style="BACKGROUND-COLOR: #ffff99" color="#0000ff">Google大神</font></a></strong>。不可否认，iCast的js文件写的是相当的精妙的，一般的程序员很难写得出如此好地js，iCast的技术壁垒不在java而在javascript,从头说起：</p>
<p><font face="Arial">var ntelevise_channel_ID = 583;</font><br />
<font face="Arial"><strong>var _nTelevise_Controller_init</strong> = [ntelevise_channel_ID, 43327, &quot;http://www.w3cool.com/ntelevise/&quot;, &quot;http://travel.w3cool.com.cn/adv/skin/white/&quot;, &quot;http://www.w3cool.com/ntelevise/&quot;, &quot;http://track.w3cool.com.cn/tracker/trackerI2.dll&quot;,&quot;2.swf|2.swf&quot;,320,264,false,&quot;#000000&quot;,&quot;2.zip&quot;,10,false,&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;http://secure-cn.fc510.com/cgi-bin/m?ci=cn-hdt&amp;cg=0&amp;si=http://house.fc510.cn/&quot;,false,false];</font></p>
<p>.这是整个的初始化参数:</p>
<ol>
    <li>
    <div><font face="Arial">'site_id',&nbsp;&nbsp;（站点id, 指一个投放广告的子站点如.news.163.com）</font></div>
    </li>
    <li>
    <div><font face="Arial">'mission_id' （投放任务id,用与计费）</font></div>
    </li>
    <li>
    <div>'download_base'&nbsp; （广告文件下载地址）</div>
    </li>
    <li>
    <div>'skin_base'&nbsp; （播放器外观）</div>
    </li>
    <li>
    <div>'code_base'&nbsp; （程序文件的下载前缀）</div>
    </li>
    <li>
    <div>'track_server'&nbsp; （计费服务器地址）</div>
    </li>
    <li>
    <div>'movie_filename1','movie_w1','movie_h1'&nbsp; （广告文件名，宽度、长度）</div>
    </li>
    <li>
    <div>'is_quick_load'&nbsp; （不知道是什么）</div>
    </li>
    <li>
    <div>&nbsp;'cookie_name'&nbsp; 记录广告是否被播放了，播了一次就别播了，不过最近163、sina好像都不在乎了，打开就播，也是现在广大网民烦他们的地方。</div>
    </li>
    <li>
    <div>'ad_type'（不知道是什么）</div>
    </li>
    <li>
    <div>'3pt_tracker'（不知道是什么）</div>
    </li>
    <li>
    <div>'no_title'（不知道是什么）</div>
    </li>
    <li>
    <div>'listen_domain'（不知道是什么）</div>
    </li>
</ol>
<font face="Arial">
<p><font face="Arial"><font style="BACKGROUND-COLOR: #ffff99">&nbsp;<strong><u>this.param_list = ['site_id', 'mission_id','download_base','skin_base','code_base','track_server','movie_filename1','movie_w1','movie_h1','is_loop','bg_color','dld_filename','interval','is_quick_load','cookie_name','cpm_tracker','ad_type','3pt_tracker','no_title','listen_domain'];</u></strong></font></font></p>
<p><font face="Arial">&nbsp;for (var i=0; i&lt;this.param_list.length; i++ )&nbsp;{<br />
&nbsp;&nbsp;var x = this.param_list[i];&nbsp;&nbsp;<br />
&nbsp;&nbsp;if ( x!='' &amp;&amp; x!=null )&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;this[x] = para[i];<br />
&nbsp;&nbsp;}<br />
&nbsp;}<br />
&nbsp;<br />
&nbsp;this.inited = false;<br />
&nbsp;this.GUID = Math.abs(this.mission_id) + '_' + Math.abs(this.site_id);<br />
&nbsp;this.UID = (Math.random()+1).toString().replace(/\./,'').substr(0,12);<br />
&nbsp;this.submit_list = this.submit_list_string = [];<br />
&nbsp;this.submit_timeout = null;<br />
&nbsp;this.played_count = 0;</font></p>
<p><font face="Arial">&nbsp;this.domain = '';<br />
&nbsp;this.original_domain = '';</font></p>
<p>这一段用于初始化和获取参数。</p>
<p><br />
</p>
</font>]]></description>
            <link>http://www.w3cool.com/2007/02/20/icast.html</link>
            <guid>http://www.w3cool.com/2007/02/20/icast.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">富媒体|nTelevise</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">项目|Projects</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">applet</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">html</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">iCast</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">javascript</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">富媒体</category>
            
            <pubDate>Tue, 20 Feb 2007 20:46:31 +0800</pubDate>
        </item>
        
        <item>
            <title>关于iCast等“富媒体”广告的研究(一)</title>
            <description><![CDATA[<p>&nbsp;&nbsp;&nbsp; 最近看到一个同事的blog上居然还在谈论如何屏蔽iCast，呵呵，本人虽不才，但ICast在我看来是很取巧的东西，其实并没有什么技术含量，在这里先对iCast的运行过程和原理进行简要的分析。</p>
<p>&nbsp;&nbsp;&nbsp;ICast实际上是两块flash文件，当页面加载时，叶面引用iCast的js,这个js会首先对浏览器情况进行一些检测，例如是不是ie，能不能弹出新窗口等，然后根据能否运行javascript, 能否弹出窗口，能否运行javaApplet这三种情况，这段js的小程序会做3种方式来处理:</p>
<p>&nbsp;&nbsp;&nbsp; 一、当浏览器支持javascript且能弹出窗口时，直接使用弹出式窗口弹出带视频flash的小窗口。如图:</p>
<p><img height="356" alt="icast1.JPG" width="310" src="http://www.w3cool.com/upload/icast1.JPG" />&nbsp;</p>]]></description>
            <link>http://www.w3cool.com/2007/02/12/rich_media_hack.html</link>
            <guid>http://www.w3cool.com/2007/02/12/rich_media_hack.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">富媒体|nTelevise</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">项目|Projects</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">applet</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">html</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">iCast</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">javascript</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">富媒体</category>
            
            <pubDate>Mon, 12 Feb 2007 15:28:30 +0800</pubDate>
        </item>
        
    </channel>
</rss>
