...

View Full Version : Help adding a jQuery Slider



bonerville
02-07-2012, 12:23 AM
Hi

I'm trying to make a cool Q&A page like on
http://davidwalsh.name/dw-content/fancy-faqs-jquery.php

There's instructions here:
http://davidwalsh.name/jquery-sliders

I understand adding the HTML part

I assume the CSS part is just adding that code anywhere on my .CSS page

But where do I add The jQuery JavaScript part and how?

The site is http://www.hoffmanfit.com and is being done in Wordpress. Thanks!

VIPStephan
02-07-2012, 01:59 AM
You put the JavaScript into a JS file and reference this in the head of your HTML document. But don’t forget to include the jQuery core library, too.


<head>
<meta …>

<link rel="stylesheet" href="styles.css">

<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script> <!-- core library -->
<script type="text/javascript" src="js/mycustomscripts.js"></script> <!-- your own script -->

</head>

bonerville
02-07-2012, 04:40 AM
Ok, thanks for the help! I got it to work but when you click on any of the questions the answer doesn't stay down.... it moves down, and then back up ???

http://hoffmanfit.com/qa/

bonerville
02-07-2012, 06:14 AM
nevermind.... I made something else work that I've been working on. Thanks though



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum