• Hello,

    After upgrading to WP 3.9, I noticed that when editing the article automatically removes me onmouseover and onmouseout variables of the images and when it is inserted and removed them anyway, and sets one image.

    It is a bug or something changed? how to set the WP to now when you hover your mouse on the image display to another?

    Ps. I’m using TinyMCE Advanced further, but also after the update plugins (4.0) do not see such an option where you were earlier.

    Ps2. Sorry for my english ;p.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Hi

    I would look at using jquery to do the image change.
    I used to have a plugin here that inserted a mouse event into images to launch a pop up box with the correct way of linking to them to help boost my backlink profile.

    With 3.9 that plugin stopped working because the mousevent was being stripped.

    I got a round the problem by using jquery on the image div to launch the box – see https://lovebreconbeacons.co.uk/shop/92119/brecon-and-monmouthshire-canal-brecon-beacons/ – if you right click on an image then the box pops up.

    That worked by a mousedown event inserting the javascript into the code and a mouseup event launching the javascript:

    function add_this_script_footer(){ ?>
    
    <script type="text/javascript">
    jQuery(".imglink").mousedown(function(){
    jQuery(this).attr("onmouseup","hl2l(event)");
    });
    </script>
    
    <?php } 
    
    add_action('wp_footer', 'add_this_script_footer');

    You should be able to put something similar together by setting a div id for your buy button and then using a mouseover event to swap the image.

    I think it is probably the simplest solution to the problem.

    Kevin

    I am having the same problem with the mouseevents being removed from my HTML code. I am not familiar with jquery. I do not have access to FTP for the server nor admin functions to add and remove wysiwyg editor.

    @ibhola – please start your own thread – this one is months old. Please read over the forum welcome:

    https://codex.www.ads-software.com/Forum_Welcome#Where_To_Post

    You can start a new one here:

    https://www.ads-software.com/support/forum/how-to-and-troubleshooting#postform

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Onmouseover i onmouseout’ is closed to new replies.