Jump to content

JQuery Widgets


phazer11

Recommended Posts

Hey I find myself in need of a JQuery 'widget' capable of doing a gallery. i.e. clicking on an image causes the next image in the series to show up and clicking on that one brings the next one up and so on. Is there a way to do that? I know you can do rollovers with JQuery but not if I can do what I just described.

 

Normally I'd just figure it out myself but I'm pressed for time. I need to have this done by 5pm EST on Wednesday. I might not need this fancy of a JQuery widget but I'm making a website for a Restaurant and I need to do something special to make up for not being able to make an animation -- due to not having the material for one -- (one of the requirements for the project I'm doing for my class). It might wind up not being a big deal because I earned extra points for my special menus and by having the cleanest, slimmest well functioning code.

Link to comment
Share on other sites

Any ideas where this is supposed to go? It's from the slideme plugin.

$(document).ready(function() {
	$('#main').slideme();
});

I've tried in multiple places. Here's the start of my HTML, which is where I'm assuming it goes. In addition to where it is now, I've tried placing it after the css sheets and other combinations.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Mediterranean Grille</title>
<link href="stylesheet.css" rel="stylesheet" type="text/css">
<link href="nav_bar.css" rel="stylesheet" type="text/css">
<script src="jQueryAssets/jquery-1.8.3.min.js"></script>
<script src="jQueryAssets/jquery.slideme-1.19.69.js"></script>
<link rel="stylesheet" href="jQueryAssets/slideme.css" type="text/css" media="all"/>
</head>
<body>
<script type="text/javascript">
$(document).ready(function() {
    $('#main').slideme();
});
</script>
Link to comment
Share on other sites

No idea. I don't have any way of testing and troubleshooting. I'd just say, double check to make sure you're calling it correctly in both the script and the HTML.

 

Haven't had a web server in quite a while and in the end of my website designing days I shifted towards Wordpress.


So you've tried this?

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Mediterranean Grille</title>
<link href="stylesheet.css" rel="stylesheet" type="text/css">
<link href="nav_bar.css" rel="stylesheet" type="text/css">
<script src="jQueryAssets/jquery-1.8.3.min.js"></script>
<script src="jQueryAssets/jquery.slideme-1.19.69.js"></script>
<link rel="stylesheet" href="jQueryAssets/slideme.css" type="text/css" media="all"/>
$(document).ready(function() {
    $('#main').slideme();
});
</head>
<body>
Link to comment
Share on other sites

Yep.

<div id="main"><!--Main starts here-->
<ul class="slideme"> <!-- Class "slideme" is mandatatory! -->
        <li><img src="images/buffet_1.JPG" alt="One"/></li>
        <li><img src="images/buffet_2.JPG" alt="Two"/></li>
        <li><img src="images/buffet_3.JPG" alt="Three"/></li>
        <li><img src="images/buffet_4.JPG" alt="Four"/></li>
        <li><img src="images/buffet_5.JPG" alt="Five"/></li>  
        <li><img src="images/buffet_6.JPG" alt="Six"/></li>  
        <li><img src="images/buffet_7.JPG" alt="Seven"/></li>  
        <li><img src="images/buffet_8.JPG" alt="Eight"/></li>     
</ul>
</div><!--Main ends here-->
Link to comment
Share on other sites

No idea. Without a server to test on, that's about all the help I can think of to provide. The last thing I can think of is to ensure the server has the required features to run it. That's usually more of a PHP script issue (making sure the server's PHP is up-to-date), but you never know. If you can't get it perhaps attempt a different jQuery slider to see if it works or fails. If several of them fail, it's almost guaranteed a server issue and something needs to be installed, updated or allowed to run on the server.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines, Privacy Policy, and Terms of Use.