jamesreno20 Posted February 6, 2016 Share Posted February 6, 2016 (edited) > 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 February 9, 2016 by cyberRobot Surrounded code with [code][/code] tags Quote Link to comment https://forums.phpfreaks.com/topic/300745-jquery-help/ Share on other sites More sharing options...
Muddy_Funster Posted February 9, 2016 Share Posted February 9, 2016 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"... Quote Link to comment https://forums.phpfreaks.com/topic/300745-jquery-help/#findComment-1530905 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.