මම HTML + CSS පාවිච්චි කරල වෙබ් එකක් හැදුවා..ඒකට මට ඇඩ් කරන්න ඕනි Image එකක් ක්ලික් කරාම ඔටෝම යූටියුබ් වීඩියෝ එකක් ප්ලේ වෙන විදිහට..ඒ වගේ එකක් හදාගන්නෙ කොහොමද 🙂
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Video link එක wordpress වල add කරනව වගේ add කරන්න බැරිද
එහෙම දාන්න පුලුවන්..එතකොට යූටියුබ් විඩ්යෝ එකේ thumbnail එකනෙ embeded කරාම පෙන්නන්නෙ..මට ඕන ඒක වෙනස් කරන්න වෙබ් එකෙන් බලද්දි 🙂
Simple lines deka thunaka JavaScript Code ekak kohomath gahannae wewi. onClick event listener ekak daala eke parameter eka widihata video eke url eka parse karala(parameters damme naththam oyaata hama image ekakatama wena wenama functions gahanna weyi) eeta passe eh image eka uda click karala onClick event eka trigger wunaama thawa ekata udin overlay ekak watena widihata.
parameters gana dannatham meka balanna: https://wlearnsmart.com/how-to-pass-parameter-in-javascript-function-from-html/
ow mekata parameters dala function ekak liyannama wenwa..
Thanks 🙂
Your Welcome!