CMS & WordPress
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?
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
Brilliant, it is as you said in #2. How enlightning, many thanks
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/
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?
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.
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
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/
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/
This topic is now closed. New replies are no longer allowed.