It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Flashing Scroll bar

Flashing Scroll bar

Postby johneva on Mon Nov 28, 2005 4:10 pm

Hia all

I have got this script for a flashing scroll bar, but it is 17 little java scripts all in my web page code.
How can I change it in to a seperate js file like the rest of my java scripts.

Here is part off it but if you whant to see the whole script go to.
http://www.johneva.2freegigs.com/


<!--Script to change color of scrollbar-->
<script language="JavaScript">

function eightb()
{
with(document.body.style)
{
scrollbarDarkShadowColor="0000FF";
scrollbar3dLightColor="87CEFA";
scrollbarArrowColor="0084ff";
scrollbarBaseColor="0000FF";
scrollbarFaceColor="000020";
scrollbarHighlightColor="0000FF";
scrollbarShadowColor="0000FF";
scrollbarTrackColor="00008b";
}
setTimeout("one()",100);
}
</script>
<script language="javascript">
function sevenb()
{
with(document.body.style)
{
scrollbarDarkShadowColor="0000FF";
scrollbar3dLightColor="87CEFA";
scrollbarArrowColor="0084ff";
scrollbarBaseColor="0000FF";
scrollbarFaceColor="000030";
scrollbarHighlightColor="0000FF";
scrollbarShadowColor="0000FF";
scrollbarTrackColor="00007b";
}
setTimeout("eightb()",100);
}
</script>
and so on.


Please help
Thanx John
Last edited by johneva on Mon Nov 28, 2005 5:21 pm, edited 1 time in total.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby webmaster on Mon Nov 28, 2005 5:21 pm

Just save it in a file.js and on the page you would like to use it, put this between the <head></head> -tags:
Code: Select all
<script type="text/javascript" src="file.js"></script>
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby johneva on Mon Nov 28, 2005 5:27 pm

Hia

Yep I know how to do that thanx fella,
but it dont work cos there are lots of little scripts.
How can I make all them little scripts work as one js file?
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby johneva on Mon Nov 28, 2005 5:41 pm

Hia

I have done it now cheers the first time I removed all the script tags I must have lost the script structure somwere. :oops:
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England


Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests