JavaScript is a strong tool to work with Web Technology. You can complete all the tasks using JavaScript.
For ex. I have a task to chnage mouse pointer on mouse hover. The answer is too simple
use CSS.No, my css is not working due to some un avoidable reasons.
Finally I come to the conclusion i.e
Make a global.js contains
function set_mouse_pointer(obj)
{
obj.style.cursor='pointer';
}
Then implement this function like
Steps:
1) Put an HTML button of the page
2) Then on onmouseover event write code "onmouseover="set_mouse_pointer(this);"
3) View that page in browser.
You will see the effect.
This is a simple example of JavaScript. What you can do with JavaScript.
Please let me know if you have any major issues related to JavaScript
How to change Mouse Pointer onmouseover using Javascript
An IT Solution is a purpose and value-driven organization where everyone is empowered to take decisions in line with our culture. We provide a unique environment of freedom, flexibility & trust that allows an individuals potentials to flower; this results in tremendous growth opportunities.Such a culture, naturally, appeals to everyone. We listen, we think and we act. The IT field is all about thought leadership. We invest in thought for you as customers
2 comments:
Cross browser compatibility is a problem with this on IE uses hand, Firefox and others use pointer solution is use both 'pointer';'hand'
Copy Paste this works with all browsers
OnMouseOver="this.style.cursor='pointer';'hand'"
Post a Comment