Axis guidelines over an image

I just had to wrap document ready function around: jQuery(document).ready(function( $ ) { $(‘#imageholder img’).on(‘mousemove’, null, [jQuery(‘#horizontal’), jQuery(‘#vertical’)],function(e){ e.data[1].css(‘left’, e.offsetX==undefined?e.originalEvent.layerX:e.offsetX); e.data[0].css(‘top’, e.offsetY==undefined?e.originalEvent.layerY:e.offsetY); }); $(‘#imageholder’).on(‘mouseenter’, null, [jQuery(‘#horizontal’), jQuery(‘#vertical’)], function(e){ e.data[0].show(); e.data[1].show(); }).on(‘mouseleave’, null, [jQuery(‘#horizontal’), jQuery(‘#vertical’)], function(e){ e.data[0].hide(); e.data[1].hide(); }); });

jQuery forms & updating info

ahh nvm, sorted it: jQuery(document).ready(function($){ $(‘.addtocart’).submit(function(){ var data = {action: ‘my_special_action’,post:$(‘.addtocart’).serialize() }; $.post(“<?php echo admin_url(‘admin-ajax.php’); ?>”, data, function(response){ $(“.eshopajax”).insertAfter(this).fadeIn(100).html(response).fadeOut(3000); setTimeout (clearCart,200); setTimeout (doRequest,500); setTimeout (clearRequest,3000); }); function doRequest(){ var tdata = {action: ‘my_cart’}; $.post(“<?php echo admin_url(‘admin-ajax.php’); ?>”, tdata, function(response){ $(“.ajaxcart”).insertAfter(this).fadeIn(100).html(response); }); } function clearRequest(){ $(“.eshopajax”).empty(); } function clearCart(){ $(“.ajaxcart”).insert(); } return false; }); });

need jquery help

Trim your above code down to.. <?php wp_enqueue_script( “my_script”, plugins_url( ‘/your-script-name.js’, __FILE__ ), array( ‘jquery’ ) ); ?> <?php wp_head(); ?> <?php woo_head(); ?> Place your jQuery into a JS file, then enqueue it with jQuery as a dependancy(as above), this will ensure jQuery is loaded before your script is. Your script also needs to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)