Jump to content

flori21

Members
  • Posts

    14
  • Joined

  • Last visited

flori21's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. thank you very much sir for information you are right and i solved this problemthe Solution is putting div# topbar { /* Hide the div */ display: none;} betwen tag <style type="text/css"> and </style>and putting javascripe code :<script type="text/javascript">var cookie = document.cookie;if (cookie.indexOf('visited=', 0) == -1) { var expiration = new Date(); expiration.setDate(expiration.getDate()+1); document.cookie = 'visited=1;expires=' + expiration + ';path=/'; var element = document.getElementById('topbar'); element.style.display = 'block';}</script> betwen tag <body> and </body> and i am very happy for that matter thank you very much
  2. Now i understand sir ,I will try more and tell you the resultthank you very much
  3. i dont understand , i dont know english very wel ,i translated from english to romanian by google and i dont understandAsta ar trebui să te simți mai bine să fie în măsură să DIY!DIY=?NO sir i dont want to be dependent believe me, but i tryed much ,and nothing happenmay be i do MistakeI will try more and tell you the result
  4. ok .i think here is a problem ,doesnt work ,div= topbar }function checkCookie(){CookieValue=getCookie('#topbar');if(CookieValue=='')#topbarsetCookie('#topbar','#topbar',365); }
  5. please sir give me a simple script to do that , really i dont know . important ,how i can link ads to a cookie ?i dont know ,please tell me
  6. ok ,i will post all my code <!-- Improve ads --><!DOCTYPE html><html><head><style type="text/css">#topbar{position:absolute;border: 1px solid black;padding: 4px;background-color: white;width: 120px;visibility: hidden;z-index: 0;}</style> <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 sessionvar startX = 30 //set x offset of bar in pixelsvar startY = 4 //set y offset of bar in pixelsvar 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.lengthend = 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=0"document.getElementById("topbar").style.visibility="hidden"}function staticbar(){barheight=document.getElementById("topbar").offsetHeightvar 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.left=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><script type="text/javascript" src="firstvisit.js"></script><script type="text/javascript">$(document).ready(function(){ if ($.cookie("hide") != "true") { $(".div").hide() ; $(".div").delay(2000).fadeIn(6000); $.cookie("hide", "true") } });</script> </head><body><div id="topbar"><a href="" onClick="closebar();return false "><img src="/close.gif" border="0" /></a><a href="http://www.egsite.com/games/file.php?f=91"><img src="http://www.egsite.com/vb/images/boush.gif"></a></div><body onload="checkCookie()"></body></body></html><!-- End ads--> and i upload a "firstvisit.js" to the root of my site the code of "firstvisit.js" is <!DOCTYPE html><html><head><script>function getCookie(c_name){if (document.cookie.length>0) {c_start=document.cookie.indexOf(c_name + "=");if (c_start!=-1){c_start=c_start + c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if (c_end==-1) c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}return "";} function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());}function checkCookie(){CookieValue=getCookie('#topbar');if(CookieValue=='')#topbarsetCookie('#topbar','#topbar',365); }</script></head><body onload="checkCookie()"></body></html>
  7. the examle in site w3school for show a alert with text inside butin my case i dont want show alert with text and only ads so i made a some change and this is all my code<!DOCTYPE html><html><head><script>function getCookie(c_name){if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1){ c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } }return "";}function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());}function checkCookie(){CookieValue=getCookie('#topbar');if(CookieValue=='')#topbarsetCookie('#topbar','#topbar',365);}</script></head><body onload="checkCookie()"></body></html>but nothing do ,still show ads every time my page loadplease tell me where is the Mistake ?
  8. thank you very much for answeri link my adsfunction checkCookie(){CookieValue=getCookie('#topbar');if(CookieValue=='')#topbarsetCookie('#topbar',VBname,365);}but nothing do ,still show ads every time my page loadwhere is the Mistake ?
  9. please help me i am a code for ads and i want to be shown only on the first 2 visits to the website my javascript code : <!-- Improve e3lan --><style type="text/css">#topbar{position:absolute;border: 1px solid black;padding: 4px;background-color: white;width: 120px;visibility: hidden;z-index: 0;}</style><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 sessionvar startX = 30 //set x offset of bar in pixelsvar startY = 4 //set y offset of bar in pixelsvar 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.lengthend = 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").offsetHeightvar 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.left=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"><a href="" onClick="closebar(); return false"><img src="close.gif" border="0" /></a><a href="http://www.egsite.com/games/file.php?f=91"><img src="http://www.egsite.com/vb/images/boush.gif"></a> </div><www.egsite.com/vb><!-- End e3lan -->
  10. their are 4div with id and 2 iframe5 meta content i thing for cookie3 java script andone object <div id="zzsldrzedoslidernew5986766" style="visibility: visible; position: absolute; top: 524px; z-index: 99999; height: 264px; right: 0px;" name="zzsldrzedoslidernew5986766"><iframe id="zzselectblockerzedoslidernew5986766" width="300.0" scrolling="no" height="zzIEFixHeightzedoslidernew5986766" frameborder="0" style="position: relative; top: 0px; visibility: visible; right: 0px; margin-top: 15px;"><html><head></head><body></body></html></iframe><div id="zzfakedivzedoslidernew5986766" style="visibility: visible; position: absolute; top: 0px; right: 0px;" name="fakezedoslidernew5986766"><div id="zzSdexitdivoutsidezedoslidernew5986766" align="right" style="position: relative; width: 300px; visibility: visible;"><div id="zzSdexitdivzedoslidernew1291870" align="right" style="position: relative; background-color: rgb(204, 204, 204); visibility: visible; height: 15px; width: 300px;"><div id="zzSdCloseButtonzedoslidernew1291870" onclick="U3zedoslidernew1291870()" style="position: relative; background-color: rgb(204, 204, 204); visibility: visible; display: inline; height: 15px; font-family: verdana; color: rgb(255, 255, 255); font-weight: bold; font-size: 9px; text-decoration: none; cursor: pointer; overflow: hidden;">[X]</div></div></div></div> <iframe id="ad" width="300.0" scrolling="no" height="250.0" frameborder="0" align="top" allowtransparency="true" marginheight="0" marginwidth="0" border="0" src="http://tags1.z5x.net:5280/?ad_type=ad&ad_size=300x250&section=4231401"><html><head><meta content="max-age=0" http-equiv="cache-control"><meta content="no-cache" http-equiv="cache-control"><meta content="0" http-equiv="expires"><meta content="Tue, 01 Jan 1980 1:00:00 GMT" http-equiv="expires"><meta content="no-cache" http-equiv="pragma"></head><body><script type="text/javascript">var query = window.location.searchdocument.write('<scr'+'ipt type="text/javascript" src="http://ad.z5x.net/st'+query+'"></scr'+'ipt>');</script><script src="http://ad.z5x.net/st?ad_type=ad&ad_size=300x250&section=4231401" type="text/javascript">Reload the page to get source for: http://ad.z5x.net/st...section=4231401</script><script src="http://ad.z5x.net/imp?Z=300x250&s=4231401&_salt=1179080786&B=10&r=0" type="text/javascript">Reload the page to get source for: http://ad.z5x.net/im...080786&B=10&r=0</script><object width="300" height="250" wmode="opaque" loop="false" data="http://content.yieldmanager.edgesuite.net/atoms/a7/35/39/74/a7353974196a25e25835fd3e47fbc442.swf?clickTag=http%3A%2F%2Fad%2Ez5x%2Enet%2Fclk%3F3%2CeJytTd1qgzAUfhrvpORPjYRdRNJIWO1qcRv1ZohGG1u7ggFtn36Rbn2CfRwO5%2Es550DMwiaKcdVGVNOwDaqaQawRAoTguvUBYyyihOI4DqG%2Ek%2EXE34Y858Ikt%2EeEL1B6v%2D%2E4Ax3PnfCYd3TpqZhme%2Ei1S9HU%2EF8gjq%2EJ3ym1%2EOWdoHw%2DqbXqSfKMpXlQ9tJsC0U2n2tSFspmhTxnBpoylcOmOA9Zf8IHJIft8NFn03PzxfeP1l49zD0kXdmqG%2DHqHsyri7ZODRAFi4Nl1XzZ21V7WFSNh0JHR3NfKAZgRoFLhaOurfm%2DOI0gDAmAP3BGafY%3D%2C" type="application/x-shockwave-flash"><param value="opaque" name="wmode"><param value="http://content.yieldmanager.edgesuite.net/atoms/a7/35/39/74/a7353974196a25e25835fd3e47fbc442.swf?clickTag=http%3A%2F%2Fad%2Ez5x%2Enet%2Fclk%3F3%2CeJytTd1qgzAUfhrvpORPjYRdRNJIWO1qcRv1ZohGG1u7ggFtn36Rbn2CfRwO5%2Es550DMwiaKcdVGVNOwDaqaQawRAoTguvUBYyyihOI4DqG%2Ek%2EXE34Y858Ikt%2EeEL1B6v%2D%2E4Ax3PnfCYd3TpqZhme%2Ei1S9HU%2EF8gjq%2EJ3ym1%2EOWdoHw%2DqbXqSfKMpXlQ9tJsC0U2n2tSFspmhTxnBpoylcOmOA9Zf8IHJIft8NFn03PzxfeP1l49zD0kXdmqG%2DHqHsyri7ZODRAFi4Nl1XzZ21V7WFSNh0JHR3NfKAZgRoFLhaOurfm%2DOI0gDAmAP3BGafY%3D%2C" name="movie"></object> </body> </html></iframe></div>
  11. thank you very much sir and how i can do the same square ,his square moving up down cu dans by mouse ,and when i see what is this by firebug i saw he used 4 div and one iframei do the same but my squre not moving up and down ,i dont know why ?can i sir see you what i do ?
  12. i dont know speak english very well so i tell you for see exemple , if you open site you can see a small window moving up down by mouseand i dont know how i can make the samethank you sir for help
  13. please help me i want script code for that small window move vertically by your mouse see exemple http://www.bramjnet.com/vb3 thank you for help
×
×
  • Create New...