Pages: 12
You are viewing a post by Deviantangel. View all 38 posts in [align=center]This is a cool trick!! If u point on the image it will shake!! Make sure the page is fully loaded to see it shakes. Put the following code into the HEAD part of your page: [code]<style.

 1002
 1002 0
 0 1969-12-31
 1969-12-31 Please do not rip codes. Properly credit them. What if someone rips your work and claim it for yourself?
Please do not rip codes. Properly credit them. What if someone rips your work and claim it for yourself?  Look at the codes:
[quote][align=center]<style>
.shakeimage{
position:relative
}
</style>
<script language="JavaScript1.2">
/*
Shake image script (onMouseover)- 
[b]� Dynamic Drive (www.dynamicdrive.com)[/b]
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
//configure shake degree (where larger # equals greater shake)
var rector=3
///////DONE EDITTING///////////
var stopit=0 
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a=
Look at the codes:
[quote][align=center]<style>
.shakeimage{
position:relative
}
</style>
<script language="JavaScript1.2">
/*
Shake image script (onMouseover)- 
[b]� Dynamic Drive (www.dynamicdrive.com)[/b]
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
//configure shake degree (where larger # equals greater shake)
var rector=3
///////DONE EDITTING///////////
var stopit=0 
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a= ){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>[/align][/quote]
Tsk. This is your second time to rip.
){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>[/align][/quote]
Tsk. This is your second time to rip.  Please do not do that or else you will be labeled as a ripper.
Please do not do that or else you will be labeled as a ripper.
					Last edited by Deviantangel1995 (2008-08-09 23:29:08)
|  |