Jump to content

erashish14

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by erashish14

  1. Hi Davej, Thanks a Ton, with your help, i'm able to apply the required code in my blog. Its working fine, Hats of to you, Thanks, Thanks , Thanks, a Ton :good: :good: :good: http://telecomtigers.blogspot.in/ (Kindly check once). Regards Ashish
  2. Hi Davej, One more code is there, kindly check, as after this code the popup stops appearing, Code Begins - <script> function mySetCookie(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 myGetCookie(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 showPopupOnce() { var hasSeenPopup = myGetCookie(“has_seen_popup”); if (hasSeenPopup == null || hasSeenPopup == “”){ // the user has never seen the popup, so show him! window.open(“ } // either way, set the cookie so the user will never see the window again mySetCookie(“has_seen_popup”, “true”, 365); // 365 days = 1 year } </script> Code Ends - Thanks in Advance Ashish
  3. Hi Davej, I found one of the code, regarding cookies, but have some doubts, kindly help Code :- function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function eraseCookie(name) { createCookie(name,"",-1); } Code Ends. How can i implement this code, so that the same pop-up appears only once in 3 days, whenever somebody open my blog & also if someone look into different post of my blog, but he/she sees that popup only once in single visit. Thanks in Advance Ashish
  4. Hi Davej, Thanks, your "position" solution, worked, but i also like to know, Is it possible to set number of times it opens, i.e. if somebody opened my blog than it should appear but if that same person is checking the other section of blog, then it shouldn't appear again n again, which is happening currently. Thanks in Advance Ashish
  5. Hi Davej, Thanks, Thanks, Thanks a Lot, for all the help, & the code provided by you, Actually i implemented the same code, in one of my blog i.e. http://telecomtigers.blogspot.in/ (Kindly check once). Some Doubts :- 1. When you open the blog, It only covers the present current screen, i.e. if i scroll down, than it doesn't move, I think either it should cover the whole page, when it opens or scroll down when we scroll down the page/screen. 2. Is it possible to set number of times it opens, i.e. if somebody opened my blog than it should appear but if that same person is checking the other section of blog, then it shouldn't appear again n again, which is happening currently. 3. With respect to google adsence, is it correct to display google ads like this i.e. in popup window. Kindly help in above points too. Thanks in Advance Ashish
  6. Hi, Thanks for reply, just one more little help (as i'm new to web designing) but can you also provide me the code, as in shown attachment, i need a lightbox for my website, with subscription option & opens automatically whenever websites opens as shown in link :- http://www.shopclues...ile-phones.html i'll be highly thankful to you Thanks in Advance
  7. Hi Davej, Thanks for the code , i tried & its really working very well , just one doubts, how can i make it auto appear, whenever website opens, i mean, Subscription box signup box should appear instantly, without clicking anywhere, than i think, i can get more of my subscriber. so if you just let me the code the same, i'll be highly thankful to you. & one thing more, when i searched the net, i came across "Light Box", it is same or its different. Thanks in Advance. Ashish
  8. Hi, Thanks for Answer, but as i'm new to website designing, can you just let me code for the same or else, can you just tell me whats this process is called, so that i can just search over net, for its code. Thanks in Advance Ashish
  9. Hi All, I'm running a website i.e. http://homepageforu.webs.com/, its running good, its a simple website with HTML & CSS, I like to add one signup page/image, which fades all the background icons, until n unless, either visitor subscribe to my website, or click cancel on that signup page (this page is also unblockable i.e. doesn't blocked by pop-up blocker) & in either condition, he/she can visit my website, but if he goes for sign up, than that page should be open in a new window. i've seen this in many websites specially with online shopping or coupons website, like "http://www.shopclues.com/mobiles/mobile-phones.html", the same signup page, when this website opens. Thanks in Advance Ashish
×
×
  • Create New...