Cascading Style Sheets Tutorial

CSS technology and image dynamic effect of menu navigation

  CSS technology and image dynamic effect of menu navigation 

  In this paper we often use some concern, but very few things in the following description, we assume that you use the CSS @ import technology, because here CSS will let you may lose confidence in the Opera 4.    If you put your image as a part of the layout of the pages in CSS embedded under the control of images is likely that you do not want the results if you use do not support CSS2 is a standard browser such as Opera 4.    Here's an example, the use of modified GIF image to fillet. 

  In fact, I do not want the web site, images embedded in HTML code, because they represent only the visual things, and not a reflection of the content, so I will have them and some other representative on the part of CSS under control.    This method will make it easier to control your pages to allow more beautiful.    To make the surround effect, I used the CSS background images: the use of these background image is intended to better adapt to the layout of CSS, we will be embedded in these images in the background layer. 

  Here you can see how I define the size of the picture (19 * 37px px), and each picture in the end of the corresponding background image.    Then these two pictures placed in a good pre-determined linear object inside.    Of course, many of these principles can be reused, so you do not need the last great CSS code.    The only disadvantage of this method is that it can not be used to adjust the size of dynamic picture, if your images smaller than the layer, it will be ignored, if your image layer than large, it will be repeated filling into blank areas.    However, you are probably not in the hope that the images in the operation of any position can be perceived. 

  CSS Dynamic Image Technology 

  CSS text menu to give dynamic technologies, such as web page on the left side of the menu, this menu is now more and more people love.    However, I do not think I have seen this kind of technology: a purely use CSS to achieve this effect technology.    It allows menu with image conversion function, the problem here is that we use pure CSS to achieve this effect.    Below the use of two steps to achieve the afterlife Image Transform menu.    Change the background color only the first step; second, the rotation is accurate multidimensional image.    (Warning: This skill is one of the shortcomings of some technology can not be used in conjunction with the Opera 6, although they Opera 7 is a good technology.) 

  Transform a background image 

  If this is a transparent background image, then we can be very easy to use selector change its background color.    In this case the image is embedded in HTML resources, which means that in the not support CSS2 standard browser it will show (apart from the text browser!). Its code complex than the example below, but I can all browser to operate.    It should be noted that to achieve results in the process of downloading an image only once. 

  Transform background image 2 

  This version version 1 is relatively very simple.    Its image is CSS background images, it does not support CSS2 standard browser will not show: we provide a choice of text links, this is a obsolete example. 

  Rotating button 1 

  JS now no need for scripting language support for the rotation of the image on some new methods, the method is the use of background maps, using a: hover characteristics, when indicators point to change the background image on the map, so if it closed the CSS is not image will be displayed, and we also get a choice of text links. support the method IE6, Netscape 7, Mozilla and Opera 7, but do not support Opera 6. third category buttons state through similar methods: Active selector to pass Image .    Readers can this as a way to do an exercise is done. 

  A rotary button 1 

  This is different from the button a button. We again use a CSS background, but instead of using a rotating choice to load a new image for the button other states, we use CSS to change the location of existing images. If too much use of such images, background images were pruned so we button is a separate image contains two buttons state. images usually show the first half, but when the button while rotating images showed that the second half replacement. therefore This is a complete images. use of this method there are two advantages here. Firstly, if the visit button to download data in order to reduce the number of - just download an image band for two - so this is faster. Secondly, in the first visit did not second delay to wait for the download image: it has been in the. without pre-complex images.    If the button is the negative aspects of not visit, some of the wasted bandwidth, which is in the use of the concept of a button, HTML and CSS as well. Major differences in: rotating choice. 

  2 carry-over buttons 

  Below, another way to achieve CSS image rotation for the use of images of Z Index, which showed that Z Index control elements in the top, unfortunately, it does not support IE6 or Opera 6.Opera 7, Mozilla and Netscape 7 to work, But in this case Mozilla is so slow, CSS2 browser in the rotation does not work, only the top image shows normal. CSS2 browser in the non-top and rotating images side-by-side, seems to be eccentric. work Internet Explorer District includes a small handling procedures, if image background color changed, Z index has also changed, Internet Explorer changes were related work. Philippe change by changing the RGB color values (for example, # # ffffff to fffffe) so small change the results are notable. 

  Taoba new website on the line 


Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: Background Image, css drop-down menu, CSS effect, css menu, css navigation, List Style Image

Releated Posts

  • More than 30 CSS navigation menu effects (Note: To download the document with only look at, "demonstrate the" useless)
  • CSS effect hide / show-type menu
  • More than 30 CSS navigation menu effects
  • Css javascript + + dhtml classic practical effect of strong points - Tree menu, tab, sort forms are available from here!
  • CSS production standard navigation menu effects

This entry was posted on Sunday, February 10th, 2008 at 12:00 am and is filed under CSS Tutorial By Examples. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« CSS primary entry: Style's repeated statements
Rational use HTML tags to CSS layout »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial