PDA

View Full Version : Javascript coding help needed



Triplock
01-25-2011, 03:47 PM
I'm not a coder myself but I could use some help and am willing to pay if it's within reason. It's for a site I'm putting together for a hobby of mine.

Here's a description of what I need done:
http://masterengraver.com/ambigrams/test.html

Please drop me an email with price for your time if you can do this.

Thanks! / ~Sam

venegal
01-25-2011, 04:24 PM
It's your lucky day, I'll just tell you:

Replace

$(document).ready(function()
{
$('#image').rotate({maxAngle:25,minAngle:-55,
bind:
[
{"mouseover":function(){$(this).rotateAnimation(-180);}},
{"mouseout":function(){$(this).rotateAnimation(0);}}
]
});
});

with


$(function() {
$('img[alt="rotate_button"]').hover(function() {
$('#image').rotateAnimation(-180);
}, function() {
$('#image').rotateAnimation(0);
});
});


and you're good to go. Make sure to give the button a higher z-index in your CSS though, so the spinning image won't go over the button and interrupt the hovering.

Triplock
01-25-2011, 06:41 PM
Venegal: THANK YOU THANK YOU THANK YOU! I'm so grateful for your help! It works exactly as I wanted!