CSS - Problem With Custom Cursor (ie)
hello,
i'm placing a custom cursor on a stylesheet like so: body { cursor: url(normal.cur), default; } and a weird effect appeared on internet explorer... when the cursor is over any layers or images (i guess, over any actual elements), the custom cursor appears. but when it's on an empty area, say the page background, the default cursor appears instead. how can i fix this (while trying to maintain the default cursors for every other browser)? thanks for any help! Similar TutorialsI am trying to use CSS so that when a user hovers their mouse over a submit button, they get a "hand" or "pointer" instead of the default arrow. Below is an example page to demonstrate what I am doing. It works fine in the latest version of Internet Explorer and Mozilla Firefox, but not in Opera 7.54. In Opera 7.54, the cursor changes when I hover over the border of the button, but when I move to the center of the button it goes back to an arrow. Does Opera 7.54 support this style properly or am I doing something wrong? Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="dr0n3" /> <style type="text/css"> /* I have read that I should use pointer, then hand so it is compatible across a range of browsers, but this still doesn't work properly in Opera 7.54 */ .button { cursor: pointer; cursor: hand; } </style> </head> <body> <form action="page.php" method="post"> <p><input type="submit" name="submit" value="Test" class="button" /></p> </form> </body> </html> Hi people, I could not find a grabbing hand cursor in css cursor property. Instead I use this "cursor:move;" for a while. A grabbing hand like what GoogleMap do when dragging a certain map. Is that a server side creation? Hi all, I'm trying to change my cursor when I hover over a image on a onclick event as the example below but I can't get this to work. <a onmouseover="this.style.cursor='hand'"> Regards Stephen Hi, Is their any way to change the cursor color in css or javascript? Thanks Rishu I'm trying to change the cursor when a user mouses over an image. Code: cursor:hand Works perfect in IE, but the cursor tag doesn't respond at all in Firefox. I've been able to "trick" Firefox when using onClick JS links by putting href="#". When you go near a link the cursor flickers and then goes back to default, cant get it to show normally for any link. Works on my windows PC but not on my Mac Even tried a{ cursor:pointer; } but the same thing happens... http://pd-scammell.co.uk/site/ Any ideas? Thanks. When my cursor passes over the links on the top of my page (not clicking a link, just passing the cursor over the link), the title jumps from its position directly under the links to a position to the right of the links. Since you are giving me help, I want to make this as easy for you as I can. I have posted a screen shot of exactly how my header looks before and after passing the cursor over the links. www.middle-age-guy.com/forum-css-help_images.html Here is the relevant css. I've separated and labeled the css so that you can see how it flows down the page. ___________________________________________ #header { width: 998px; margin: 0 auto; } #header .container { background:url(images/head_pat.jpg) left top repeat-x; height: 200px; } /* -- links along the top of the page (Home, MAGman Lifestyles, etc. --*/ .topline { } ul.menu li.page_item { float: left; display: inline; font-size:12px; margin-top: 25px; } ul.menu li.page_item a { color:#000!important; text-decoration: none; padding:25px 0 0px 0px; margin-right: 15px; list-style-type: none; } ul.menu li.page_item a:hover { color: #fff!important; text-decoration:none; background:url(images/menu_hover.gif) left repeat-x; } ul.menu li.current_page_item a { color: #fff!important; text-decoration:none; background:url(images/menu_hover.gif) left repeat-x; } /* -------------------- Image on right side of header ---------*/ #magmanheadshot { padding:0; margin:25px 50px 20px 0; float:right; width:160px; color:#003e4f; } /*--------------- Title - Middle-Age-Guy.com --------------*/ #headline { width:450px; margin-top: 20px; } #headline h1 { display: block; clear:left; font-size:30px; margin-left: 20px ; margin-bottom: 5px; color:#FFFFFF; font-weight:normal; } /* ------------- Tagline below the title --------------*/ .desc_l { background:url(images/desc_l.gif); width:10px; height:27px; float:left; margin-left: 25px; } .desc { background:url(images/desc_pat.gif); height:27px; float:left; font-size:14px; line-height:25px; font-weight:normal; color:#FFFFFF; } .desc_r { background:url(images/desc_r.gif); width:10px; height:27px; float:left; } .magmandatingsystem { margin: 10px 0 0 0; font-size: 12px; padding: 0 0 0 23px; float: left; width: 400px; } /* --------------------- Membership login link -----*/ .login { font-size: 18px; color:#FFFFFF; text-decoration: none; float: right; margin-top: -80px; margin-right: 50px; list-style-type: none; } .login a { color:#FFFFFF!important; text-decoration: none; } .login a:hover { color:#FF0000!important; text-decoration:none; } .join { font-styleblique; font-size: 9px; font-weight: bold; } .join a { text-decoration:underline !important; color:#ff0000!important; } .join a:hover { color:#0099FF!important; } /* ------------ End of Header -*/ _______________________________________ Here is the relevant html from header.php <div id="header"> <div class="container"> <div class="topline"> <ul class="menu"> <li class="page_item"> <a href="(URL address blocked: See forum rules)">Home</a></li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="General information foundational to success in all other areas">MAGman Lifestyle</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="One of the three Pillars of any man's life - his relationships with others">Women & Relationships</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="The Pillar of a sound body is a middle age guy's call to reality">Health & Fitness</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="A man's third Pillar is his ability to do battle in the business world.">Business & Wealth</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/magman-blog" title="MAGman's Blog">Blog</a> </li> <li class="page_item"> <a href="<?php if($db_feedburner_address) { echo $db_feedburner_address; } else { bloginfo('rss2_url'); }?>">Subscribe to RSS</a> </li> </ul> </div> <!-- end #topline --> <div id="magmanheadshot"> <img src="/wp-content/themes/blog-design-studio-newblue/images/mag_man4-Head-shot.gif" /> </div> <div id="headline"> <h1><?php bloginfo(''); ?></h1> <div> <div class="desc_l"></div> <div class="desc">The #1 Personal Development Website for Middle Age Guys</div> <div class="desc_r"></div> <div class="magmandatingsystem"><a href="(URL address blocked: See forum rules)/?page_id=176">Read more</a> about the <a href="(URL address blocked: See forum rules)/?page_id=176"><span style="color:#FF0000!important">MAGman Dating System</span></a> for Middle Age Guys</div> <!-- end #headline --> <div class="login"><a href="(URL address blocked: See forum rules)/?page_id=89">Members' Login</a> <p class="join"><a href="(URL address blocked: See forum rules)">Click here</a> to become a member.</p> </div> </div> <!-- end .container --> </div> <!-- end .header --> ______________________________________________ Finally, this is the source code ________________________________________________ <div id="header"> <div class="container"> <div class="topline"> <ul class="menu"> <li class="page_item"> <a href="(URL address blocked: See forum rules)">Home</a></li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="General information foundational to success in all other areas">MAGman Lifestyle</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="One of the three Pillars of any man's life - his relationships with others">Women & Relationships</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="The Pillar of a sound body is a middle age guy's call to reality">Health & Fitness</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="A man's third Pillar is his ability to do battle in the business world.">Business & Wealth</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/magman-blog" title="MAGman's Blog">Blog</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/feed/">Subscribe to RSS</a> </li> </ul> </div> <!-- end #topline --> <div id="magmanheadshot"> <img src="/wp-content/themes/blog-design-studio-newblue/images/mag_man4-Head-shot.gif" /> </div> <div id="headline"> <h1>Middle-Age-Guy.com</h1> </div> <div class="desc_l"></div> <div class="desc">The #1 Personal Development Website for Middle Age Guys</div> <div class="desc_r"></div> <div class="magmandatingsystem"><a href="(URL address blocked: See forum rules)/?page_id=176">Read more</a> about the <a href="(URL address blocked: See forum rules)/?page_id=176"><span style="color:#FF0000!important">MAGman Dating System</span></a> for Middle Age Guys</div> <!-- end #headline --> <div class="login"><a href="(URL address blocked: See forum rules)/?page_id=89">Members' Login</a> <p class="join"><a href="(URL address blocked: See forum rules)">Click here</a> to become a member.</p> </div> </div> <!-- end .container --> </div> <!-- end .header --> Thanks for any help you can bring. Scott I have a navigation list over which I want the cursor to change from vertical line to a hand. Has the hand cursor been deprecated? I tried Code: style.cursor='hand' with both onmouseover and onmousehover. Neither works. Hi I've got a testpage, with everything removed except the problem which occurs in Firefox http://ied.gospelcom.net/tester.php There is a mouseover popup, which is toggled from hidden to visible by onmouseover on some of the table cells. The CSS for this is #reportalert {visibility:hidden;} This is not a javascript problem because it happens with js disabled. I have removed the JS toggle script from this page, so you won't even see this happen. As soon as I have the div with id="reportalert" anywhere on the page, its presence prevents a cursor appearing in the textarea. It does, in fact, have focus, because you can type in it. But it is disconcerting not to appear to have focus. It is as if the 'visibility:hidden' of the div somehow leaks out to affect the cursor. I have tried all sort of things, such as putting visibility:visible on the text area, or its whole TD. Any other ideas I could try? thanks Tony Is it possible to change the mouse cursor to a "hand" when hovering over a <input type="submit" /> ? Thank you Code: <style> <!-- BODY{ cursor:url("Hand.USA.cur"); } a, a:hover { cursor:url("Hand.USA.cur"); } --> </style> I'm using the above code to display an icon that is replacing the default arrow. This only seems to work in Internet Explorer 6+. Would anyone know another way to display an image or icon either through a url (http://www.blah.com/img.jpg) or .cur or .ani that will work in Mozilla, and Netscape ? Thanks, Shawn Real odd one here. Take a look at http://www.moxiegirlz.com/?section=moxiegirlz Note that you can click on one of the characters at the bottom to see their info. But when you do so, the characters no longer get the "hand" pointer icon (in FF and Safari, haven't tested IE). I've tried applying cursor:pointer directly to the a tags, though one shouldn't need to, and still nada. Somehow, calling a jscript in the href is killing the hand pointer. Anyone know why? Hi im new, I've got a problem and I'm stumped as to why it's happening. I've got several lists on my page with link items. They all work fine, but when I hover over the links in my navbar in chrome and safari, the cursor turns to a text one rather than a hand. This means I can't actually click on the link. However, there are other lists on the page that work fine, and they all work in Firefox. Does anyone know why this is occurring? You can view the pages he andrewcharlton.co.uk/gaming_and_gambling2/ggbusinessplans.html (Can't seem to post a proper link as I am a new user) It's the about, contact links in the header that dont work. hmm. Would be grateful if anyone knows the answer. Thanks! I am looking for a way (preferably using CSS) to make an I-beam or cursor inside a text field to become invisible. This may be achieved by changing its color to match the bgcolor, by making it invisible altogether, or even simply to get it to stop blinking (when the bg color is black). Any help would be appreciated. I want to change the "flashing cursor" color in an input field in my css. This field has a dark background, the text over it is white but when you click in it, the flashing cursor is darkgray an almost invisible. Look in my login and password box, you will understand: http://www.jeudebourse.com. I'm mostly speaking in French and I don't know what is called this cursor. I don't mean the mouse pointer but the cursor that is flashing in the field to indicate your position in this field. Thanks. I am new to coding so dont make fun of me or anything if this is stupid.. I'm coding my own tumblr right now, and it looks pretty good so far. I just dont know the code to make an image 'static' and stay at the top. If you take a look (hockey-lax-bro.tumblr.com/) you will see what i mean. The follow button and picture on the right 'follow' you wherever you scroll. Code: <div style="position:right;5px:top;25px"> <a href="https;||twitter.***/J_Harris012" class="twitter-follow-button" data-show-count="false" data-size="large" data-show-screen-name="false">Follow @J_Harris012</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.***/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </div> <div style="position:right;30px:top;55px"> <a href="http;||i42.tinypic.***/2ai0etj.***" target="_blank"> <img class="normal" src="http;||i46.tinypic.***/15o8nj9.***" alt="install theme" /> </a> </div> Thats the coding that i have right now ^^ (i had to change a few things because new members are not allowed to post links) what do i need to change to make the buttons stay at the top? Hi, I'm trying to make my own custom CSS for Internet Explorer to load when I visit the www.tv.com site. How do I go about making it domain specific? Is there an IE alternative to Firefox's @-moz-document domain("tv.com") method? I'm making a site, and the guy I'm making it for says he wanted a more 'tough' font. So I downloaded a, 'tough' but still readable of course, font. The main page has an iframe, and the content in the iframe is where the text goes that has the tough font. Everything works when it's offline. But when I try uploading it, it's the old font. I even check the source and it's all old. The server is running extremely slow right now, so that might be the problem and it just hasn't uploaded yet or something. Because I also deleted the content files and refreshed the page and it was still old. So, I'll wait a little longer and check or something. I also know that viewers can't see custom fonts if they don't have them on their pc. So this is kind of seeming pretty pointless. But is there ANYWAY I Can make it viewable to everyone that views the site. So they can see the font even if they don't have it on their pc. Like, make them have it temporarily or something. My friend told me it had something to do with CSS, but I don't really know. Anything I can do to make it work? Is there maybe a Java Script I can use? Ive seen some sites using fonts i dont have on my computer how is this done and whats it called ? any help would be great. Hello, I'm working on converting my current table layout into strictly a CSS Layout . I've managed to get everything (layout wise at least...) displaying properly except for my right border. This is a small 30px x 1px drop shadow. I've been working with it for a few hours now, and I can't seem to get the image to even show up. Here is my CSS code: Code: #container { background-color: #726554; width: 791px; text-align: left; margin: 0 auto; } #top { position: absolute; top: 0px; left: 0px; width: 791px; height: 145px; vertical-align: top; } #content { background: #726554 url(PHP/img/right.jpg) right repeat-y; margin-top: 30px; width: 496px; text-align: left; vertical-align: top; float: left; } #content p { color: #f1f1f1; font-family: Tahoma; font-size: 13px; margin: 0 0 10px 12px; } #content .date { display: block; color: #ff9100; font-family: Tahoma; font-size: 13px; font-weight: bold; } #left { vertical-align: top; float: left; width: 265px; height: 671px; } #contact { clear: both; background: #726554 url(PHP/img/right.jpg) right repeat-y; font-size: 13px; font-family: Tahoma; text-align: center; } I don't think you'll need any HTML code for this problem, but let me know if you do! Thanks in advance, Jason |