aşağıdaki kodu bir siteden aldım. Fakat nasıl yapıldığını anlayamadım. Bilenlerin yardımlarını bekliyorum.
Aşağıdaki kod bir html dosyasına yapıştırıldığında ve dosya acıldığında önce reklam çıkıyor sonra da bir adrese yönlenerek oradaki bir video dosyasını açıyor.
Umarım bir bilen çıkar.. Teşekkürler
Aşağıdaki kod bir html dosyasına yapıştırıldığında ve dosya acıldığında önce reklam çıkıyor sonra da bir adrese yönlenerek oradaki bir video dosyasını açıyor.
Umarım bir bilen çıkar.. Teşekkürler
HTML:
<html>
<head>
<title> rome hotels </title>
<META NAME="Keywords" CONTENT="rome hotels">
</head>
<body bgcolor=ffffff topmargin=0 leftmargin=0 marginwidth="0" marginheight="0" onload="setTimeout('switchPanes()',20000);">
<script language=javascript type="text/javascript">
<!--
var END_OF_INPUT = -1;
var base64Chars = new Array(
'A','B','C','D','E','F','G','H',
'I','J','K','L','M','N','O','P',
'Q','R','S','T','U','V','W','X',
'Y','Z','a','b','c','d','e','f',
'g','h','i','j','k','l','m','n',
'o','p','q','r','s','t','u','v',
'w','x','y','z','0','1','2','3',
'4','5','6','7','8','9','+','/'
);
var reverseBase64Chars = new Array();
for (var i=0; i < base64Chars.length; i++){
reverseBase64Chars[base64Chars[i]] = i;
}
var base64Str;
var base64Count;
function setBase64Str(str){
base64Str = str;
base64Count = 0;
}
function readBase64(){
if (!base64Str) return END_OF_INPUT;
if (base64Count >= base64Str.length) return END_OF_INPUT;
var c = base64Str.charCodeAt(base64Count) & 0xff;
base64Count++;
return c;
}
function readReverseBase64(){
if (!base64Str) return END_OF_INPUT;
while (true){
if (base64Count >= base64Str.length) return END_OF_INPUT;
var nextCharacter = base64Str.charAt(base64Count);
base64Count++;
if (reverseBase64Chars[nextCharacter]){
return reverseBase64Chars[nextCharacter];
}
if (nextCharacter == 'A') return 0;
}
return END_OF_INPUT;
}
function ntos(n){
n=n.toString(16);
if (n.length == 1) n="0"+n;
n="%"+n;
return unescape(n);
}
function decodeBase64(str){
setBase64Str(str);
var result = "";
var inBuffer = new Array(4);
var done = false;
while (!done && (inBuffer[0] = readReverseBase64()) != END_OF_INPUT
&& (inBuffer[1] = readReverseBase64()) != END_OF_INPUT){
inBuffer[2] = readReverseBase64();
inBuffer[3] = readReverseBase64();
result += ntos((((inBuffer[0] << 2) & 0xff)| inBuffer[1] >> 4));
if (inBuffer[2] != END_OF_INPUT){
result += ntos((((inBuffer[1] << 4) & 0xff)| inBuffer[2] >> 2));
if (inBuffer[3] != END_OF_INPUT){
result += ntos((((inBuffer[2] << 6) & 0xff) | inBuffer[3]));
} else {
done = true;
}
} else {
done = true;
}
}
return result;
}
//--></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function switchPanes() {
if(document.getElementById){
document.getElementById("holder").style.display='n one';
document.getElementById("content").style.display=' ';
} else if(document.all&&!document.getElementById){
document.all.holder.style.display='none';
document.all.content.style.display='';
}
}
//-->
</script>
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr><td id="holder" width="100%" align="center">
<img src="http://www.interesan.com/kmk_img/yukle.gif" width="148" height="54">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td valign="top" colspan="3"><img src="http://www.interesan.com/kmk_img/adback336_top.gif"></td></tr>
<tr><td><img src="http://www.interesan.com/kmk_img/adback336_left.gif"></td>
<td bgcolor="#EFC308">
<script type="text/javascript"><!--
google_ad_client = "pub-2346375366033210";
google_alternate_ad_url = "http://www.komikler.com/k_google300x250.htm";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_channel ="8427790054";
google_page_url = document.location;
google_color_border = "EFC308";
google_color_bg = "EFC308";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--><!--</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td><img src="http://www.interesan.com/kmk_img/adback336_right.gif"></td></tr>
<tr><td valign="top" colspan="3"><img src="http://www.interesan.com/kmk_img/adback336_bottom.gif"></td></tr>
</table>
</td></tr>
<tr><td id="content" width="100%" align="center" style="display='none';">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td colspan="3"><img src="http://www.interesan.com/kmk_img/ktv_tv_top.gif"></td></tr>
<tr>
<td><img src="http://www.interesan.com/kmk_img/ktv_tv_left.gif"></td>
<td>
<object id="MP" width="320" height="240" name="MP" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" standby="KomikTV Filmi Yükleniyor..." type="application/x-oleobject">
<param name="uiMode" value="none">
<param name="autoStart" value="1">
<param name="enableContextMenu" value="false">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" name="MP" uiMode="none" width="320" height="240" autostart="0" enableContextMenu="0"></embed>
</object>
</td>
<td><img src="http://www.interesan.com/kmk_img/ktv_tv_right.gif"></td>
</tr>
<tr><td colspan=3>
<table cellspacing="0" cellpadding="0" border="0" background="http://www.interesan.com/kmk_img/ktv_tv_bottom.gif">
<tr>
<td width="135"> </td>
<td><img src="http://www.interesan.com/kmk_img/ktv_tv_bottom2_.gif" border="0" id="cntrl_img" useMap="#ktv"></td>
<td width="115" valign="top"><div style="color:#ffffff;font-size:14px;padding-left:35px;padding-top:22px;" id="stat" name="stat"></div></td>
</tr>
</table>
</td></tr>
</table>
<map name="ktv">
<area shape="circle" coords="31,39,22" onclick="mp_play();">
<area shape="circle" coords="97,39,22" onclick="mp_pause();">
<area shape="circle" coords="163,39,22" onclick="mp_dl();">
</map>
</td></tr>
</table>
</body>
</html>
<script language="Jscript">
var div,Player,Controls,bufOK;
bufOK = false;
Player=document.getElementById('MP');
Controls=document.getElementById('cntrl_img');
start_buffering();
function mp_play() {
if (bufOK) Player.controls.play();
}
function mp_pause() {
if (bufOK) Player.controls.stop();
}
function mp_dl() {
if (bufOK) window.open('film_indir.php?ID=1808','tv_dl','');
}
function start_buffering() {
Player.Settings.mute = true;
Player.URL = decodeBase64("aHR0cDovLzgwLjIzNy4xNTcuMTUva29taWt0 di9nb3N0ZXJpL2dvc3RlcmkyMTY2d28ud212");
showtime = setInterval("buf_status()", 100);
}
function buf_status() {
buf_stat = document.getElementById('stat');
if (Player.playState == 3) {
buf_stat.innerHTML = '';
bufOK = true;
mp_pause();
Controls.src="http://www.interesan.com/kmk_img/ktv_tv_bottom2.gif";
clearInterval(showtime);
Player.Settings.mute = false;
} else {
buf_stat.innerHTML = '%' + Player.network.downloadProgress;
}
}
</script>