hantaah — 2012-12-07T08:32:38-05:00 — #1
If I have a website powered by wordpress, that has a main featured slider on the home page that rotates, what is it that makes it rotate?
hantaah — 2012-12-07T12:00:11-05:00 — #2
dresden_phoenix — 2012-12-07T14:10:17-05:00 — #3
w/o knowing the specific code that question is hard to answer.
Generally the following techniques are employed:
1) for random STATIC images, WP may be using a PHP script. Building an array of image URLs, then using rand(0, count($your_array)-1); to pick an image at random.
2) if its a SLIDE SHOW. then you do need .js of some sort. If this is the case ALL your images are present ALL the time and the scripts merely changes the position of the images to make one visible over the other (usually by changing CSS classes). If you were to turn off CSS and JS you SHOULD(not necessarily tho) see your entire slide show displayed as a plain list of images. the .js is probably executing on timeout(), to rotate the images at an interval. On your HTML try to locate this list ( or a DIV reaped around it) and see what ID/or class it has. You can then inspect your jQuery selectors for code that target that element or .js getElementByID('that elements ID')
Hope that helps
hantaah — 2012-12-07T14:18:26-05:00 — #4
Brilliant, it is as you said in #2. How enlightning, many thanks
felgall — 2012-12-07T16:36:09-05:00 — #5
awasson — 2012-12-08T15:40:34-05:00 — #6
For fading systems I use my own jQuery code but for a quick sliding banner system I use the jQuery Slides plugin. Have a look at it here: http://www.slidesjs.com/
hantaah — 2012-12-17T09:01:08-05:00 — #7
This thread has inspired me to take a developers course. After paying for a certified web developers course, I found out that there is no regulartory certificate for this field. Is this correct?
awasson — 2012-12-17T12:04:47-05:00 — #8
None that I know of. Lots of technical colleges offer courses around here but they are only certified by themselves so... Not an industry standard by any stretch.
hantaah — 2012-12-20T14:26:19-05:00 — #9
Just started my js course, I havn't got a clue what they are taking aboout. I'm hoping it will all become clear in time
awasson — 2012-12-20T15:25:24-05:00 — #10
Well, I suppose it all depends on what they are teaching you in the course. Web development takes shape in a variety of disciplines:
2) PHP, ASP.NET, Coldfusion, Classic ASP, Java Server Pages are server side technologies that run on the server and generate/serve client side code.
3) MySQL, MS SQL Server, Access, SQL Lite, etc... are some of the databases that the server side code is used to store and retrieve data (content) on websites
4) WordPress, Drupal, Joomla, Concrete5, Expression Engine, etc... are content management systems built upon the above three items to automate the process of building and maintaining modern websites.
My suggestion for someone new to the whole web development world would be to concentrate and master one area first. For instance, learn HTML/CSS so that you can look at a complex layout and intuitively know how you will render it as HTML using CSS to control how it all fits together; using background colours and css-gradients & opacity to manage drop shadows or overlaping areas.
Also get a good book about PHP/MySQL to learn about how server-side code and databases interact to produce pages like the this forum page. Sitepoint has a ptretty good book right here: http://www.sitepoint.com/books/phpmysql5/
hantaah — 2012-12-20T15:54:17-05:00 — #11
awasson — 2012-12-20T21:34:28-05:00 — #12
I chose jQuery because it is relatively easy to latch on to and there is a lot of documentation about it on the web with examples of working code: http://jquery.com/