HİT-CENTER

TopList

Sayafayı yenileyince değişen söz

Kod :





<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: mrhoo | http://www.webdeveloper.com/forum/showthread.php?t=143761 */
function messageLoad() {
// Be sure to change the number following the "*" below to match the number of messages.
var wch=Math.floor(Math.random()*4+1);
document.getElementById('ran'+wch).style.display='inline';
}

// Multiple onload function created by: Simon Willison
// http://simon.incutio.com/archive/2004/05/26/addLoadEvent
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}

addLoadEvent(function() {
messageLoad();
});
</script>

<style>
/* Be sure to add or delete IDs below, according to
the number of messages that you have. */
#ran1,#ran2,#ran3,#ran4 {
display:none;
}
</style>


<p id="randomP">
<strong>Quote of the Day:</strong>
<span id="ran1"><strong><em>If it aint broke. Get a bigger hammer.</em></strong></span>
<span id="ran2"><strong><em>Change is inevitable; progress is optional.</em></strong></span>
<span id="ran3"><strong><em>Do not attribute any action to malice that can be explained by stupidity.</em></strong></span>
<span id="ran4"><strong><em>The box said "Requires Windows 95, NT, or better", so I installed Linux.</em></strong></span>
</p>