Jump to content

(Dreamweaver) Help with a slider?

Coombzy

Hey guys, I need some help getting a slider to work on the index page of a website project I am working on. I followed this tutorial 

and have everything set-up however I need to transfer it to my actual index pages div. Can anybody point me in the right direction? 

 

It's here on another html document:

RiiKblr.png

I need it here on the main document:

ZgnO1lP.png

Link to comment
Share on other sites

Link to post
Share on other sites

You mean just an image slideshow type slider?

 

If so I'd recommend using something from Bootstrap to be honest.

NCASE M1 i5-9600k  GTX 1080 FE Z370N-WIFI SF600 NH-U9S LPX 32GB 960EVO

I'm a self-identifying Corsair Nvidia Fanboy; Get over it.

Link to comment
Share on other sites

Link to post
Share on other sites

Well, if you're using an apache webserver with PHP you can save both files as a PHP file then on your website:

<?php     include 'path_to_file/slideshow.php';?>

This will basically insert the slideshow page onto your current page.

 

Alternatively, just copy and paste the slide show code where you want it. Make sure make sure the css you need for the slide show is also on the page you want it, or I imagine it won't work in the slightest if it's a pure CSS slider

I am good at computer

Spoiler

Motherboard: Gigabyte G1 sniper 3 | CPU: Intel 3770k @5.1Ghz | RAM: 32Gb G.Skill Ripjaws X @1600Mhz | Graphics card: EVGA 980 Ti SC | HDD: Seagate barracuda 3298534883327.74B + Samsung OEM 5400rpm drive + Seatgate barracude 2TB | PSU: Cougar CMX 1200w | CPU cooler: Custom loop

Link to comment
Share on other sites

Link to post
Share on other sites

Uh... Please don't use Bootstrap unless you need Bootstrap. Stuff like that comes with a LOT of extra nonsense that 99% of devs aren't going to use. It's like buying a tank when all you need is a motorcycle.

 

If you want something pre-built, just use Chris Coyier's AnythingSlider: http://css-tricks.github.io/AnythingSlider

 

It's well built and will do whatever you need it to.

 

If you want to build something a bit more your own you could start with Cycle 2 as a base: http://jquery.malsup.com/cycle2/

 

Or, option B is you build it 100% yourself with a bit of CSS and jQuery. It's really not complicated. In fact, I got a little bored so here's a demo of one built from scratch:

https://dl.dropboxusercontent.com/u/114859/code-experiments/carousel.html

 

Because I'm a show-off it auto-cycles and you can navigate next/prev by clicking on the next or previous slide or by using your keyboard because if you're going to be bored just go for it right?

Link to comment
Share on other sites

Link to post
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

×