Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Ieskau vienos paneles,o gal ten modas!

Parašė Tomcis· 2008 Gru. 3 20:12:57
#12

Jo davė tau sc o tu čia pezi.
Na aš nelabai pats moku, bet duosiu tau įvadą.
document.write("<div class=\"ads\"><script type=\"text/javascript\">");
document.write("var speed_a = 1;\nvar speed_b = 0;\nvar psspee = speed_a;\nvar delay = 1;\n");
document.write("var width = \"600\";\nvar height = \"35\";\nvar ad_scroller = 'ad';\n");
document.write("var slypo;\nvar position;\nvar dps = document;\nvar psokbr = dps.all||dps.getElementById;\n");
document.write("var content = '<img src=\"adresas" style=\"float: left; width: '+width+'px; height: '+height+'px; border: 0;\" />';\n\n");
document.write("function psstrt()\n{\n");
document.write("setInterval(\"psrol()\",20);\n");
document.write("psbepo();\n");
document.write("psdgs(ad_scroller).visibility = 'visible';\n");
document.write("}\n\n");
document.write("function psdgs(id)\n{\n");
document.write("return dps.getElementById(id).style;\n");
document.write("}\n\n");
document.write("function psdg(id)\n{\n");
document.write("return dps.getElementById(id);\n");
document.write("}\n\n");
document.write("function scrlrGetWinWidth()\n{\n");
document.write("var myWidth = 0;\n");
document.write("if( typeof( window.innerWidth ) == 'number' )\n");
document.write("myWidth = window.innerWidth;\n");
document.write("else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )\n");
document.write("myWidth = document.documentElement.clientWidth;\n");
document.write("else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )\n");
document.write("myWidth = document.body.clientWidth;\n");
document.write("return myWidth;\n");
document.write("}\n\n");
document.write("function scrlrGetWinHeight()\n{\n");
document.write("var myHeight = 0;\n");
document.write("if( typeof( window.innerWidth ) == 'number' )\n");
document.write("myHeight = window.innerHeight;\n");
document.write("else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )\n");
document.write("myHeight = document.documentElement.clientHeight;\n");
document.write("else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )\n");
document.write("myHeight = document.body.clientHeight;\n");
document.write("return myHeight;\n");
document.write("}\n\n");
document.write("function scrlrGetScrollTop()\n{\n");
document.write("var myScrollTop = 0;\n");
document.write("if( typeof( window.innerWidth ) == 'number' )\n");
document.write("myScrollTop = 0;\n");
document.write("else if( document.documentElement && document.documentElement.scrollTop )\n");
document.write("myScrollTop = document.documentElement.scrollTop;\n");
document.write("else if( document.body && document.body.scrollTop )\n");
document.write("myScrollTop = document.body.scrollTop;\n");
document.write("return myScrollTop;\n");
document.write("}\n\n");
document.write("function psbepo()\n{\n");
document.write("psdgs(ad_scroller).left = 0;\n");
document.write("if (dps.all)\n");
document.write("psdgs(ad_scroller).top = (scrlrGetScrollTop() + scrlrGetWinHeight() - height)+'px';\n");
document.write("else\n");
document.write("psdgs(ad_scroller).top = (scrlrGetWinHeight() - height)+'px';\n");
document.write("psdgs(ad_scroller).width = scrlrGetWinWidth()+'px';\n");
document.write("}\n\n");
document.write("function psrol()\n{\n");
document.write("if (psokbr)\n{\n");
document.write("slypo = parseInt(psdgs(\"add_block\").left);\n");
document.write("psdgs(\"add_block\").left=slypo-psspee+'px';\n");
document.write("if (Math.abs(slypo)>=width)\n");
document.write("psdgs(\"add_block\").left = (-psspee)+'px';\n");
document.write("}\n\n}\n\n");
document.write("if (navigator.userAgent.indexOf(\"Opera\")==-1)\n");
document.write("{\n");
document.write("if (window.attachEvent)\n");
document.write("{\n");
document.write("window.attachEvent(\"onscroll\", psbepo);\n");
document.write("window.attachEvent(\"onresize\", psbepo);\n");
document.write("position = \"absolute\";\n");
document.write("}\nelse\n{\n");
document.write("window.addEventListener(\"resize\", psbepo, 1);\n");
document.write("position = \"fixed\";\n");
document.write("}\n");
document.write("repeat = scrlrGetWinWidth() / width + 3;\n");
document.write("row = '';\n");
document.write("for (var i = 0; i < repeat; i++)\n{\n");
document.write("row += content;\n");
document.write("\n}\n");
document.write("document.write('<div id=\"'+ad_scroller+'\" onMouseout=\"psspee=speed_a\" onMouseover=\"psspee=speed_b\" style=\"visibility: hidden; overflow: hidden; position: '+position+'; left: 0px; width:'+ scrlrGetWinWidth() +'px; height: '+height+'px; top: 0px ; z-index: 7898;\">');\n");
document.write("document.write('<div id=\"add_block\" style=\"position: absolute; left: 0px; top: 0px; width: '+(width*repeat)+'px\"><a href=\"http://slr.xz.lt\" target=\"_blank\">'+row+'</a></div>');\n");
document.write("document.write('</div>');\n");
document.write("setTimeout(\"psstrt()\",(delay*1000));\n");
document.write("}\n");
document.write("</script");document.write("></div>");

Pakeiti tą paryškintą vietą į savo adresą, o tada reik į kažkokį failiuką dėt kodą. Na manau supratai.