September 20, 201214 yr I found this jquery slider that accepts vidoes as well, I tryed to run it but it won't even do it. I followed their usage tips but I don't know what they mean with: " (Don't forget to call it from within $(document).ready!) $("#thumbnails").yoxview([options]);" here's my html code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Home</title>[/background][/size][/font][/color] [color=black][font='Courier New'][size=2][background=rgba(102, 133, 150, 0.339844)]<link href="../yoxview/yoxview.css" rel="stylesheet" type="text/css" /> <link href="../css/cssdosite.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="../js/jquery.js"></script> <script type="text/javascript" src="../yoxview/yoxview-init.js"></script>[/background][/size][/font][/color] [color=black][font='Courier New'][size=2][background=rgba(102, 133, 150, 0.339844)]</head>[/background][/size][/font][/color] [color=black][font='Courier New'][size=2][background=rgba(102, 133, 150, 0.339844)]<body> <div id="bg"> <img src="../image/bg.gif" /> </div>[/background][/size][/font][/color] [color=black][font='Courier New'][size=2][background=rgba(102, 133, 150, 0.339844)]<div id="videoscontainer" class="yoxview"> <a href='http://vimeo.com/5604684'> <img src="images/items/thumbnails/geva.jpg" alt="Come Race Me" title="Geva Alon - Come Race Me" /> </a> </div>[/background][/size][/font][/color] [color=black][font='Courier New'][size=2][background=rgba(102, 133, 150, 0.339844)]</body> </html>[/background][/size][/font][/color] [color=black][font='Courier New'][size=2][background=rgba(102, 133, 150, 0.339844)] And this is my CSS code for now: @charset "utf-8"; /* CSS Document */[/background][/size][/font][/color] [color=black][font='Courier New'][size=2][background=rgba(102, 133, 150, 0.339844)]#bg img { width:100%; height:100% } #bg { position:absolute; z-index:-1; }[/background][/size][/font][/color] [color=black][font='Courier New'][size=2][background=rgba(102, 133, 150, 0.339844)] What do I need to do to make that plugin work with a video embed? Here's the "yoxview usage" page: http://www.yoxigen.com/yoxview/usage.aspx
September 21, 201214 yr That means that you have to call your plugin's function when the document is loaded. It is done like this: $(document).ready(function() { INSERT YOUR CODE HERE. }); The options for youryoxview function may then be passed in as an object: $("#thumbnails").yoxview({ option: 'value', option: 'value' }); Edited September 21, 201214 yr by jonnyhocks
September 21, 201214 yr Author That means that you have to call your plugin's function when the document is loaded. It is done like this: $(document).ready(function() { INSERT YOUR CODE HERE. }); The options for youryoxview function may then be passed in as an object: $("#thumbnails").yoxview({ option: 'value', option: 'value' }); So i should do something like this in the head of the document: <script> $(document).ready(function(){ $("#thumbnails").yoxview({ option: 'value', option: 'value' }) </script> Or i got that totally wrong?
September 21, 201214 yr Almost: $(document).ready(function() { $("#thumbnails").yoxview({ option: 'value', option: 'value' }); }); Also, it's good practice to load your scripts at the bottom of your page just above your closing body tag.
Create an account or sign in to comment