[Typo3] GMENU and resizing imagebutton on mouseover

R.E. Klerk r.klerk at attitude.nl
Tue Jun 7 10:03:06 CEST 2005


Hi list

I am using GMENU for navigation. The normal state properties of the graphical buttons are smaller (width 62px / height 125px) than the rollover state properties (width 124px / height 125px). Using this TYPO3 template setup images swap nicely, but with cropped rollover state buttons:

# Menu cObject
  temp.menu = HMENU
  temp.menu.special = directory
  temp.menu.special {
    value = 41
  }
  temp.menu.1 = GMENU
  temp.menu.1 {
    noBlur = 1
      # Normal state properties
      NO {
        altImgResource.import = uploads/media/
        altImgResource.import.field = media
        altImgResource.import.listNum = 0
        wrap = |
      }
      # Rollover state properties
      RO < .NO
      RO = 1
      RO {
        altImgResource.import = uploads/media/
        altImgResource.import.field = media
        altImgResource.import.listNum = 1
        wrap = |
      }
  }

Adding imgParams = width="" height="125" to the TYPO3 template setup does not overwrite/override the image properties. It just adds these dimensions resulting in the following page source showing a 124*125px image as a 62*125px image :

<a href="index.php?id=47" onmouseover="over('img47_b49c_2');"
onmouseout="out('img47_b49c_2');"><img
src="uploads/media/bt_platform-ACT.gif" width="62" height="125" border="0" alt="Platform" name="img47_b49c_2" /></a>

Anyone have any idea how to enable resizing an imagebutton on mouseover?

Thxs in advance, Ralph

- R.E. Klerk (rklerk)

-----------------------
The mailing list archive is found here:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
				



More information about the TYPO3-english mailing list