Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can't make the jquery plugin (Yoxview) run

Featured Replies

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

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 by jonnyhocks

  • 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?

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.