Create a simple widget|On image click pop-up window

To create pop-up window on image click following code should be used:
Here I have used css to animate the image.
If animation is not required “.element{” style should be removed

DEMO:http://nkworlds.com/ [click on the smiley at the left hand side corner of the page] 
=======================================================

<!DOCTYPE html>
<html>
<head>
<style>
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: #E74C3C;
    color: white;
}

.modal-body {padding: 2px 16px;}

.modal-footer {
    padding: 2px 16px;
    background-color: #E74C3C;
    color: white;
}

.element

position:fixed; top:90%; left:2%; 
    padding: 10px;
-webkit-animation-name: bounce;
  animation-name: bounce;
  -webkit-transform-origin: center bottom;
  -ms-transform-origin: center bottom;
  transform-origin: center bottom;
  -webkit-animation-duration:3s;
  animation-duration:3s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-iteration-count:infinite;
  }
  @-webkit-keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
  -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  }
  40%, 43% {
  -webkit-transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
  transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
  -webkit-transform: translate3d(0, -30px, 0);
  transform: translate3d(0, -30px, 0);
  }
  70% {
  -webkit-transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
  transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
  -webkit-transform: translate3d(0, -15px, 0);
  transform: translate3d(0, -15px, 0);
  }
  90% {
  -webkit-transform: translate3d(0,-4px,0);
  transform: translate3d(0,-4px,0);
  }
  }
  
  @keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
  -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  }
  40%, 43% {
  -webkit-transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
  transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
  -webkit-transform: translate3d(0, -30px, 0);
  transform: translate3d(0, -30px, 0);
  }
  70% {
  -webkit-transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
  transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
  -webkit-transform: translate3d(0, -15px, 0);
  transform: translate3d(0, -15px, 0);
  }
  90% { -webkit-transform: translate3d(0,-4px,0); transform: translate3d(0,-4px,0);
  }

}
</style>
</head>
<body>


<!– HTML CODE :Trigger/Open The Modal //replace with your image name–>
<div class=”element”>
<img id=”myBtn” src=”images/happy.png” width=”50″ height=”50″>
</div>
<!– The Modal –>
<div id=”myModal” class=”modal”>

  <!– Modal content –>
  <div class=”modal-content”>
    <div class=”modal-header”>
      <span class=”close”>x</span>
      <h4>Your Feedback Is Valuable</h4>
    </div>
    <div class=”modal-body”>
      <p>  <form action=”action_page.php”>
    <label for=”fname”>Name</label>
    <input type=”text” id=”fname” name=”firstname”>

    <label for=”lname”>Email</label>
    <input type=”text” id=”lname” name=”lastname”>

    <label for=”feedback”>Feedback</label>
<br>
    <textarea name=”feedback” style=”width:100%” rows=”4″>
</textarea>
  <br><br>
    <input type=”submit” value=”Submit”>
  </form></p>
    </div>
    <div class=”modal-footer”>
<h3></h3>
    </div>
  </div>

</div>

<script>
// JAVASCRIPT CODE
//Get the modal
var modal = document.getElementById(‘myModal’);

// Get the button that opens the modal
var btn = document.getElementById(“myBtn”);

// Get the <span> element that closes the modal
var span = document.getElementsByClassName(“close”)[0];

// When the user clicks the button, open the modal
btn.onclick = function() {
    modal.style.display = “block”;
}

// When the user clicks on <span> (x), close the modal
span.onclick = function() {
    modal.style.display = “none”;
}

// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
    if (event.target == modal) {
        modal.style.display = “none”;
    }
}
</script>

</body>
</html>

