Support Forums

Full Version: Change the cursor for JavaScript links
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The tips that i'm giving now, are very useful:

1. Change the cursor for links that open in new window

This neat trick will change the mouse pointer when you hover it over links that will open a new window. Add the following code to your userContent.css file:

/* Change cursor for links that open in new window */
:link[target="_blank"], :visited[target="_blank"],
:link[target="_new"], :visited[target="_new"] {
cursor: crosshair;
}



2. Change the cursor for JavaScript links

This tip will change the mouse pointer when you hover it over links that will perform a JavaScript command. Add the following code to your userContent.css file:

/* Change cursor for JavaScript links */
a[href^="javascript:"] {
cursor: move;
}
(02-04-2010, 05:21 AM)lucy Wrote: [ -> ]The tips that i'm giving now, are very useful:

1. Change the cursor for links that open in new window

This neat trick will change the mouse pointer when you hover it over links that will open a new window. Add the following code to your userContent.css file:

/* Change cursor for links that open in new window */
:link[target="_blank"], :visited[target="_blank"],
:link[target="_new"], :visited[target="_new"] {
cursor: crosshair;
}



2. Change the cursor for JavaScript links

This tip will change the mouse pointer when you hover it over links that will perform a JavaScript command. Add the following code to your userContent.css file:

/* Change cursor for JavaScript links */
a[href^="javascript:"] {
cursor: move;
}

Hi..

Your tips and tricks are really nice. I will use this one in my future. But what is the mouse? What Type The Cursor Currently Is?

thanks !!