Jump to content

Recommended Posts

> So i am trying to get it run a ui slider but iv never done anything with jquery before so was unsure how to do it i cant get this to work and was wondering if someone could help me do it

 



<!DOCTYPE html>
<html lang="en"> 
<head>
<meta charset="utf-8"/>
<link rel=stylesheet  type="text/css" href="css.css" >
</head>
<body>
 
<Nav>
  <li><a class="active" href="home.html">Home</a></li>
  <li><a href="roster.html">Roster</a></li>
  <li><a href="events.html">Events</a></li>
  <li><a href="history.html">History</a></li>
  <li><a href="training.html">Training</a></li>
  <li><a href="news.html">News</a></li>
  <li><a href="about.html">About</a></li>
</nav>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
link rel="stylesheet" type="text/css" href="style/slider.css" />
<script type="text/javascript" src="js/slider.js"></script>
<div class="container">
  <div class="captions">
    <div class="caption" name="c0">
      <p>Caption 1</p>
    </div>
    <div class="caption" name="c1">
      <p>Caption 2</p>
    </div>
    <div id="buttons">
      <div id="left" value="left" onClick="show_previous()"></div>
      <div id="right" value="right" onClick="show_next()"></div>
    </div>
  </div>
  <div class="slider">
    <div class="slide" name="0" style="background-image:url(Theacademy.jpg)"></div>
    <div class="slide" name="1" style="background-image:url(britishwrestling/2.jpg)"></div>
  </div>
</div>
 
 
</body>
</html>


Edited by cyberRobot
Surrounded code with [code][/code] tags
Link to comment
https://forums.phpfreaks.com/topic/300745-jquery-help/
Share on other sites

Hi, could you please use code tags?

 

Also, I'm guessing the js that applies your slider is in js/slider.js - the contents of which you haven't posted.

What are you using to write your code in and what are you using to debug?

P.S. DOM element tags are case sensitive so "Nav" is not the same as "nav"...

Link to comment
https://forums.phpfreaks.com/topic/300745-jquery-help/#findComment-1530905
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.