712 thoughts on “Create a simple widget|On image click pop-up window

  1. Pingback: Google
  2. Pingback: adam and eve dildo
  3. Pingback: brazzers porn
  4. Pingback: Sex Toys
  5. Pingback: Mom
  6. Pingback: anal sex toys
  7. Pingback: 188bet
  8. Pingback: vacuum penis pump
  9. Pingback: sekscamera
  10. Pingback: pc games download
  11. Pingback: cameras ao vivo
  12. Pingback: anal butt plugs
  13. Pingback: play online games
  14. Pingback: best couples toys
  15. Pingback: Indiatimes
  16. Pingback: cursos gratuitos
  17. Pingback: dani daniels
  18. Pingback: dick toys
  19. Pingback: rampant rabbit
  20. Pingback: sexe webcam
  21. Pingback: shemale dating
  22. Pingback: sexe webcam
  23. Pingback: rencontres coquin
  24. Pingback: prostate orgasm
  25. Pingback: thrusting vibrator
  26. Pingback: vaginal dildo
  27. Pingback: 8 inch dong
  28. Pingback: sex toy store
  29. Pingback: erotic sex toys
  30. Pingback: enema valve
  31. Pingback: training buttplugs
  32. Pingback: rich push
  33. Pingback: p8z68v pro manual
  34. Pingback: penis pumps
  35. Pingback: dual cock ring
  36. Pingback: best dildos
  37. Pingback: best ben wa balls
  38. Pingback: big dildo selfie
  39. Pingback: g gasm rabbit
  40. Pingback: vibrating kegels
  41. Pingback: satta king
  42. Pingback: vibrating bullet
  43. Pingback: realistic vagina
  44. Pingback: female vibrator
  45. Pingback: best double dong
  46. Pingback: g gasm curve
  47. Pingback: bum plugs
  48. Pingback: bondage restraints
  49. Pingback: porn city
  50. Pingback: pornland
  51. Pingback: fantasy cock ring
  52. Pingback: luxury vibrator
  53. Pingback: jockstrap thong
  54. Pingback: gay sucking penis
  55. Pingback: kitchens designs
  56. Pingback: European
  57. Pingback: sex toys for men
  58. Pingback: bunny vibrator
  59. Pingback: bondage
  60. Pingback: new vibrators
  61. Pingback: vibrating panty
  62. Pingback: light bondage
  63. Pingback: Pen kopen
  64. Pingback: sexy stocking
  65. Pingback: hundekurv tilbud
  66. Pingback: Bandar Ceme Online
  67. Pingback: Julia Ann
  68. Pingback: bdjobs cv format
  69. Pingback: Pakistani Suits
  70. Pingback: Pakistani Suits
  71. Pingback: sexboer
  72. Pingback: porno files
  73. Pingback: geile sex filmpjes
  74. Pingback: gratis films
  75. Pingback: pornofilmpjes
  76. Pingback: iptv free tv
  77. Pingback: diy sex toys
  78. Pingback: liteblue.usps.gov
  79. Pingback: neon 7 inch dildo
  80. Pingback: wekend getaway
  81. Pingback: Penis Pump Review
  82. Pingback: hundesnor
  83. Pingback: nipple orgasm
  84. Pingback: beeg bbw
  85. Pingback: huge dildos
  86. Pingback: cairo massage
  87. Pingback: onewalmartwire.com
  88. Pingback: Bluechew reviews
  89. Pingback: ormekur til hvalpe
  90. Pingback: type 1 diabetes
  91. Pingback: powerful vibrator
  92. Pingback: bondage experience
  93. Pingback: SUC Elibrary
  94. Pingback: bondage toys
  95. Pingback: سكس خلفي hd
  96. Pingback: finger sex
  97. Pingback: podcast
  98. Pingback: poker indonesia
  99. Pingback: true feel dildo
  100. Pingback: testicle rings
  101. Pingback: Gmail sign in
  102. Pingback: hasta yatağı
  103. Pingback: hot jockstraps
  104. Pingback: turtle bracelet
  105. Pingback: AGF ultras
  106. Pingback: cock ring
  107. Pingback: MIDE-676
  108. Pingback: free porn
  109. Pingback: gay male sex toys
  110. Pingback: Yt Mp3
  111. Pingback: walmartone
  112. Pingback: websites
  113. Pingback: Small doctor
  114. Pingback: ssni 550
  115. Pingback: pppd 785
  116. Pingback: rabbit vibrator
  117. Pingback: shopping challenge
  118. Pingback: extreme vibrator
  119. Pingback: need more likes
  120. Pingback: south coast seo
  121. Pingback: Ghana Music
  122. Pingback: gay dildo riding
  123. Pingback: anal douching
  124. Pingback: 192.168.1.1 admin
  125. Pingback: video downloader
  126. Pingback: CAWD-004
  127. Pingback: mynordstrom portal
  128. Pingback: boy in jockstraps
  129. Pingback: easy guitar solo
  130. Pingback: male masturbator
  131. Pingback: apps for pc
  132. Pingback: full apps download
  133. Pingback: Boston Car Service
  134. Pingback: Eweka
  135. Pingback: virgin coconut oil
  136. Pingback: walmartone login
  137. Pingback: العاب طبخ
  138. Pingback: 710 king pen
  139. Pingback: Dank Vapes
  140. Pingback: Dank Vapes
  141. Pingback: Chat Teen Live
  142. Pingback: cakes
  143. Pingback: marketing
  144. Pingback: Baccarat Strategy
  145. Pingback: ABP 899
  146. Pingback: runelite
  147. Pingback: my gift card site
  148. Pingback: MEYD 532
  149. Pingback: Artsy t shirts
  150. Pingback: Women clothing
  151. Pingback: 618media.com
  152. Pingback: nba
  153. Pingback: adam and eve haul
  154. Pingback: Startups
  155. Pingback: Target Schedule
  156. Pingback: properties USA
  157. Pingback: jockstraps for gay
  158. Pingback: top bondage toys
  159. Pingback: bondage restraints
  160. Pingback: best lube for anal
  161. Pingback: Judi Slot Online
  162. Pingback: IPX-366
  163. Pingback: purchase bitcoin
  164. Pingback: onewalmart
  165. Pingback: penis masturbator
  166. Pingback: SEO Vancouver
  167. Pingback: HUNTA 656
  168. Pingback: sex toys for her
  169. Pingback: best anal sex toys
  170. Pingback: pegging stories
  171. Pingback: luxury vibrator
  172. Pingback: campaigns
  173. Pingback: milfgilf porn
  174. Pingback: crazybulk estafa
  175. Pingback: CAWD-010
  176. Pingback: OYC-277
  177. Pingback: sewa led screen
  178. Pingback: The Goat debate
  179. Pingback: افلام نيك
  180. Pingback: big dildo review
  181. Pingback: Ebook
  182. Pingback: penis ring review
  183. Pingback: thrusting toy
  184. Pingback: My Wegmans Connect
  185. Pingback: دختر سکسی
  186. Pingback: Vape shops near me
  187. Pingback: g spot vibrator
  188. Pingback: strapon
  189. Pingback: neuer Inhalte
  190. Pingback: brochure
  191. Pingback: Domain Name
  192. Pingback: MIDE 687
  193. Pingback: WANZ 894
  194. Pingback: Weed store
  195. Pingback: txxx
  196. Pingback: using rabbit vibe
  197. Pingback: pc app
  198. Pingback: buy vape online
  199. Pingback: nearest vape shop
  200. Pingback: Sheree Alaimo
  201. Pingback: flexispy extreme
  202. Pingback: DOCP 174
  203. Pingback: ATID-372
  204. Pingback: usps liteblue
  205. Pingback: best dildo
  206. Pingback: Xanax for sale
  207. Pingback: fund transfer
  208. Pingback: engagement ring
  209. Pingback: free movies
  210. Pingback: zopiclone for sale
  211. Pingback: pc app
  212. Pingback: Smm panel paypal
  213. Pingback: anal massage
  214. Pingback: best sex toys
  215. Pingback: brass knuckles
  216. Pingback: how to sell car
  217. Pingback: Buy weed online
  218. Pingback: strapon dildo
  219. Pingback: dildo vibrator
  220. Pingback: asmr sex toys
  221. Pingback: Prestige Waterford
  222. Pingback: viagra
  223. Pingback: buy viagra
  224. Pingback: laptop app
  225. Pingback: Honeywell
  226. Pingback: Folexin
  227. Pingback: strap on vibrator
  228. Pingback: magic wand review
  229. Pingback: butterfly vibrator
  230. Pingback: app apk for pc
  231. Pingback: porn
  232. Pingback: buy viagra
  233. Pingback: cbd for sale
  234. Pingback: cbd oil for sale
  235. Pingback: cialis
  236. Pingback: fraud
  237. Pingback: stopoverdoseil.org
  238. Pingback: vibrator sex toy
  239. Pingback: top smm panel
  240. Pingback: silicone vibrators
  241. Pingback: bondage sex
  242. Pingback: love swing
  243. Pingback: male bondage toys
  244. Pingback: real sex toys
  245. Pingback: cyberskin sleeve
  246. Pingback: couples sex toys
  247. Pingback: best vibrator ever
  248. Pingback: homemade sex toy
  249. Pingback: سکس انزال
  250. Pingback: Thailand Rajabhat
  251. Pingback: viagra
  252. Pingback: viagra
  253. Pingback: viagra
  254. Pingback: viagra
  255. Pingback: viagra
  256. Pingback: viagra
  257. Pingback: viagra
  258. Pingback: viagra
  259. Pingback: viagra
  260. Pingback: viagra
  261. Pingback: laptop app
  262. Pingback: free robux dussel
  263. Pingback: VIAGRA
  264. Pingback: chicks
  265. Pingback: surveys for money
  266. Pingback: VIAGRA
  267. Pingback: VIAGRA
  268. Pingback: FREE V BUCKS
  269. Pingback: dj khabato
  270. Pingback: robux hack 2019
  271. Pingback: anal plug kit
  272. Pingback: xxx
  273. Pingback: anal plugs
  274. Pingback: 123P{!!HD!!}*
  275. Pingback: suction cup dildo
  276. Pingback: vibrating panty
  277. Pingback: pornhub.com
  278. Pingback: robux free
  279. Pingback: chattermeet.com
  280. Pingback: v-bucks generator
  281. Pingback: phishtank warning
  282. Pingback: thrusting vibrator
  283. Pingback: best p spot toy
  284. Pingback: pornhub
  285. Pingback: viagra men
  286. Pingback: casual encounters
  287. Pingback: biaxin
  288. Pingback: legal
  289. Pingback: pulsating vibrator
  290. Pingback: pocket pussy
  291. Pingback: nude
  292. Pingback: streamay
  293. Pingback: sex toys review
  294. Pingback: 검증사이트
  295. Pingback: 토토메이저
  296. Pingback: movies
  297. Pingback: 먹튀검증
  298. Pingback: 릴게임
  299. Pingback: pizza promo codes
  300. Pingback: roblox free robux
  301. Pingback: SEX
  302. Pingback: bitcoin em real
  303. Pingback: sex
  304. Pingback: viagra pills
  305. Pingback: sex
  306. Pingback: viagra
  307. Pingback: cbd near me
  308. Pingback: buy cbd capsules
  309. Pingback: anal stimulation
  310. Pingback: how to use dildo
  311. Pingback: vibrator
  312. Pingback: nasonex
  313. Pingback: generic cialis
  314. Pingback: VIAGRA
  315. Pingback: Infrared Cabin
  316. Pingback: Film Streaming
  317. Pingback: Innovation
  318. Pingback: Secure Messenger
  319. Pingback: TIKB-060
  320. Pingback: SSNI-628
  321. Pingback: vibrating wand
  322. Pingback: anal toy
  323. Pingback: chomnes
  324. Pingback: peliculas online
  325. Pingback: Quickswitch
  326. Pingback: software informer
  327. Pingback: Escort amsterdam
  328. Pingback: Kinokrad
  329. Pingback: kinokrad-2019
  330. Pingback: serial 2
  331. Pingback: the kpi institute
  332. Pingback: HND 758
  333. Pingback: Edinburgh whisky
  334. Pingback: dual vibrator
  335. Pingback: wand massager
  336. Pingback: clit vibrators
  337. Pingback: prepaid load
  338. Pingback: steroids for sale
  339. Pingback: women masturbation
  340. Pingback: panty vibrator
  341. Pingback: anal pleasure toy
  342. Pingback: Famous hunters
  343. Pingback: JAV
  344. Pingback: Flour mill Machine
  345. Pingback: best restaurants
  346. Pingback: restaurant prices
  347. Pingback: airdrop guru
  348. Pingback: breakfast near me
  349. Pingback: free download crm
  350. Pingback: cerialest.ru
  351. Pingback: serial
  352. Pingback: Mesothelioma
  353. Pingback: VIAGRA
  354. Pingback: robux gift card
  355. Pingback: anal orgasm
  356. Pingback: descargasmix
  357. Pingback: best dildo
  358. Pingback: dildo challenge
  359. Pingback: asmr
  360. Pingback: best double dildo
  361. Pingback: vibration asmr
  362. Pingback: asmm butt
  363. Pingback: hotels
  364. Pingback: blackhat seo links
  365. Pingback: Bar Soap
  366. Pingback: vibrators
  367. Pingback: 토토사이트
  368. Pingback: Donovan
  369. Pingback: organic seeds
  370. Pingback: vibration toy
  371. Pingback: katmovies
  372. Pingback: fur handcuff
  373. Pingback: Upholstery
  374. Pingback: Buy blackhat SEO
  375. Pingback: endoscopic sleeve
  376. Pingback: rabbit vibrator
  377. Pingback: 더킹카지노
  378. Pingback: 퍼스트카지노
  379. Pingback: 우리카지노
  380. Pingback: diet
  381. Pingback: 코인카지노
  382. Pingback: 예스카지노
  383. Pingback: masturbator
  384. Pingback: asmr sex toys
  385. Pingback: PORNHUB
  386. Pingback: FREE SEX
  387. Pingback: web designing
  388. Pingback: Tinashe Now
  389. Pingback: Pizza near me
  390. Pingback: viagra online
  391. Pingback: best dildo
  392. Pingback: stroker for men
  393. Pingback: zwrot prowizji
  394. Pingback: bank / bankowa
  395. Pingback: clit vibrator
  396. Pingback: adult
  397. Pingback: Dog Bandanas
  398. Pingback: discount code

Leave a Reply