jQuery Navigation/ Promotional Banner- Session

Following is the code for a  Promotional banner which is supposed to be seen on all the pages of the website.

The banner would have the following functionalities:

  1. It should be displayed above the header.
  2. It has a close button.
  3. If anyone closes the banner it should not be displayed again on any page for that user.
  4. If the browser is closed and opened again the banner must be displayed.

 

Following is the fiddle of the code with output:

https://jsfiddle.net/krina1810/e0jgdvod/

 

$(window).load(function () {
  // if no cookie
	var data = sessionStorage.getItem('nav');

  if (data != "true") {
    $("#pop-up").show();
    $("#hide").click(function () {
      $("#pop-up").slideUp("slow");

		sessionStorage.setItem("nav", "true");
    });
  }
	else {
		console.log("No Navigation Banner");

	}
});

86 thoughts on “jQuery Navigation/ Promotional Banner- Session

  1. Pingback: Google
  2. Pingback: Google
  3. Pingback: g-spot vibrator
  4. Pingback: FIFA 19 Coins
  5. Pingback: mini wand massager
  6. Pingback: Detroit SEO
  7. Pingback: Detroit SEO
  8. Pingback: detox tea
  9. Pingback: multqa.ae
  10. Pingback: curso online
  11. Pingback: WOW Blog
  12. Pingback: dp cock ring
  13. Pingback: xxlhq.top article
  14. Pingback: xxlhq.xyz article
  15. Pingback: xxlph.xyz article
  16. Pingback: xxxpics xyz
  17. Pingback: xxlph xyz
  18. Pingback: pornph xyz
  19. Pingback: xxxph top
  20. Pingback: xxlph.top article
  21. Pingback: xyz
  22. Pingback: adulthq top
  23. Pingback: xxxhd.top article
  24. Pingback: xnxxhd top
  25. Pingback: xxxhq top
  26. Pingback: pornph.xyz article
  27. Pingback: xxlhd xyz
  28. Pingback: adultpics top
  29. Pingback: xxxhq.top article
  30. Pingback: xxxph xyz
  31. Pingback: xnxxhd.top article
  32. Pingback: xxlhd.xyz article
  33. Pingback: pornph.top article
  34. Pingback: xxlhq xyz
  35. Pingback: xxlph top
  36. Pingback: xxxph.top article
  37. Pingback: adultph top
  38. Pingback: xxlhq top
  39. Pingback: adulthd top
  40. Pingback: adulthd xyz
  41. Pingback: pornph top
  42. Pingback: adulthq xyz
  43. Pingback: xxxph.xyz article
  44. Pingback: xxxhd top
  45. Pingback: chwilówki
  46. Pingback: computer repair
  47. Pingback: girth enlargement
  48. Pingback: plus size strapon
  49. Pingback: vibrato lesson
  50. Pingback: rocks off vibrator
  51. Pingback: Porn City XXX
  52. Pingback: 5 inches dildo
  53. Pingback: Nerf Gun
  54. Pingback: mail order brides
  55. Pingback: los angeles seo
  56. Pingback: xxx porn
  57. Pingback: i need a home
  58. Pingback: Pool
  59. Pingback: best anal sex toys
  60. Pingback: strapless dildo

Leave a Reply