Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing cursor color in Dreamweaver

Status
Not open for further replies.

thebach

Technical User
May 24, 2001
12
0
0
US
How do I set it up in Dreamweaver so that peoples cursor will change to a different color when they come to my site?

thanks!
 
If you view the source it is done with JavaScript (I think):

<script language=&quot;javascript&quot;><!--
function move()
{
chk = document.body.clientWidth + 2;
if(window.event.x > chk) //Ist Mauszeiger über Scrollbar?
{
var sfc = &quot;black&quot;; //scrollbar-face-color
var ssc = &quot;white&quot;; //scrollbar-shadow-color
var shc = &quot;black&quot;; //scrollbar-highlight-color
var stc = &quot;black&quot;; //scrollbar-track-color
var sac = &quot;white&quot;; //scrollbar-arrow-color

document.body.style.scrollbarFaceColor = sfc;
document.body.style.scrollbarShadowColor = ssc;
document.body.style.scrollbarTrackColor = stc;
document.body.style.scrollbarHighlightColor = shc;
document.body.style.scrollbarArrowColor = sac;
}
else //wenn Mauszeiger nicht über Scrollbar
{
var sfc = &quot;black&quot;; //scrollbar-face-color
var ssc = &quot;white&quot;; //scrollbar-shadow-color
var shc = &quot;white&quot;; //scrollbar-highlight-color
var stc = &quot;black&quot;; //scrollbar-track-color
var sac = &quot;white&quot;; //scrollbar-arrow-color

document.body.style.scrollbarFaceColor = sfc;
document.body.style.scrollbarShadowColor = ssc;
document.body.style.scrollbarTrackColor = stc;
document.body.style.scrollbarHighlightColor = shc;
document.body.style.scrollbarArrowColor = sac;
}
} // -->
</script>
<script>

 
OK, I got it to work, but I notice that anywhere on my page I have Flash it goes back to white, I also notice I can't get animated gifs to work on my page where there is Flash, I've tried layers and everything else I can think of. Why is this?
 
This is achieved by the following

<style>

BODY{
cursor:url(&quot;
</style>

where arroe.cur is the .cur file having the colored cursor

Please note : this doesnot work in Netscape (any version) or Opera (any version). It also doesnot work in IE versions lower than 5.5
 
why is it that when I put in the code info to change my cursor color, it works fine except for any areas on my page where I have Flash installed? In those areas it goes back to white.
thanks!
 
That because the control goes out of html and into flash. You will have to import the same cursor image into flash and use it with the mouse drag(xmouse and ymouse properties i guess, i am not a flash expert) functions within flash. However even if you do that lets say you have a drop down menu (using form select) in your html document. The cursor when goes to select a option in that drop down menu will go white again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top