WordPress.org

Ready to get started?Download WordPress

Forums

Can WP do image mouseovers? (10 posts)

  1. slammel
    Member
    Posted 6 years ago #

    Hi,

    I am trying to help the owner of this WP site http://www.lpod.org/ do image mouseovers like his old site http://www.lpod.org/archive/LPOD-2005-05-27.htm , so far with no success.

    Neither of us know much HTML but if there is a way to do this it would be really helpful for a site like this as you can see from the example. I have tried pasting this XHTML code (which works fine outside of WP) into the page content code window but it doesn't work -

    http://paste.uni.cc/17843

    I've looked around the Codex for information about inputing code but ended up tied in knots (several times), so I hope I haven't missed something obvious.

    Can WP do image mouseovers?

    Thank you!

    Stefan

  2. deuced
    Member
    Posted 6 years ago #

    If it is an effect you would like to use for just one post you could easily use a plugin like INLINE JS or similar so you could add inline javascript code to your post.

  3. slammel
    Member
    Posted 6 years ago #

    Thanks Deuced.

    I have just discovered that Javascript is not allowed for security reasons as it can be exploited for malicious purposes ( http://faq.wordpress.com/2006/05/07/javascript-can-i-use-that-on-my-blog/ ). I would have thought the same applies to JS enabling plugins so I'm a bit surprised to see there is one available for WP. Either way, now I know about the security implications I should probably avoid JS on WP even if it is possible.

    Apart from that I don't appear to have a tab for plugins on my free WP blog account, so I can't test it myself, perhaps they are only available for the full WP installation.

    I hope there is some other way to do this...

    Stefan

  4. whooami
    Member
    Posted 6 years ago #

    apple and oranges.

    blogs on wordpress.com and self-hosted wordpress blogs

    blogs hosted on wordpress.com dont have a plugins tab because you cannot upload your own plugins. plugins as they are described on THESE forums are made for self-hosted blogs.

    Questions about blogs hosted on wordpress.com are better asked and answered over on their own forums, and this thread is a good reason why :)

    http://en.forums.wordpress.com/

  5. slammel
    Member
    Posted 6 years ago #

    Thanks for putting me straight Whooami :)

    However the site I am trying to get this to work on eventually is a self-hosted blog, so perhaps the XHTML code (which I know works) will work ok there with the INLINE JS plugin...

    - so thanks again Deuced, I can see now that the comments about JS vulnerability were obviously only relevant to wordpress.com.

    Stefan

  6. deuced
    Member
    Posted 6 years ago #

    One other thing is that Inline JS is useful when you need a piece of code once in your post. But if you want to use the same code anywhere else in your template you 'd better put it in the header and call it when you need it.

    More info here.

  7. slammel
    Member
    Posted 6 years ago #

    Thanks Deuced, if I understand the way the site is set up it gets used just once, if not I'll do that.

    Stefan

  8. skeezicks
    Member
    Posted 6 years ago #

    Hope this isn't OT, but is your "image mouseover" anything like an "image map" wherein moving the mouse over different parts of an image and clicking loads another uri?

    Just curious, and lurking around the forum for info on image-mapping.

  9. slammel
    Member
    Posted 6 years ago #

    Well I guess its similar except there's no clicking, eg. http://www.lpod.org/archive/LPOD-2005-05-27.htm , if you position the mouse over the image a new one appears.

    Stefan

  10. skeezicks
    Member
    Posted 6 years ago #

    Similar but no cigar. Moving the mouse over different parts of an image(map) brings up different urls when one clicks the mouse button. If for example you had a map of the U.S., clicking over various states would link to something to do with that state.

    I'll keep lookin'.

Topic Closed

This topic has been closed to new replies.

About this Topic