Apr 6, 2012

How to Create a Hover Button on Joomla!

,
Because Joomla permits user-edited hypertext markup language code, you can use custom HTML to add special effects to your site. One easy effect to add is the hover button, also referred to as the mouse-over button. By adding a hover effect, your button images will change each time your website visitor hovers his mouse over the image. To make the hover effect work, choose two button images you want to use. The first image will appear before the mouse-over. The second image appears afterward.

Instructions

    • 1
      Log in to your Jooma administration Control Panel.
    • 2
      Click “Media Manager.”
    • 3
      Click “Upload” to upload your two button images from your computer's hard drive to your Web hosting server. Write down the file name for the uploaded image. For example, “http://www.yourdomain.com/yourpicture1.jpeg” and “http://www.yourdomain.com/yourpicture2.jpeg.”
    • 4
      Click “Site” from the top navigation menu. Select “Control Panel” to return to the main portal page.
    • 5
      Click “Article Manager” to view a list of your site pages.
    • 6
      Click the radio box located beside the page to which you wish to add a hover button. Click “Edit” to open the page editor.
    • 7
      Click “HTML” from the page editor toolbar to launch an HTML version of the editor.
    • 8
      Locate the “<body>” and “</body>” tags inside the editor window.
    • 9
      Insert the following HTML code anywhere between the two body tags. Position the code exactly where you want your hover button to appear. Be sure to replace the generic image file names with your real image file names.
      <a href= http://www.yourdomain.com onMouseOver= "if (document.images) document.yourpicture1.src= 'http://www.yourdomain.com/yourpicture2.jpeg';" onMouseOut= "if (document.images) document.yourpicture1.src= 'http://www.yourdomain.com/yourpicture1.jpeg';"><img src="http://www.yourdomain.com/yourpicture1.jpeg" name=yourpicture1 border=0></a>
    • 10
      Click the “Update” button located at the bottom of the editor window.
    • 11
      Click “Save” to save the changes the changes to your page.
 

HowToYo Copyright © 2011 | Template design by O Pregador | Powered by Blogger Templates