ma rafa
05-17-2013, 11:00 AM
1) Title:
Need help for a little modification for the script of Shake image on Mouseover
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/shake.htm
3) Describe problem:
As I am new to Javascript.
I want to shake an image as reference is provided for the DD script via the link above.
1- onMouseover a Link
2- and onMouseover another image.
How I can make changes in the script for.
For example,
<a href="#" onMouseover="init('pic1');rattleimage()" onMouseout="stoprattle('pic1');top.focus()" onClick="top.focus()"> Click here </a>
<img src="images/pic1.png" class="shakeimage" id="pic1">
and
<img src="images/mainpic.png" onMouseover="init('pic1');rattleimage()" onMouseout="stoprattle('pic1');top.focus()" onClick="top.focus()">
<img src="images/pic1.png" class="shakeimage" id="pic1">
An immediate reply with solution will appreciate.
Kindly advise
Need help for a little modification for the script of Shake image on Mouseover
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/shake.htm
3) Describe problem:
As I am new to Javascript.
I want to shake an image as reference is provided for the DD script via the link above.
1- onMouseover a Link
2- and onMouseover another image.
How I can make changes in the script for.
For example,
<a href="#" onMouseover="init('pic1');rattleimage()" onMouseout="stoprattle('pic1');top.focus()" onClick="top.focus()"> Click here </a>
<img src="images/pic1.png" class="shakeimage" id="pic1">
and
<img src="images/mainpic.png" onMouseover="init('pic1');rattleimage()" onMouseout="stoprattle('pic1');top.focus()" onClick="top.focus()">
<img src="images/pic1.png" class="shakeimage" id="pic1">
An immediate reply with solution will appreciate.
Kindly advise