Hey everybody! I need someone to help me out with my coding. On http://woweeone.ch you see a slider. I want the youtube video that opens when you click on the image to open in tinybox instead of just opening the youtube link. The fancybox Javascripts are already integrated as you should see. If you can fix or tell me how to fix this I will pay you 9$ over paypal. (First person to tell me gets the money and yes it is 9$ not 5$ as the description says) PLEASE ANSWER IN THIS POST ONLY AND DON'T SEND A PM. Looking forward to your answers! Thanks
Well I can't see tinybox installed, but fancybox... I can fix it for you if you give me the FTP or wp-admin details.
Hi, please replace your javascript with this: <script type="text/javascript"> $("#videolink").fancybox({ 'titleShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'), 'type' : 'swf', 'swf' : {'wmode':'transparent','allowfullscreen':'true'} }); </script> Code (markup):
thanks for the answers. @RiptideSolutions: which Javascript should I replace? Thanks! EDIT: @RiptideSolutions I have uploaded the new javascript but unfortunately that did not fix it..
Replace with this: $("#videolink").click(function() { $.fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'title' : this.title, 'width' : 680, 'height' : 495, 'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'), 'type' : 'swf', 'swf' : { 'wmode' : 'transparent', 'allowfullscreen' : 'true' } }); return false; }); Code (markup):
replaced and uploaded but still not working...thanks for trying! P.S. I saw there are two errors (thanks for pointing out nullbyte) : 1. The title should say 9$ as in the description 2. I am talking about Fancybox not Tinybox
Try wrapping it with $(document).ready... i.E: $(document).ready(function() { $("#videolink").click(function() { $.fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'title' : this.title, 'width' : 680, 'height' : 495, 'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'), 'type' : 'swf', 'swf' : { 'wmode' : 'transparent', 'allowfullscreen' : 'true' } }); return false; }); }); Code (markup):