hm_468x60_09_395
announcement

Joomla Web Hosting

Find the best and most affordable Joomla web hosting provider.

Community Showcase on joomla.org

The Joomla Project is pleased to announce latest undertaking to promote Joomla site

Advertise on JoomlPanel.com

For only $30.00 a month you can advertise on one of the web's largest Joomla websites.

More Changes Coming Soon!

Check back for future changes!

bh_300x250_08_395

jQuery Slideshow for Full Screen Background

Resizes images to fill browser while maintaining image dimension ratio No extra whitespace, no scrollbars - the entire browser window is always filled Compatible in Firefox, Safari, Opera, IE7, and IE6 Ability to cycle through images/backgrounds via slideshow.

The first thing we are going to want to do is set up the initial CSS/HTML, then get the jQuery in place.

The CSS

  1. /*Supersize Plugin Styles*/
  2. body {
  3. overflow:hidden;
  4. }
  5. #supersize img, #supersize a{
  6. height:100%;
  7. width:100%;
  8. display:none;
  9. }
  10. #supersize .activeslide, #supersize .activeslide img{
  11. display:inline;
  12. }

A couple of key points from above -

  1. In order to prevent scrollbars from appearing when the image stretches past the edges of the browser, be sure to include body{overflow:hidden}.
  2. The plugin uses the id #supersize to identify what image(s)/elements need to be run. It is the umbrella class for all other elements of the plugin.
  3. The .activeslide class tells the plugin which img/div/a is active and therefore needs to be displayed. By default the contents of #supersize should hidden, which means you will need to specify in this section any additional elements you wish to hide/show with each slide (ie Links, Div, Img).

The HTML

  1. <div id="supersize">
  2. <img class="activeslide" src="/picture.jpg"/>
  3. <a href="#"><img src="/picture2.jpg"/></a>
  4. </div>

Worth noting - As you might have seen from the CSS, the .activeslide class makes whatever element it is attached to visible. For the cases when you wish to make an image a link as well, it will need the above #supersize .activeslide img to make sure the link and the image both appear. If you don’t want to use the slideshow feature you only have to include one image with the .activeclass here. You also will want to shut slideshow off in the options, more on that below.

The jQuery

First we’ll want to include links to both jQuery and Supersized in the header.

  1. <script type="text/javascript" src="/jquery.js"></script>
  2. <script type="text/javascript" src="/supersized.1.0.js"></script>

Below, plug this piece in, it is the jQuery that defines any user options you may want to change and then actually calls the plugin to action.

  1. $(function(){
  2. $.fn.supersized.options = {
  3. startwidth: 1024,
  4. startheight: 768,
  5. minsize: .5,
  6. slideshow: 1,
  7. slideinterval: 5000
  8. };
  9. $('#supersize').supersized();
  10. });

Options

Now for all of those Nancy Drew super sleuths out there, you might have already noticed that you have options to play around with. For the rest of you, it’s okay, below outlines them in more detail.

startwidth & startheight - It is important that you specify the image size(s) in this area. These used to develop a ratio and minimum size. If you are planning on using the slideshow and images of various sizes, it will still work as long as they have the same ratios (ie 4:3 / 16:9). For these cases I would suggest using the dimensions of one of the smaller ones in the batch, as it won’t mess up minimum sizes on smaller images. For now all images must be the same ratio to display them in the proportions they were intended to be, although in a future release I will look to add auto-detection. The default dimensions are 1024 x 768.

minsize - This is the decimal form of the minimum percent for the starting width / height that you want the image to be. The default is 50% of the starting size of the image.

slideshow - This turns the slideshow feature on and off. If it is 1 then it is on, anything else… it’s not.

slideinterval - This is the amount of time spent on each image in the slideshow in milliseconds. Play with it accordingly.

 

DEMO DOWNLOAD from the Resource


 

joomlahosting




Joomla Tutorials

Joomla panel provides easy to use website joomla tutorial free download joomla templates for joomla verssion 1.0x and 1.5x. Here you will learn how to install Joomla, all the way to installing and customizing your own templates.

Tutorials Showcase enables you to build Web sites and powerful web applications. Best of all, Joomla is an open source solution that is freely available to everyone.

Building Web CMS Project

Submit your joomla web to joomlapanel web showcase gallery directories and find the joomla stable extensions : Joomla plugin, joomla module, joomla component, joomla mambot.

Submit your Article blog into our article directories to anchance high web Traffic.

 

Article and Tips trick

Your sohowcase for Travel guide; Hotel, Villas resort, Flight, car website

tutorial