Marco
[HOONIGAN]
Yop yop ..
Voila , ya pas longtemps, jai voulus dwl un album .. et depuis lors , et jai toujours cette pub quand je lance une page internet :
Remarquer que ya un truc qui se met dans la barre d internet avant l adresse (www.gamerz.be) ... J ai bon allé dans les options et la retirer , ca reviens apres ..
Tout ce que j ai pu avoir c est ca :
ps : meme ad aware ne le detecte pas ///
merci bcp
Voila , ya pas longtemps, jai voulus dwl un album .. et depuis lors , et jai toujours cette pub quand je lance une page internet :
Remarquer que ya un truc qui se met dans la barre d internet avant l adresse (www.gamerz.be) ... J ai bon allé dans les options et la retirer , ca reviens apres ..
Tout ce que j ai pu avoir c est ca :
Code:
<html>
<head>
<script language="javascript">
function searchFor(searchstring) {
if (searchstring != null) {
window.open("http://lop.com/search/search.cgi?s=" + searchstring);
}
}
var TOP, LEFT, WIDTH, HEIGHT;
onload = function() {
if (window.createPopup) {
var popup = createPopup();
var popupWindow = popup.document.parentWindow;
popup.document.body.innerHTML = barcontent.innerHTML;
var onchangeSelect = function () {
var select = popup.document.parentWindow.event.srcElement;
window.open("http://lop.com/search/search.cgi?s=" +
encodeURIComponent(select.options[select.selectedIndex].value));
};
var onclickA = function () {
var a = popupWindow.event.srcElement;
while (a.tagName.toUpperCase() != "A") {
a = a.parentElement;
if (a == null) {
return false;
}
}
window.open(a.href);
return false;
};
var elements;
elements = popup.document.getElementsByTagName("a");
for (var i = 0; i < elements.length; i++) {
elements[i].style.cssText = "font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; text-decoration: none";
elements[i].onclick = onclickA;
}
elements = popup.document.getElementsByTagName("input");
for (var i = 0; i < elements.length; i++) {
elements[i].style.cssText = "font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #000000;";
}
elements = popup.document.getElementsByTagName("select");
for (var i = 0; i < elements.length; i++) {
elements[i].style.cssText = "font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #000000;";
elements[i].onchange = onchangeSelect;
}
popup.document.getElementById("closeButton").onclick = function () {
window.close();
};
var searchForm = popup.document.getElementById("searchForm");
function submitSearchForm() {
searchFor(encodeURIComponent(virtualTextboxContent.innerText.substring(1)));
resetVirtualTextbox();
}
popup.document.getElementById("searchButton").onclick = function () {
submitSearchForm();
};
popup.document.onclick = function () {
window.focus();
};
var virtualTextbox = popup.document.getElementById("virtualTextbox");
var virtualTextboxContent = virtualTextbox.getElementsByTagName("span")[0];
var cursorBlinkInterval;
var cursorVisible = false;
function blinkCursor() {
if (cursorVisible) {
hideCursor();
} else {
showCursor();
}
}
function showCursor() {
virtualTextboxContent.style.borderRight = "2px solid black";
cursorVisible = true;
}
function hideCursor() {
virtualTextboxContent.style.borderRightStyle = "none";
cursorVisible = false;
}
window.onfocus = function () {
showCursor();
cursorBlinkInterval = setInterval(blinkCursor, 300);
};
window.onblur = function () {
clearInterval(cursorBlinkInterval);
hideCursor();
};
popupWindow.document.onkeydown = function () {
var keyCode = popupWindow.event.keyCode;
var character = String.fromCharCode(keyCode);
if (/[0-9a-z., -]/i.test(character)) {
virtualTextboxContent.innerText += character.toLowerCase();
} else if (keyCode == 8) { // backspace
var content = virtualTextboxContent.innerText;
if (content.length > 1) {
virtualTextboxContent.innerText = content.substring(0, content.length - 1);
}
} else if (keyCode == 13) { // return
return submitSearchForm();
}
virtualTextboxContent.style.pixelLeft = (virtualTextboxContent.scrollWidth > (virtualTextbox.offsetWidth - 7))
? (virtualTextbox.offsetWidth - virtualTextboxContent.scrollWidth - 7)
: 0;
};
function resetVirtualTextbox() {
virtualTextboxContent.innerText = " ";
virtualTextboxContent.style.pixelLeft = 0;
}
popup.document.body.style.backgroundColor = "#bbbbbb";
popupWindow.document.oncontextmenu =
popupWindow.document.ondragstart =
popupWindow.document.onselectstart =
function () { return false; };
popupWindow.setHeight = function(height) {
HEIGHT = height;
popup.hide();
};
popupWindow.openSearchDialog = function() {
showModelessDialog("searchdialog.html", window,
"dialogHeight:10px; dialogWidth:300px;" +
"edge:raised; help:no; resizable:no; scroll:no; status:no;");
};
popupWindow.selectData = {
sex: [
{ text: "sex", href: "sex" },
{ text: "hardcore", href: "hardcore" },
{ text: "movies", href: "sex+movies" },
{ text: "matchmaking", href: "matchmaking" },
],
travel: [
{ text: "travel", href: "travel" },
{ text: "hotels", href: "hotels" },
{ text: "airfare", href: "airfare" },
{ text: "vacations", href: "vacations" },
{ text: "criuses", href: "criuses" },
{ text: "car rentals", href: "car+rentals" },
],
careers: [
{ text: "careers", href: "careers" },
{ text: "jobs", href: "jobs" },
{ text: "work at home", href: "work+at+home" },
{ text: "career plans", href: "career+planning" },
{ text: "employment", href: "employment" },
],
credit: [
{ text: "loans", href: "loans" },
{ text: "credit cards", href: "credit+cards" },
{ text: "credit repair", href: "credit+repair" },
],
computers: [
{ text: "computers", href: "computers" },
{ text: "software", href: "software" },
{ text: "printers", href: "printers" },
{ text: "webcams", href: "webcams" },
{ text: "hard drives", href: "hard+drives" },
{ text: "monitors", href: "monitors" },
{ text: "Epson", href: "epson" },
{ text: "Panasonic", href: "panasonic" },
{ text: "Sony", href: "sony" },
{ text: "Pioneer", href: "pioneer" },
{ text: "HP", href: "hewlett+packard" },
],
insurance: [
{ text: "insurance", href: "insurance" },
{ text: "health", href: "health+insurance" },
{ text: "auto", href: "auto+insurance" },
{ text: "travel", href: "travel+insurance" },
{ text: "dental", href: "dental+insurance" },
{ text: "business", href: "business+insurance" },
]
};
var selectPopup = null;
popupWindow.showSelect = function(selectData, openerElement) {
selectPopup = popupWindow.createPopup();
var html = "<div style='font: 11px Arial, Helvetica, sans-serif; border:1px solid black;'>";
var OPTION_HEIGHT = 16;
var selectHeight = 2;
var selectWidth = 100;
var currentOption = null;
for (var i = 0; i < selectData.length; i++) {
if (selectData[i] != null) {
html += "<div style='padding:1px 1px;' id='option" + i + "' href='" + selectData[i].href + "'>" + selectData[i].text + "</div>";
selectHeight += OPTION_HEIGHT;
}
}
html += "</div>";
selectPopup.document.body.innerHTML = html;
selectPopup.show(LEFT + absLeft(openerElement), TOP + absTop(openerElement) - selectHeight, selectWidth, selectHeight);
selectPopup.document.body.setCapture();
selectPopup.document.body.onmousemove = function () {
var option = getHoveringOption();
if ((option != null) && (option != currentOption)) {
if (currentOption != null) {
currentOption.style.backgroundColor = "white";
currentOption.style.color = "black";
}
currentOption = option;
currentOption.style.backgroundColor = "highlight";
currentOption.style.color = "white";
}
};
selectPopup.document.body.onclick = function () {
var option = getHoveringOption();
if (option != null) {
searchFor(option.href);
selectPopup.hide();
selectPopup = null;
}
}
function getHoveringOption() {
return selectPopup.document.getElementById("option" + Math.floor((selectPopup.document.parentWindow.event.clientY - 1) / OPTION_HEIGHT));
}
};
HEIGHT = barcontent.offsetHeight;
WIDTH = screen.availWidth;
TOP = screen.availHeight - HEIGHT;
LEFT = 0;
var popupInterval;
function showPopup() {
popup.show(LEFT, TOP, WIDTH, HEIGHT);
}
function startPopupInterval() {
popupInterval = setInterval(function () {
if (!(popup.isOpen)) {
showPopup();
}
}, 10);
}
function stopPopupInterval() {
clearInterval(popupInterval);
}
startPopupInterval();
} else {
alert("You're not supposed to see this.");
}
}
function absLeft(element) {
var result = 0;
do {
result += element.offsetLeft;
} while ((element = element.offsetParent) != null)
return result;
}
function absTop(element) {
var result = 0;
do {
result += element.offsetTop;
} while ((element = element.offsetParent) != null)
return result;
}
</script>
</head>
<body>
<div id="barcontent" style="visibility: hidden;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="61">
<tr>
<td width="99%" background="http://img.lop.com/images/toolbar/bg.gif" valign="bottom">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><a href="http://lop.com/search/search.cgi?s=make+money" hidefocus="hidefocus"><img src="http://img.lop.com/images/toolbar/makemoney.gif" width="18" height="18" border="0" align="absmiddle">&nbsp;Make Money</a></td>
<td><a href="http://lop.com/search/search.cgi?s=sex" hidefocus="hidefocus" target="_blank"><img src="http://img.lop.com/images/toolbar/sex.gif" width="18" height="18" border="0" align="absmiddle">&nbsp;Sex</a></td>
<td><a href="http://lop.com/search/search.cgi?s=casino" hidefocus="hidefocus" target="_blank"><img src="http://img.lop.com/images/toolbar/casino.gif" width="18" height="18" border="0" align="absmiddle">&nbsp;Casino</a></td>
<td><div style="background-image:url(fakeselect.gif); font: 11px Arial, Helvetica, sans-serif; width: 100px; height: 20px; padding: 3px 5px; cursor: default; " onclick="showSelect(selectData.sex, this);">Sex</div></td>
<td><div style="background-image:url(fakeselect.gif); font: 11px Arial, Helvetica, sans-serif; width: 100px; height: 20px; padding: 3px 5px; cursor: default; " onclick="showSelect(selectData.travel, this);">Travel</div></td>
<td><div style="background-image:url(fakeselect.gif); font: 11px Arial, Helvetica, sans-serif; width: 100px; height: 20px; padding: 3px 5px; cursor: default; " onclick="showSelect(selectData.careers, this);">Careers</div></td>
<td><img src="http://img.lop.com/images/toolbar/search.gif" width="39" height="7"></td>
</tr>
<tr>
<td><a href="http://lop.com/search/search.cgi?s=investing" hidefocus="hidefocus" target="_blank"><img src="http://img.lop.com/images/toolbar/investing.gif" width="18" height="18" border="0" align="absmiddle">&nbsp;Investing</a></td>
<td><a href="http://lop.com/search/search.cgi?s=travel" hidefocus="hidefocus" target="_blank"><img src="http://img.lop.com/images/toolbar/travel.gif" width="18" height="18" border="0" align="absmiddle">&nbsp;Travel</a></td>
<td><a href="http://lop.com/search/search.cgi?s=mortgage" hidefocus="hidefocus" target="_blank"><img src="http://img.lop.com/images/toolbar/mortagage.gif" width="18" height="18" border="0" align="absmiddle">&nbsp;Mortgage</a></td>
<td><div style="background-image:url(fakeselect.gif); font: 11px Arial, Helvetica, sans-serif; width: 100px; height: 20px; padding: 3px 5px; cursor: default; " onclick="showSelect(selectData.credit, this);">Credit</div></td>
<td><div style="background-image:url(fakeselect.gif); font: 11px Arial, Helvetica, sans-serif; width: 100px; height: 20px; padding: 3px 5px; cursor: default; " onclick="showSelect(selectData.computers, this);">Computers</div></td>
<td><div style="background-image:url(fakeselect.gif); font: 11px Arial, Helvetica, sans-serif; width: 100px; height: 20px; padding: 3px 5px; cursor: default; " onclick="showSelect(selectData.insurance, this);">Insurance</div></td>
<form action="http://lop.com/search/search.cgi" method="get" target="_blank"" id="searchForm"><td nowrap="nowrap">
<input type="hidden" name="s" value="">
<div id="virtualTextbox" style="display:block; width: 150px; height:20px; background:white; border:2px inset buttonborder; float:left;
padding:1px 2px; font: 11px Arial, Helvetica, sans-serif; overflow:hidden; cursor:beam; position:relative;" tabindex="1" hidefocus="hidefocus"><span style="position:absolute; top:1px; left:0;">&nbsp;</span></div>
<input type="image" border="0" id="searchButton" src="http://img.lop.com/images/toolbar/bgo.gif" width="23" height="23" align="top" hspace="4">
</td></form>
</tr>
</table>
</td>
<td valign="top" background="http://img.lop.com/images/toolbar/bg.gif"><img style="cursor:hand;" src="http://img.lop.com/images/toolbar/r1.gif" width="33" height="29" border="0" id="closeButton"></td>
</tr>
</table>
</div>
</body>
</html>
ps : meme ad aware ne le detecte pas ///
merci bcp