12-10-2014 Saat: 14:29
Bu yeni reklam kodumuz sayesinde reklamınızı en şık şekliyle kullanıcılarınıza sunabileceksiniz! Kodu sol tarafa almak için kod içerisindeki this.style.right kısmını this.style.left olarak değiştirin.
Önizleme;
Kod:
<script type="text/javascript">
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 15 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}
function staticbar(){
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.right=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script>
<div id="topbar" style="position: absolute; right: 10px; top: 15px; width: 243px"><a href="javascript:void(0)" onclick="getElementById('topbar').style.display='none';" style="display:block;width:25px;height:29px;background-color:transparent;margin:0px;padding:0px;border:none;position:absolute;top:-10px;right:-12px;background-image:url(http://img337.imageshack.us/img337/8088/lightboxclosebutton.png)"></a><p align="center">
Reklam kodunu buraya yapıştırın
</p><Script Language='Javascript'>
<!-- Kod dostu HTML yatay reklam kodu -->
<!--
document.write(unescape('%3C%61%20%73%74%79%6C%65%3D%22%64%69%73%70%6C%61%79%3A%62%6C%6F%63%6B%3B%77%69%64%74%68%3A%32%39%70%78%3B%68%65%69%67%68%74%3A%31%38%70%78%3B%62%61%63%6B%67%72%6F%75%6E%64%3A%74%72%61%6E%73%70%61%72%65%6E%74%20%75%72%6C%28%68%74%74%70%3A%2F%2F%34%2E%62%70%2E%62%6C%6F%67%73%70%6F%74%2E%63%6F%6D%2F%2D%6B%46%56%65%67%48%5A%30%6F%41%38%2F%54%38%6F%62%62%77%6F%38%7A%48%49%2F%41%41%41%41%41%41%41%41%4C%42%4D%2F%43%77%51%72%65%30%61%4B%5F%6D%55%2F%73%31%36%30%30%2F%6B%64%33%34%2B%2D%2B%4B%6F%70%79%61%2E%70%6E%67%29%20%6E%6F%2D%72%65%70%65%61%74%3B%70%6F%73%69%74%69%6F%6E%3A%61%62%73%6F%6C%75%74%65%3B%62%6F%74%74%6F%6D%3A%30%70%78%3B%72%69%67%68%74%3A%30%70%78%3B%6F%70%61%63%69%74%79%3A%30%2E%37%3B%66%69%6C%74%65%72%3A%61%6C%70%68%61%28%6F%70%61%63%69%74%79%3D%37%30%29%3B%6D%61%72%67%69%6E%3A%30%70%78%3B%70%61%64%64%69%6E%67%3A%30%70%78%3B%62%6F%72%64%65%72%3A%6E%6F%6E%65%3B%22%20%63%6C%61%73%73%3D%22%73%6E%61%6E%65%67%67%22%20%6F%6E%6D%6F%75%73%65%6F%76%65%72%3D%22%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%27%75%6C%75%73%75%6E%27%29%2E%73%74%79%6C%65%2E%64%69%73%70%6C%61%79%3D%27%62%6C%6F%63%6B%27%3B%22%20%74%61%72%67%65%74%3D%22%5F%62%6C%61%6E%6B%22%20%68%72%65%66%3D%22%68%74%74%70%3A%2F%2F%6b%6f%64%64%6f%73%74%75%2E%63%6F%6D%2F%32%30%31%32%2F%30%36%2F%73%61%79%66%61%79%2D%74%61%6B%69%70%2D%65%64%65%6E%2D%72%65%6B%6C%61%6D%2D%6B%6F%64%75%2D%79%65%6E%69%2E%68%74%6D%6C%22%3E%3C%2F%61%3E%0A%3C%73%74%79%6C%65%20%74%79%70%65%3D%22%74%65%78%74%2F%63%73%73%22%3E%23%74%6F%70%62%61%72%7B%2D%77%65%62%6B%69%74%2D%62%6F%78%2D%73%68%61%64%6F%77%3A%20%32%70%78%20%32%70%78%20%35%70%78%20%23%38%38%38%3B%62%6F%78%2D%73%68%61%64%6F%77%3A%20%32%70%78%20%32%70%78%20%35%70%78%20%23%38%38%38%3B%70%6F%73%69%74%69%6F%6E%3A%61%62%73%6F%6C%75%74%65%3B%62%6F%72%64%65%72%3A%20%31%70%78%20%73%6F%6C%69%64%20%23%63%63%63%3B%6D%69%6E%2D%68%65%69%67%68%74%3A%36%30%70%78%3B%62%61%63%6B%67%72%6F%75%6E%64%2D%63%6F%6C%6F%72%3A%20%23%66%65%66%65%66%65%3B%76%69%73%69%62%69%6C%69%74%79%3A%20%68%69%64%64%65%6E%3B%7A%2D%69%6E%64%65%78%3A%20%39%30%30%30%3B%7D%0A%3C%2F%73%74%79%6C%65%3E'));
//-->
</Script>
</div>
Önizleme;
Kod:
http://preview.koddostu.com/2014/09/0-offset-document.html