JSFiddle - React, Tailwind, and code Playground
by smeagain
HTML
<!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>
<title>Mill Lock Construction Ltd |Fire and Flood damage restoration | Remediation services</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="google-site-verification" content="gKOyGMUIYCrM5PXlXn6CJbeICEQNhJloeYqGGV1BrD8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/easySlider1.5.js"></script>
<script type="text/javascript" charset="utf-8">
// <![CDATA[
$(document).ready(function(){
$("#slider").easySlider({
controlsBefore: '<p id="controls">',
controlsAfter: '</p>',
auto: true,
continuous: true
});
});
// ]]>
</script>
<style type="text/css">
#slider { margin:0; padding:0; list-style:none; }
#slider ul,
#slider li { margin:0; padding:0; list-style:none; }
/*
define width and height of list item (slide)
entire slider area will adjust according to the parameters provided here
*/
#slider li { width:964px; height:231px; overflow:hidden; }
p#controls { margin:0; position:relative; }
#prevBtn,
#nextBtn { display:block; margin:0; overflow:hidden; width:84px; height:28px; position:absolute; left:758px; top:-36px; }
#nextBtn { left:842px; }
#prevBtn a { display:block; width:84px; height:28px; background:url(images/spacer.gif) no-repeat 0 0; }
#nextBtn a { display:block; width:84px; height:28px; background:url(images/spacer.gif) no-repeat 0 0; }
</style>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="icon" href="/favicon.ico" />
<link href="http://www.mill-locl.co.uk/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-31485659-1']);
_gaq.push(['_trackPageview']);
...
CSS
@charset "utf-8";
body { margin:0; padding:0; width:100%; background:#efefef url(images/bg.gif) repeat-x;}
html { padding:0; margin:0;}
/* main */
.main { width:984px; padding:0; margin:0 auto; }
/********** header **********/
.header { width:984px; height:160px;}
/* logo */
.logo { float:left; padding:0; margin:40px 0 0 10px; width:288px; height:55px;}
/* search */
.search { float:right; padding:0; margin:40px 0 0 10px; width:380px;}
.search form { margin:0; padding:0;}
.search input { float:left; border:0;}
.search span { float:left; background:url(images/search_bg.gif) no-repeat left; width:332px; height:35px;}
.search input.text { background:none; width:312px; height:15px; padding:10px; color:#a2a2a2; font:normal 14px Arial, Helvetica, sans-serif;}
.search input.button { float:left;}
/* menu */
.menu { padding:0; margin:0; width:450px; float:right; height:85px;}
.menu ul { padding:44px 0 0 0; margin:0; list-style:none; border:0; height:41px;}
.menu ul li { float:left; margin:0; padding:0; border:0;}
.menu ul li a { float:left; margin:0 2px 0 0; padding:14px 0 14px 0; color:#434343; font:normal 11px Arial, Helvetica, sans-serif; text-decoration:none;}
.menu ul li a span { padding:14px 12px 14px 12px;}
.menu ul li a:hover { background:url(images/r_menu.gif) no-repeat right;}
.menu ul li a:hover span { background:url(images/l_menu.gif) no-repeat left;}
.menu ul li a.active { background:url(images/r_menu.gif) no-repeat right;}
.menu ul li a.active span { background:url(images/l_menu.gif) no-repeat left;}
/********** slider **********/
.slider_bg { background:url(images/slider_bg.gif) repeat-y; margin:10px auto; padding:0; width:984px;}
.slider_t { background:url(images/slider_t.gif) top no-repeat;}
.slider_b { background:url(images/slider_b.gif) bottom no-repeat; padding:10px; height:231px;}
.slider_t .small { height:50px;}
.title_text h2 {
padding:2px 10px 0 40px;
margin:0;
color:#808080;
font:normal 36px Arial, Helvetica,...
JavaScript
*
* Easy Slider 1.5 - jQuery plugin
* written by Alen Grakalic
* http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding
*
* Copyright (c) 2009 Alen Grakalic (http://cssglobe.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Built for jQuery library
* http://jquery.com
*
*/
/*
* markup example for $("#slider").easySlider();
*
* <div id="slider">
* <ul>
* <li><img src="images/01.jpg" alt="" /></li>
* <li><img src="images/02.jpg" alt="" /></li>
* <li><img src="images/03.jpg" alt="" /></li>
* <li><img src="images/04.jpg" alt="" /></li>
* <li><img src="images/05.jpg" alt="" /></li>
* </ul>
* </div>
*
*/
(function($) {
$.fn.easySlider = function(options){
// default configuration properties
var defaults = {
prevId: 'prevBtn',
prevText: '',
nextId: 'nextBtn',
nextText: '',
controlsShow: true,
controlsBefore: '',
controlsAfter: '',
controlsFade: true,
firstId: 'firstBtn',
firstText: 'First',
firstShow: false,
lastId: 'lastBtn',
lastText: 'Last',
lastShow: false,
vertical: false,
speed: 800,
auto: false,
pause: 8000,
continuous: false
};
var options = $.extend(defaults, options);
this.each(function() {
var obj = $(this);
var s = $("li", obj).length;
var w = $("li", obj).width();
var h = $("li", obj).height();
...