Monday, March 7, 2011

java script




Say Hi to you~

Thank You




that java script ,i found from internet...
copy this:

<center>
<font face="Verdana">
<!-- insert your message at below -->
<b style="font-size: 130%; position: relative; z-index: 2; color: red " id="zic">Say Hi to you~</b><br/>
<b style="font-size: 200%; position: static; z-index: 1; top: -1em; color: #4A85B9" id="zic2">Thank You</b><br />
</font>
<script>
// The text moved from right to left

var zici = 0;
function zicf() {
    document.getElementById('zic').style.left = Math.round(Math.cos(zici += 0.02) * 100) + 'px';
    document.getElementById('zic2').style.left = Math.round(Math.cos(zici - 0.1) * 130) + 'px';
    setTimeout (zicf, 10);
}
zicf ();
</script>
</center>


then copy to your blog >>Design >> Add a Gadget>>
HTML/JavaScript
Add

Extra~
<font face="*****">              (****  is font that you can put what you want to.)


position: static;
- static is make the object cant move. if you want font moving, set position as relative. 
position: relative;

No comments:

Post a Comment