View Full Version : The Code for this Scrollbar?


lilmestizaxox
08-03-2004, 03:15 AM
I happened to come across this example page http://www.xanga.com/home.aspx?user=kath1eenexample2 and I was just wondering if anyone knew the code for the blinking/flashing scrollbar/boarder thing? thanks in advanced... <3

ham_let
08-03-2004, 03:20 AM
*whimpers* hurts eyes.. =( neways...

<!-- begin code provided by createblog.com -->
<script language="JavaScript">
<!-- Scroll Surprise by kurt.grigg@virgin.net
colours=new Array('ff0000','fff000','00ff00','ffa500','ff00ff' ,'00ffff','ffffff')
function flash(){
var clrPos=Math.floor(Math.random()*colours.length)
with (window.document.body.style){
scrollbarTrackColor=document.bgColor;
scrollbarFaceColor=document.bgColor;
scrollbarArrowColor=colours[clrPos];
scrollbar3dLightColor=colours[clrPos];
scrollbarHighlightColor=colours[clrPos];
scrollbarShadowColor=colours[clrPos];
scrollbarDarkShadowColor=colours[clrPos];
borderWidth=2;
borderStyle='solid';
borderColor=colours[clrPos];
}
}
if (document.all)window.document.body.onscroll=flash;
//-->
</script>
<!-- end code provided by createblog.com -->

lilmestizaxox
08-03-2004, 04:08 AM
Hmm for some odd reason it isnt working for me? any ideas? <3

JiNgLeBeLLz77
08-03-2004, 04:13 PM
did you put it as the last code...? in your header...?