GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   I need a Javacript that overlays... (https://gfy.com/showthread.php?t=1058028)

MakingItPay 02-17-2012 05:43 AM

I need a Javacript that overlays...
 
User info from database on streaming video in various locations as the video streams. Anybody know if one exists, or have one I can buy? :)

Zoxxa 02-17-2012 07:50 AM

You don't need javascript unless you are changing data as the video streams.

- Place your video player in a div

- Make that div position:relative and z-index of 1 in css

- Create a new div inside the video div for your user info

- Position the new div to position:absolute and position it with top/right/bottom/left and also give it a z-index larger than the video player. So z-index:2 or 99999999999

- If the user info is dynamic, as in it changes within the same page or video, then update the user info div with ajax calls. JQuery makes this very easy.

redwhiteandblue 02-17-2012 07:57 AM

Quote:

Originally Posted by Zoxxa (Post 18765322)
- Position the new div to position:absolute and position it with top/right/bottom/left and also give it a z-index larger than the video player. So z-index:2 or 99999999999

..and don't forget to put wmode="transparent" in the embed code.

fris 02-17-2012 08:37 AM

javascript is client side not server side.

MakingItPay 02-17-2012 09:59 AM

Thanks for the info! I need the position to move around during the streaming process, not stay static in case I didn't make that clear. If it stays in a corner the theives happily just block it out. I want to make it a little harder. Does your instructions move it around the frame during play?

Zoxxa 02-22-2012 01:12 AM

Sorry, I did not see your latest response, this may be too late.
My memory is weak on this topic, but there is a script that works with html5 players. It is a javascript library. What is does is read the current event state of the duration on the video player. For example, if it is at 15 seconds in the video showing a Big Mac, you can trigger a McDonalds popup, if at 45 seconds it shows a whopper, you can trigger a Burger King popup. The event is custom, so you can do whatever you like at whatever duration. It is very smooth, so as a second example, let's say you created a video of yourself selling something and then you want people to sign up to your newsletter, at that very second you mention newsletter, you could trigger a modal window to ask for the users email.

I apologize, I forget the name of it, but I am sure someone around here may remember it.

k0nr4d 02-22-2012 01:15 AM

Quote:

Originally Posted by MakingItPay (Post 18765590)
Thanks for the info! I need the position to move around during the streaming process, not stay static in case I didn't make that clear. If it stays in a corner the theives happily just block it out. I want to make it a little harder. Does your instructions move it around the frame during play?

That's pointless, they can just remove this javascript code using firebug...You'd need to do this on the flash player end of things.


All times are GMT -7. The time now is 01:25 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123