• Hello, first sorry, i not speak english very well

    I am trying create a simple img rollover

    like this:

    <img src=”url_pic1″ onmouseover=”this.src=’url_pic2′” onmouseout=”this.src=’url_pic1′” alt=”” />

    when change tab from text to visual, remove script code and return this:

    <img src=”url_pic1″ alt=”” />

    Any way to add scripts to tags?

    Thanks^^

    pd:
    WordPress v4.1
    I try with tiny advance editor but same problem

Viewing 1 replies (of 1 total)
  • If you never click on visual and keep it in html/text mode it should stay and work fine.

    This is because visual editors are designed to strip away code.

    You could also make a child theme and alter the actual code in the template files bypassing a visual editor all together as well.

Viewing 1 replies (of 1 total)

The topic ‘img rollover problem, help please’ is closed to new replies.