lol for those who wants to have a shaking or trembling banner then follow this steps
[b]1)[/b] first copy this code and put it at the top of your codes [b]JS FILES[/b]
[quote]var rector=3
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
}[/quote]
[b]2)[/b]and then put this code in your external css files
[quote].shakeimage{
position:relative
}[/quote]
[b]3)[/b] and finally for the [b]JS[/b] code of the banner
put this code on your onload
[quote]var NavLang = document.getElementById("navLang");
var masamune = "<div align='center'><img src='[b]URL OF YOUR BANNER[/b]'WIDTH='[b]???[/b]'HEIGHT='[b]???[/b]' class='shakeimage' onMouseover='init(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></div>";
navLang.innerHTML = masamune;
navLang.style.height="auto"; navLang.style.overflow="hidden";[/quote]
Here's The preview hover your mouse at the banner to see the trick
www.friendster.com/masamuneisnotemo
its up to you how will be large the banner but i suggest you should set the height at 300 and the width is 820 ^__^ well it depends on you
**instead of flogo(friendster logo) i use the div id of navLang to be the placement of the banner cause if you use the flogo as the placement of your banner and! fs team caught you then ur account will be suspended because u break their TOA(terms of agreement)
**Credits to dynamic drive for the shake script**
Last edited by Shirow Masamune (2007-12-18 08:13:56)