Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #868837

    I would like the image to change into a different image when i hover above it.

    I would like to use this method.
    <img onmouseover="this.src='path-to-mouse-over-image';" onmouseout="this.src='path-to-normal-image';" src="path-to-normal-image" alt="what-ever-you-like" />

    The strange thing is that it workes in edit mode, but not in preview mode. What am I doing wrong?

    • This topic was modified 7 years ago by snitt.
    #869404

    Hey snitt,

    We can’t access the page you linked to without being logged in.

    Best regards,
    Rikard

    #869407

    See private content

    #869444

    But please think of it if the sprite method is an option to do it – it is used for a long time and has the advantage that the image is completely loaded before someone hovers the image.
    Less http request is one reason for it. See here a nice Article about Sprites: https://css-tricks.com/css-sprites/
    And here is a Sprite Generator if you are not familiar with photoshop. https://www.toptal.com/developers/css/sprite-generator

    #870218

    Hi,
    I couldn’t find the image you are trying to use the hover effect on. Can you add a screenshot of it?

    Best regards,
    Mike

    #870385

    I am sorry. I removed it when I tried to do the sprite thing. I have now added both sprite version, and html version.
    Sprite version works, but my problem here is that its not responsive. Same problem with html version. It flips in edit mode, but not on live site.

    #871508

    Hi,

    The page wit an id of “1776” doesn’t exist anymore. Did you remove it?

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.