Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 18th Feb 2016, 05:44 PM   #1
HyperActive Warrior
 
MSutton's Avatar
 
Join Date: 2005
Location: Slackville
Posts: 240
Thanks: 84
Thanked 118 Times in 82 Posts
Default
Transparent mask/layer over video w/ affiliate link embedded
Share on: 
fb share twitter share gplus share more share

Sorry, I don't know if this belongs under web design or programming so I just posted here.

I have seen affiliate landing pages where there is an autoplaying youtube video embedded into the page and there is some sort of transparent mask/layer over the video that contains an affiliate link.

Therefore, of the visitor tries to click the video to pause it or something, they actually end up clicking on this transparent mask/layer with the affiliate link embeded and therefore they end up getting redirected to he sales page with the affiliate link.

Does anyone know how to do this? I have tried searching now for about an how and cannot find how to do this.
MSutton is offline  
Unread 19th Feb 2016, 07:43 AM   #2
www.deeptenger.com
Registered Member
 
Joe Ray's Avatar
 
Join Date: 2013
Posts: 518
Thanks: 211
Thanked 91 Times in 77 Posts
Blog Entries: 1
Default
Re: Transparent mask/layer over video w/ affiliate link embedded
Share on: 
fb share twitter share gplus share more share

You don't need any transparent layer, just put the video tag inside an <a></a> tag then anywhere you click on the video player you will be redirected to the other site.

Joe Ray is offline  
Unread 19th Feb 2016, 11:08 PM   #3
HyperActive Warrior
 
MSutton's Avatar
 
Join Date: 2005
Location: Slackville
Posts: 240
Thanks: 84
Thanked 118 Times in 82 Posts
Default
Re: Transparent mask/layer over video w/ affiliate link embedded
Share on: 
fb share twitter share gplus share more share

tanks but that didn't work for me. When I hovered over the video it showed my link, but when I clicked it did nothing.

I ended up doing this...

html - Linkable <Div> Overlay on iframe Video | Rails - Stack Overflow
MSutton is offline  
Unread 20th Feb 2016, 02:31 AM   #4
www.deeptenger.com
Registered Member
 
Joe Ray's Avatar
 
Join Date: 2013
Posts: 518
Thanks: 211
Thanked 91 Times in 77 Posts
Blog Entries: 1
Default
Re: Transparent mask/layer over video w/ affiliate link embedded
Share on: 
fb share twitter share gplus share more share

It didn't work for you because you have to modify the code in the iframe if you want to use the <a> tag. A simple <a> tag only works if you're hosting your own video and using a video tag. With a little bit of modification it works flawlessly for the youtube iframe as well.

What you did with the transparent <div> is a sub-optimal solution. The <a> tag is a much better choice.

Joe Ray is offline  
Unread 27th Feb 2016, 02:19 PM   #5
HyperActive Warrior
 
MSutton's Avatar
 
Join Date: 2005
Location: Slackville
Posts: 240
Thanks: 84
Thanked 118 Times in 82 Posts
Default
Re: Transparent mask/layer over video w/ affiliate link embedded
Share on: 
fb share twitter share gplus share more share

OK, so what is that modification assuming the video is an iframe? You see, I'm not a programmer. People who don't know how to code do not understand "just do it the right way and it will work". If we knew the "right way" or how to "modify", we wouldn't ask questions such as the one I asked
MSutton is offline  
Unread 27th Feb 2016, 02:20 PM   #6
HyperActive Warrior
 
MSutton's Avatar
 
Join Date: 2005
Location: Slackville
Posts: 240
Thanks: 84
Thanked 118 Times in 82 Posts
Default
Re: Transparent mask/layer over video w/ affiliate link embedded
Share on: 
fb share twitter share gplus share more share

Sorry it takes me so long to respond, BTW. I am subbed to this thread but for some reason I don't get emails or any other notifications when someone posts to it. I don't have this problem on other threads.
MSutton is offline  
Closed Thread


Bookmarks

Tags
affiliate, embedded, layer, link, mask or layer, maskor, transparent, video, w or


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:54 PM.