creating a rollover button graphic navigation menu
Rollover button navigation menus consist of a serics of hyperlinks that use javascropt to control the visibility of two same-sized button graphic: one graphic shows the button’s normal state, and the other the mouseover link state, when both button graphics have the same width and height, the javascript rollover effect displays both graphics smoothly. If onbe of the graphic is different in size then the other, the over state graphic will be stretched or squished to match the same dimensions as the normal state graphic, giving the over-state graphic a skewed effect. jave script for rollovers usually up to three different script parts to function depending on how the script was written and those parts must be placed at specific points within the HTML code. one of the parts is called a prelood script, which is placed in the area of the code and preloads the rollover state graphics into the visitor’s browsers cache so that by the time the visitor mouses over a button the over-state button graphic is ready to appear. without the preload script, there would be a delay in the rollover functionality. the other two parts are the event handdler, which gets placed in the tag and tells the browser when to process a preload script when present, and the rollover script itself, which gets written inline with the button image and contains the rollover instructions to the browser.when placed between tags in the body of the page, javascript code executes immediately as the page loads in a browser. to have the code and then call upon it to execute when a visitor’s mouse movement triggers a particular event. the actual javascript used for the rollover functionality which identifies the graphics to be swapped for each button can be written in several different ways even though they all essentially function the same. to find the code you’d like to use. you can search the internet for free javascript that will handle the rollover effect.alternatively, if you’re using an image optimizatyion program like imageready or a code editor like dreamweaver, those programs write a version of workable javascript code for you.with imageready you can choose to output images and html when you go to save optimized graphics. the resulting HTML file will contain all the necessary javascript code to make any specified rollover graphics function as rollover buttons. what’s more the code contains parameters for inserting a total of four graphics for the mouseover, mouseout, mousedown, and mouseup link states.the four link states for javascript rollover buttons exactly match the four link states for regular hypertext links. the normal link state is associated with the onmouseout event handler and displays the default button graphic before a visitor interacts with it, the hover state is controlled by the onmouseover event handler and displayed the mouseover graphic when a visitor hovers the mouse over the button. the third link state like the active link state in CSS uses the onmousedown event handler to display a graphic for the button during the mouse click.
For more information to visit : –
search engine optimization India And SEO India